From owner-freebsd-java@FreeBSD.ORG Tue Aug 10 21:10:33 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 DF2FF16A4CE for ; Tue, 10 Aug 2004 21:10:33 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34AEA43D1F for ; Tue, 10 Aug 2004 21:10:33 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id i7ALARfB067423; Tue, 10 Aug 2004 23:10:27 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Greg Lewis From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 10 Aug 2004 12:59:49 MDT." <20040810185949.GA54509@misty.eyesbeyond.com> Date: Tue, 10 Aug 2004 23:10:27 +0200 Message-ID: <67422.1092172227@critter.freebsd.dk> Sender: phk@critter.freebsd.dk 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 21:10:34 -0000 In message <20040810185949.GA54509@misty.eyesbeyond.com>, Greg Lewis writes: >On Tue, Aug 10, 2004 at 08:35:24PM +0200, Poul-Henning Kamp wrote: >> In message <20040810182850.GA95018@misty.eyesbeyond.com>, Greg Lewis writes: >> >On Tue, Aug 10, 2004 at 05:05:20PM +0200, Poul-Henning Kamp wrote: >> >> gmake[4]: *** [/freebsd/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun/sun.awt.font/fontmanager/obj/t2kScalerContext.o] Error 1 >> >> gmake[4]: Leaving directory `/freebsd/ports/java/jdk14/work/j2se/make/sun/font' >> > >> >See PR 69853 for patches. >> >> Already building... >> >> 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 ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.