From owner-freebsd-java@FreeBSD.ORG Tue Apr 29 23:37:41 2014 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by hub.freebsd.org (Postfix) with ESMTP id F19303F1; Tue, 29 Apr 2014 23:37:40 +0000 (UTC) Message-ID: <536037C4.7070405@FreeBSD.org> Date: Tue, 29 Apr 2014 19:37:40 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Jonathan Chen , freebsd-java@freebsd.org Subject: Re: openjdk-7.55.13_3,1: UnsatisfiedLinkError jpeg_resync_to_restart References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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:37:41 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2014-04-29 19:09:36 -0400, ?? wrote: > 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. I guess ${LOCALBASE}/include/jconfig.h was found before ${WRKSRC}/jdk/src/share/native/sun/awt/image/jpeg/jconfig.h. Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQEcBAEBAgAGBQJTYDfEAAoJEHyflib82/FGFG0H/A+OvHQV8Y7YIqIGz4tI1fYA mpLz6dibKGstPz0kZG5O+p65pujRquxcfcsyrhyK9UyOPTIP+IjmsAijb9a/7uMz ShtpXQixwV+iZacjellbURwh7LzM9E+vVPaldTR/fcKQ734uCeKgQRGhNtlwXQ3G rQA3AATd9AoGLk0TGVpcNQsaUZUI4UTOOt5DSgHLqLtAaranBmiCiqrOvWY4st/+ EjLBxS1l4fXlIg70fxkIfxjaGDamsqD7n2UmWHsc9708xbqaFFBMwGJ85Yk7ErSx qTqeK4C9vLcrrlMwaq4q82SzjMKF/AG7k6sAj4Dpd2sTfvkCcW1G+cUCCJ+IGOE= =9DrU -----END PGP SIGNATURE-----