From nobody@FreeBSD.org Mon Jan 14 09:33:14 2008 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D56A16A417 for ; Mon, 14 Jan 2008 09:33:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id C550713C43E for ; Mon, 14 Jan 2008 09:33:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0E9VxjB094781 for ; Mon, 14 Jan 2008 09:31:59 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m0E9VwZg094758; Mon, 14 Jan 2008 09:31:58 GMT (envelope-from nobody) Message-Id: <200801140931.m0E9VwZg094758@www.freebsd.org> Date: Mon, 14 Jan 2008 09:31:58 GMT From: Martin Keller To: freebsd-gnats-submit@FreeBSD.org Subject: jdk 1.6: java.awt.SplashScreen#getSplashScreen throws UnsatisfiedLinkError X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 119654 >Category: java >Synopsis: jdk 1.6: java.awt.SplashScreen#getSplashScreen throws UnsatisfiedLinkError >Confidential: no >Severity: non-critical >Priority: low >Responsible: glewis >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 14 09:40:01 UTC 2008 >Closed-Date: Wed Oct 15 03:35:05 UTC 2008 >Last-Modified: Wed Feb 25 11:40:01 UTC 2009 >Originator: Martin Keller >Release: 6.3-RC2 >Organization: United Planet GmbH >Environment: FreeBSD neville.dev.unitedplanet.de 6.3-RC2 FreeBSD 6.3-RC2 #0: Sun Dec 30 06:28:10 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: jdk 1.6: java.awt.SplashScreen#getSplashScreen throws an UnsatisfiedLinkError. The image file used for the splash screen was a PNG. The Problem also occurs on FreeBSD 6.2. java.lang.UnsatisfiedLinkError: /usr/local/jdk1.6.0/jre/lib/i386/libsplashscreen.so: /usr/local/jdk1.6.0/jre/lib/i386/libsplashscreen.so: Undefined symbol "jpeg_resync_to_restart" at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1030) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) at java.security.AccessController.doPrivileged(Native Method) at java.awt.SplashScreen.getSplashScreen(SplashScreen.java:91) at de.uplanet.setup.MainFrame.(Unknown Source) at de.uplanet.setup.SetupController.go(Unknown Source) at de.uplanet.lucy.setup.ServerSetup.main(Unknown Source) >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: From: Marcin Cieslak To: bug-followup@FreeBSD.org Cc: martin.e.keller@unitedplanet.de Subject: Re: java/119654: jdk 1.6: java.awt.SplashScreen#getSplashScreen throws UnsatisfiedLinkError Date: Mon, 14 Jan 2008 15:48:35 +0100 How-To-Repeat: Confirmed on 7.0-PRERELEASE on amd64 using jdk1.6 built from ports. 1. Download and compile SplashDemo.java from http://java.sun.com/docs/books/tutorial/uiswing/misc/splashscreen.html 2. JAVA_VERSION=1.6 java -splash: misc/SplashDemo fails with Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/jdk1.6.0/jre/lib/amd64/libsplashscreen.so: /usr/local/jdk1.6.0/jre/lib/amd64/libsplashscreen.so: Undefined symbol "jpeg_resync_to_restart" 3. This command: LD_PRELOAD=/usr/local/lib/libjpeg.so.9 JAVA_VERSION=1.6 java -splash:/var/spool/obex/20080112b.jpg misc/SplashDemo works. % nm /usr/local/lib/libjpeg.so.9 | grep restart 000000000000addb t emit_restart 000000000000fb25 T jpeg_resync_to_restart 0000000000011c40 t process_restart 000000000000fa92 t read_restart_marker % nm /usr/local/jdk1.6.0/jre/lib/amd64/libjpeg.so | grep restart 000000000002f0e0 t emit_restart 0000000000029c20 t emit_restart 0000000000017040 t process_restart 000000000000f880 t process_restart 00000000000149d0 t read_restart_marker -- << Marcin Cieslak // saper@system.pl >> Responsible-Changed-From-To: freebsd-java->glewis Responsible-Changed-By: glewis Responsible-Changed-When: Wed Oct 15 03:26:12 UTC 2008 Responsible-Changed-Why: I'll take it. http://www.freebsd.org/cgi/query-pr.cgi?pr=119654 State-Changed-From-To: open->closed State-Changed-By: glewis State-Changed-When: Wed Oct 15 03:35:03 UTC 2008 State-Changed-Why: I've committed a patch. diablo-jdk16 is also affected though. http://www.freebsd.org/cgi/query-pr.cgi?pr=119654 From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: java/119654: commit references a PR Date: Wed, 15 Oct 2008 03:34:47 +0000 (UTC) glewis 2008-10-15 03:34:38 UTC FreeBSD ports repository Modified files: java/jdk16 Makefile java/jdk16/files patch-j2se-splashscreen-Makefile Log: . When building libsplashscreen, put the internal JDK header paths before the external system header paths. This prevents us from picking up the jpeg headers from the system headers when building splashscreen_jpeg.c which caused an undefined reference to be present in libsplashscreen since the internal JDK jpeg headers remap the function names. PR: 119654 Revision Changes Path 1.162 +1 -1 ports/java/jdk16/Makefile 1.4 +22 -3 ports/java/jdk16/files/patch-j2se-splashscreen-Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From: Anders Nordby To: glewis@FreeBSD.org Cc: bug-followup@FreeBSD.org, freebsd-java@FreeBSD.org Subject: Re: java/119654: jdk 1.6: java.awt.SplashScreen#getSplashScreen throws UnsatisfiedLinkError Date: Wed, 25 Feb 2009 12:15:59 +0100 Hi, Regarding your patch patch-j2se-splashscreen-Makefile. I still get this error, while trying to run the Java version of Jetprofiler (www.jetprofiler.com): "An unexpected error has occured. Try restarting the application. Error details: java.lang.UnsatisfiedLinkError: /usr/local/diablo-jdk1.6.0/jre/lib/i386/libsplashscreen.so: /usr/local/diablo-jdk1.6.0/jre/lib/i386/libsplashscreen.so: Undefined symbol "jpeg_resync_to_restart" I am using: # java -version java version "1.6.0_03-p4" Java(TM) SE Runtime Environment (build 1.6.0_03-p4-root_24_feb_2009_16_10-b00) Java HotSpot(TM) Client VM (build 1.6.0_03-p4-root_24_feb_2009_16_10-b00, mixed mode) # pkg_info | grep jdk jdk-1.6.0.3p4_8 Java Development Kit 1.6.0 # uname -a FreeBSD noname.aftenposten.no 7.0-RELEASE FreeBSD 7.0-RELEASE #2: Mon Mar 10 23:06:39 CET 2008 root@noname.aftenposten.no:/usr/obj/usr/src/sys/NONAME i386 I installed Java 1.6 from source. After trying to run jetprofiler a few times Java seems to crash too (which is odd, I checked that there is no Java process left behind): # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x28bfd3f6, pid=12192, tid=0x28201300 # # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-p4-root_24_feb_2009_16_10-b00 mixed mode) # Problematic frame: # C [libsplashscreen.so+0x233f6] inflate_fast+0x86 # # An error report file with more information is saved as hs_err_pid12192.log # # Please submit bug reports to freebsd-java@FreeBSD.org # URL to log file: http://anders.fupp.net/test/hs_err_pid12192.log Bye, Anders. On Wed, Oct 15, 2008 at 03:26:23AM +0000, glewis@FreeBSD.org wrote: > Synopsis: jdk 1.6: java.awt.SplashScreen#getSplashScreen throws UnsatisfiedLinkError > > Responsible-Changed-From-To: freebsd-java->glewis > Responsible-Changed-By: glewis > Responsible-Changed-When: Wed Oct 15 03:26:12 UTC 2008 > Responsible-Changed-Why: > I'll take it. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=119654 > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" -- Anders. >Unformatted: