From owner-freebsd-questions@FreeBSD.ORG Fri Nov 21 08:28:21 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D610316A4CE for ; Fri, 21 Nov 2003 08:28:21 -0800 (PST) Received: from solo.cs.vu.nl (solo.cs.vu.nl [130.37.24.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id A18C043FA3 for ; Fri, 21 Nov 2003 08:28:20 -0800 (PST) (envelope-from ronald-freebsd3@klop.yi.org) Received: from henk.thuis.klop.ws (dyn25.dialup.cs.vu.nl [130.37.192.57]) by solo.cs.vu.nl with esmtp (Smail #87) id m1ANE8n-0009KoC; Fri, 21 Nov 2003 17:28 +0100 References: <87zneq5e09.fsf@opera.com> <87ekw16evy.fsf@opera.com> Message-ID: To: FreeBSD Questions From: Ronald Klop Content-Type: text/plain; format=flowed; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Fri, 21 Nov 2003 17:28:16 +0100 User-Agent: Opera7.21/FreeBSD M2 build 497 Subject: freebsd opera 7.22 and java/applets (symbol __xuname not found) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2003 16:28:21 -0000 Hello, I'm forwarding a conversation I had on opera.linux about the support of java applets in Opera for FreeBSD. Opera tells me that is can't find symbol __xuname in /usr/local/jdk1.4.2/jre/lib/i386/libawt.so, so it can't start java. Does anybody know how to solve this? I'm running 5-CURRENT of Nov 13 and Opera 7.22 and compiled JDK 1.4.2p5. The forwarded message contains some info from 'nm' and 'ldd'. Greetings, Ronald. P-II 400Mhz; 256 MB ---- Forwarded Usenet-message ---- From: Eirik Byrkjeflot Anonsen Newsgroups: opera.linux Subject: Re: freebsd opera 7.22 and java/applets Date: Fri, 21 Nov 2003 14:16:17 +0100 URL: news://<87ekw16evy.fsf@opera.com> > Ronald Klop writes: > >> On Fri, 21 Nov 2003 10:18:37 +0100, Ronald Klop >> wrote: >> >>> On Fri, 21 Nov 2003 09:20:38 +0100, Eirik Byrkjeflot Anonsen >>> wrote: >>> >>>> Ronald Klop writes: >>>> >>>>> Hello, >>>>> >>>>> Java applets don't work on FreeBSD (5-CURRENT). >>>>> I just compiled jdk 1.4.2 for FreeBSD which works fine, but I can't >>>>> get it to work with Opera. >>>>> It gives this output: >>>>> >>>>> opera -debugjava >>>>> opera: [java] failed to load libawt.so: >>>>> /usr/local/jdk1.4.2/jre/lib/i386//libawt.so: Undefined symbol >>>>> "__xuname" >>>>> opera: [java] failed to load libjawt.so: >>>>> /usr/local/jdk1.4.2/jre/lib/i386//libawt.so: Undefined symbol >>>>> "__xuname" >>>>> opera: [java] failed to load a suitable awt library. Java will >>>>> not work >>>>> >>>>> It doesn't work on FreeBSD 4-STABLE also. And jdk 1.3.1 doesn't >>>>> work also? >>>>> The FreeBSD jdk is stable enough to pass the Sun tests (JCK?), so why >>>>> doesn't it work. >>>>> >>>>> Did the developers check this? Does anybody got it working? >>>> >>>> What does 'nm /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so | >>>> grep xuname' say? >>>> I'd also like to see 'ldd /usr/local/jdk1.4.2/jre/lib/i386/libawt.so'. >>>> >>>> The only FreeBSD box we have is the one we compile on, and I don't >>>> think we managed to install Java on it at all last time we tried... >>> >>> nm /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so | grep xuname >>> U __xuname > > So it's not in libjvm.. (U means "undefined"). > >>> >>> ldd /usr/local/jdk1.4.2/jre/lib/i386/libawt.so >>> /usr/local/jdk1.4.2/jre/lib/i386/libawt.so: >>> libmlib_image.so => not found (0x0) >>> libjvm.so => not found (0x0) >>> libXp.so.6 => /usr/X11R6/lib/libXp.so.6 (0x283a8000) >>> libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x283b0000) >>> libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x283fa000) >>> libXtst.so.6 => /usr/X11R6/lib/libXtst.so.6 (0x28408000) >>> libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x2840d000) >>> libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x28422000) >>> libm.so.2 => /lib/libm.so.2 (0x284de000) >>> libjava.so => not found (0x0) >>> libc_r.so.5 => /usr/lib/libc_r.so.5 (0x284f7000) >>> libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x2851b000) >>> libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x28524000) >>> libXThrStub.so.6 => /usr/X11R6/lib/libXThrStub.so.6 >>> (0x2853a000) >>> >>> Is it something with my lib path settings? >> >> I added the 'ldd' command after export LD_LIBRARY_PATH in the first >> workaround part of the opera startup script and it gave this output. >> >> opera -debugjava >> /usr/local/jdk1.4.2/jre/lib/i386/libawt.so: >> libmlib_image.so => >> /usr/local/jdk1.4.2/jre/lib/i386//libmlib_image.so (0x283a8000) >> libjvm.so => >> /usr/local/jdk1.4.2/jre/lib/i386//client/libjvm.so (0x283f3000) >> libXp.so.6 => /usr/X11R6/lib/libXp.so.6 (0x28833000) >> libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x2883b000) >> libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x28885000) >> libXtst.so.6 => /usr/X11R6/lib/libXtst.so.6 (0x28893000) >> libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x28898000) >> libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x288ad000) >> libm.so.2 => /lib/libm.so.2 (0x28969000) >> libjava.so => /usr/local/jdk1.4.2/jre/lib/i386//libjava.so >> (0x28982000) >> libc_r.so.5 => /usr/lib/libc_r.so.5 (0x289a0000) >> libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x289c4000) >> libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x28a80000) >> libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x28a89000) >> libXThrStub.so.6 => /usr/X11R6/lib/libXThrStub.so.6 >> (0x28a9f000) >> libverify.so => >> /usr/local/jdk1.4.2/jre/lib/i386//libverify.so (0x28aa1000) >> opera: [java] failed to load libawt.so: >> /usr/local/jdk1.4.2/jre/lib/i386//libawt.so: Undefined symbol >> "__xuname" >> opera: [java] failed to load libjawt.so: >> /usr/local/jdk1.4.2/jre/lib/i386//libawt.so: Undefined symbol >> "__xuname" >> opera: [java] failed to load a suitable awt library. Java will not work >> > > > Looks quite promising. So where is this __xuname defined, then? > > > eirik -- Ronald Klop Amsterdam, The Netherlands