From owner-freebsd-java@FreeBSD.ORG Tue Aug 10 22:23:31 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6875D16A4CE for ; Tue, 10 Aug 2004 22:23:31 +0000 (GMT) Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BD3943D1F for ; Tue, 10 Aug 2004 22:23:31 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from [198.60.22.130] (helo=mgr10.xmission.com) by mgr2.xmission.com with esmtp (Exim 3.35 #1) id 1Buf1m-0004VQ-02; Tue, 10 Aug 2004 16:23:30 -0600 Received: from [166.70.56.15] (helo=misty.eyesbeyond.com) by mgr10.xmission.com with esmtp (Exim 4.32) id 1Buf1l-00035q-Rx; Tue, 10 Aug 2004 16:23:30 -0600 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) i7AMNSRR017237; Tue, 10 Aug 2004 16:23:28 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.11/8.12.11/Submit) id i7AMNRGI017236; Tue, 10 Aug 2004 16:23:27 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Tue, 10 Aug 2004 16:23:27 -0600 From: Greg Lewis To: Poul-Henning Kamp Message-ID: <20040810222327.GB16802@misty.eyesbeyond.com> References: <20040810185949.GA54509@misty.eyesbeyond.com> <67422.1092172227@critter.freebsd.dk> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <67422.1092172227@critter.freebsd.dk> User-Agent: Mutt/1.4.2.1i Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mgr10.xmission.com X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=8.0 tests=BAYES_44 autolearn=no version=2.63 X-SA-Exim-Connect-IP: 166.70.56.15 X-SA-Exim-Mail-From: glewis@eyesbeyond.com X-SA-Exim-Version: 4.0 (built Sat, 24 Apr 2004 12:31:30 +0200) X-SA-Exim-Scanned: Yes (on mgr10.xmission.com) cc: java@freebsd.org Subject: Re: current doesn't build jdk14. X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 22:23:31 -0000 On Tue, Aug 10, 2004 at 11:10:27PM +0200, Poul-Henning Kamp wrote: > In message <20040810185949.GA54509@misty.eyesbeyond.com>, Greg Lewis writes: > >On Tue, Aug 10, 2004 at 08:35:24PM +0200, Poul-Henning Kamp wrote: > >> Anyone know if opera+java has started working ? > > > >I've never gotten it to work. My recollection from trying this reasonably > >recently is that Opera says that the JDK is valid but won't actually > >display any applets. I haven't tried ktrace to see what its trying to do > >yet. If anyone has any contacts at Opera I'd be interested in finding out > >exactly what they do with the JDK so we can figure out why its not working. > > Ok, tried now. > > The opera binary needs: > critter phk> ldd /usr/local/share/opera/bin/opera > /usr/local/share/opera/bin/opera: > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x28980000) > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x28a3f000) > libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x28a4c000) > libm.so.2 => /lib/libm.so.2 (0x28a54000) > libc_r.so.4 => /usr/lib/compat/libc_r.so.4 (0x28a6e000) > libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x28b24000) > > So it is obviously built for 4.x > > When running it, configured for my new jdk14 this is what happens: > > [...] > + export OPERA_DIR OPERA_PLUGIN_PATH PATH > + LD_LIBRARY_PATH=/usr/local/share/opera/bin:/usr/local/jdk1.4.2/jre/lib/i386:/usr/local/jdk1.4.2/jre/lib/i386/native_threads:/usr/local/jdk1.4.2/jre/lib/i386/client:/usr/local/jdk1.4.2/jre/lib/i386/classic: > + export LD_LIBRARY_PATH > + eval exec '/usr/local/share/opera/bin/opera' --binarydir '/usr/local/share/opera/bin' > + exec /usr/local/share/opera/bin/opera --binarydir /usr/local/share/opera/bin > opera: Could not initialize spell checker interface. File not found or could not be opened (-7) > opera: /usr/lib/libpthread.so.1: Undefined symbol "_kevent" > > The jdk is obviously built against libpthread.so.1 and therefore need the > _kevent system call which the 4.x libc doesn't have... > > I've tried to preload libc_r.so.5 but that doesn't work. > > Any good ideas ? It looks like the best idea would be to use a jdk14 built on 4.x. That _should_ run under 5.x now that the libm compatibility issues have been resolved. I'm not convinced this will be successful though. For example, I am using a 4.x machine and I can run Opera, it claims the JDK I point it at is valid, but no applets will run. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org