From owner-freebsd-java@FreeBSD.ORG Tue Apr 29 23:16:00 2014 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3F197E43 for ; Tue, 29 Apr 2014 23:16:00 +0000 (UTC) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BEE347D8 for ; Tue, 29 Apr 2014 23:15:59 +0000 (UTC) Received: by mail-la0-f49.google.com with SMTP id hr17so653753lab.8 for ; Tue, 29 Apr 2014 16:15:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=BlczraSjOO7exdZ2sj6AvvWmAPHlnHVexmTBdmiYqm4=; b=ZfbwIAK2gpRfZhASMUUn1NjvA/sUYoQmkPFpcmcYFCKxXMTBqKU/dj9XnwDqbaIjp3 2YccXZxFHa2HAFzYH00HHZJqsOyRdEQ4qc/cL06jgmeVWonp5dfqeegPEKoALnessh69 Svw1Ov3PY5vLNyOF25iWTtMLyh88URx5wpXovlzkH06HGQxblgrCZf0omfoQHMRTE4li dmJDSaYqnffGllQdHy6qM/azPjkUegcutFBz7LA3UEsEC5gIaBWUr1HtBd9VNzfWR3Y5 yni9o3jP5cupnL//XXUpZfHFSVlkBAI1FwUAtSDya9hyi2G1jxcKp1oymsYiI4vTuxyQ pN9w== X-Gm-Message-State: ALoCoQmNqMn03o0JqHdOc/bUZSmZEKpck9Br3AtAvYG9OCTfpoPfTcS8Ppt3sNiV3DRwH7tfTuWH MIME-Version: 1.0 X-Received: by 10.152.2.131 with SMTP id 3mr401262lau.20.1398812976893; Tue, 29 Apr 2014 16:09:36 -0700 (PDT) Received: by 10.112.35.40 with HTTP; Tue, 29 Apr 2014 16:09:36 -0700 (PDT) X-Originating-IP: [203.99.129.1] In-Reply-To: References: Date: Wed, 30 Apr 2014 11:09:36 +1200 Message-ID: Subject: Re: openjdk-7.55.13_3,1: UnsatisfiedLinkError jpeg_resync_to_restart From: Jonathan Chen To: freebsd-java@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2014 23:16:00 -0000 On 28 April 2014 13:51, Jonathan Chen wrote: > Hi, > > I'm trying out the latest openjdk-7.55.13_3,1 with squirrel-sql and > have noticed that the logs are reporting: > > java.lang.UnsatisfiedLinkError: > /usr/local/openjdk7/jre/lib/amd64/libsplashscreen.so: > /usr/local/openjdk7/jre/lib > /amd64/libsplashscreen.so: Undefined symbol "jpeg_resync_to_restart" > at java.lang.ClassLoader$NativeLibrary.load(Native Method) So I had a look at this with openjdk-7.55.13_4,1, and it appears that the internal openjdk jpeg library is being compiled with "NEED_SHORT_EXTERNAL_NAMES" defined, resulting in libjpeg.so with the shortened name of "jResyncRestart" 11:00am> nm /usr/local/openjdk7/jre/lib/amd64/libjpeg.so | grep jResync 000000000000f6e0 T jResyncRestart However, when libsplashscreen.so is built, "NEED_SHORT_EXTERNAL_NAMES" has not been defined and the expanded "jpeg_resync_to_restart" symbol is used instead, resulting in the undefined reference. Unfortunately, I can't determine just how libjpeg.so is being built, and where the unecessary "NEED_SHORT_EXTERNAL_NAMES" is being defined in the build. Any pointers from the list would be appreciated. Cheers -- Jonathan Chen