From owner-freebsd-java@FreeBSD.ORG Sun Mar 16 21:30:42 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AE99106564A; Sun, 16 Mar 2008 21:30:42 +0000 (UTC) (envelope-from scott@fishballoon.org) Received: from mtaout02-winn.ispmail.ntl.com (mtaout02-winn.ispmail.ntl.com [81.103.221.48]) by mx1.freebsd.org (Postfix) with ESMTP id EC5C58FC22; Sun, 16 Mar 2008 21:30:41 +0000 (UTC) (envelope-from scott@fishballoon.org) Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20080316213315.XOLM27871.mtaout02-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com>; Sun, 16 Mar 2008 21:33:15 +0000 Received: from llama.fishballoon.org ([81.101.131.46]) by aamtaout01-winn.ispmail.ntl.com with ESMTP id <20080316213355.UBOR219.aamtaout01-winn.ispmail.ntl.com@llama.fishballoon.org>; Sun, 16 Mar 2008 21:33:55 +0000 Received: from tuatara.fishballoon.org ([192.168.1.6]:63834) by llama.fishballoon.org with esmtp (Exim 4.66 (FreeBSD)) (envelope-from ) id 1Jb0RB-0004Ha-LK; Sun, 16 Mar 2008 21:30:37 +0000 Received: (from scott@localhost) by tuatara.fishballoon.org (8.14.2/8.14.2/Submit) id m2GLUaC4029992; Sun, 16 Mar 2008 21:30:36 GMT (envelope-from scott) Date: Sun, 16 Mar 2008 21:30:36 +0000 From: Scott Mitchell To: Kurt Miller Message-ID: <20080316213036.GA21700@tuatara.fishballoon.org> References: <20080309220029.GB93340@llama.fishballoon.org> <200803100932.37017.lists@intricatesoftware.com> <20080310231803.GC22200@tuatara.fishballoon.org> <200803102130.02371.kurt@intricatesoftware.com> <47D5FAEF.3080900@intricatesoftware.com> <47DA7985.3040706@intricatesoftware.com> <20080315114832.GB1563@tuatara.fishballoon.org> <20080315232207.GA1610@tuatara.fishballoon.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080315232207.GA1610@tuatara.fishballoon.org> X-Operating-System: FreeBSD 7.0-RELEASE i386 User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Daniel Eischen , freebsd-java@freebsd.org Subject: Re: jdk16 build failure on 7.0R/i386 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2008 21:30:42 -0000 On Sat, Mar 15, 2008 at 11:22:07PM +0000, Scott Mitchell wrote: > On Sat, Mar 15, 2008 at 11:48:32AM +0000, Scott Mitchell wrote: > > On Fri, Mar 14, 2008 at 09:11:33AM -0400, Kurt Miller wrote: > > > Daniel Eischen wrote: > > > > > > > > I was able to get jdk16 built on 7.0. Previously (unsuccessfully), > > > > I was trying to use jdk-1.5.0.11p5,1 to build jdk16. When that > > > > didn't work, I installed jdk-1.5.0.13p7_4,1 from a package that > > > > I had built on another box. So using jdk-1.5.0.13p7_4,1, I was > > > > able to build jdk-1.6.0.3p4. I also used the same package > > > > (jdk-1.5.0.13p7_4,1) to update jdk15 to the latest patchset > > > > (jdk-1.5.0.14p8,1). So now the latest patchset of both jdk15 > > > > and jdk16 have been built using jdk-1.5.0.13p7_4,1. I have > > > > not tried to rebuild either jdk15 or jdk16 using either of > > > > the up-to-date jdks. > > > > > > > > BTW, this was all done manually (cd /usr/ports/java/jdk1X; > > > > make; make install). portupgrade wanted to install compat6x > > > > and diablo for no apparent reason, when there was already > > > > a perfectly good native jdk installed. > > > > > > Ok so you and others can build the jdks fine on 7.0R. I guess I'm out of > > > ideas as to why Scott and Nicolas's systems don't record the dependency > > > on libthr.so. > > > > Yep, it's a mystery for sure... based on what Daniel's saying though, it > > might be worth me trying to build the latest jdk-1.5.0 and bootstrapping > > from that instead of diablo. > > Well, that failed in the same way as the jdk16 build. I'm starting to > think there's maybe something not configured right on this machine, > although it's not had any trouble building anything else since I upgraded > it to 7.0 (binary upgrade using freebsd-update). I'm going to try a source > upgrade to 7.0 on another box and see if I have any more luck there. Success at last! Finally managed to build jdk16 (bootstrapped from the latest diablo 1.5 package for FreeBSD 6) on a machine source-upgraded from RELENG_6 to RELENG_7. I'm wondering if there's some stray old bit of 6.3 still hanging around on the binary-upgraded 7.0 machine that was having all the problems...? Anyway, it's working now and I have the package safely hidden away in case I need it elsewhere. Thanks again to everyone who helped with this, I'll be sure to post again if I figure what exactly what is weird about the machine I can't do the build on. Cheers, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon From owner-freebsd-java@FreeBSD.ORG Mon Mar 17 00:24:55 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 154F1106566C for ; Mon, 17 Mar 2008 00:24:55 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from fallbackmx07.syd.optusnet.com.au (fallbackmx07.syd.optusnet.com.au [211.29.132.9]) by mx1.freebsd.org (Postfix) with ESMTP id 893598FC19 for ; Mon, 17 Mar 2008 00:24:54 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail09.syd.optusnet.com.au (mail09.syd.optusnet.com.au [211.29.132.190]) by fallbackmx07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m2GMV4HV027930 for ; Mon, 17 Mar 2008 09:31:06 +1100 Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail09.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m2GMUtNO016916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 Mar 2008 09:30:56 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.1) with ESMTP id m2GMUtXD046485; Mon, 17 Mar 2008 09:30:55 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m2GMUsnc046484; Mon, 17 Mar 2008 09:30:54 +1100 (EST) (envelope-from peter) Date: Mon, 17 Mar 2008 09:30:54 +1100 From: Peter Jeremy To: freebsd-java@freebsd.org Message-ID: <20080316223054.GA46447@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Subject: Re: jdk15/javaws on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2008 00:24:55 -0000 --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue Jan 1 09:11:52 PST 2008, Greg Lewis wrote: >On Sat, Dec 29, 2007 at 11:38:01PM +1300, Jonathan Chen wrote: >> I'm trying out the jdk-1.5.0.13p7_1,1 javaws on 7-STABLE/amd64 system. >> Running it with no arguments will pop-up the web-start manager; but if >> an jnlp file is supplied I get: >>=20 >> Exception in thread "main" java.lang.NoClassDefFoundError: >> com/sun/deploy/util/PerfLogger >> at com.sun.javaws.Main.main(Main.java:65 >>=20 >> The invocation on a 7-STABLE/i386 system appears to work; I'm hoping >> for tips on general whereabouts or what to look in the source tree so >> that I can attempt to fix the problem. > >That class file should be in jre/lib/deploy.jar. Thats where it is on >i386 at least. I don't immediately see any reason it wouldn't be included >on amd64. That's an old posting but I've just run into the same issue with jdk-1.5.0.14p8,1 on 7-STABLE/amd64. I have confirmed that /usr/local/jdk1.5.0/jre/lib/deploy.jar does exist and includes com/sun/deploy/util/PerfLogger.class - the problem seems to be that java has a corrupt path. The following is an extract from a ktrace of javaws. Note the path it uses for deploy.jar. I'm uncertain where this is coming from as the preceeding load of javaws.jar is correct. 75310 java CALL stat(0x7fffffffd250,0x7fffffffd6f0) 75310 java NAMI "/usr/local/jdk1.5.0/jre/classes" 75310 java RET stat -1 errno 2 No such file or directory 75310 java CALL stat(0x7fffffffd250,0x7fffffffd6f0) 75310 java NAMI "/usr/local/jdk1.5.0/jre/lib/javaws.jar" 75310 java RET stat 0 75310 java CALL lstat(0x7fffffffd1f0,0x7fffffffcc90) 75310 java NAMI "/usr" 75310 java RET lstat 0 75310 java CALL lstat(0x7fffffffd1f0,0x7fffffffcc90) 75310 java NAMI "/usr/local" 75310 java RET lstat 0 75310 java CALL lstat(0x7fffffffd1f0,0x7fffffffcc90) 75310 java NAMI "/usr/local/jdk1.5.0" 75310 java RET lstat 0 75310 java CALL lstat(0x7fffffffd1f0,0x7fffffffcc90) 75310 java NAMI "/usr/local/jdk1.5.0/jre" 75310 java RET lstat 0 75310 java CALL lstat(0x7fffffffd1f0,0x7fffffffcc90) 75310 java NAMI "/usr/local/jdk1.5.0/jre/lib" 75310 java RET lstat 0 75310 java CALL lstat(0x7fffffffd1f0,0x7fffffffcc90) 75310 java NAMI "/usr/local/jdk1.5.0/jre/lib/javaws.jar" 75310 java RET lstat 0 75310 java CALL open(0x7fffffffcba0,O_RDONLY,0) 75310 java NAMI "/usr/local/jdk1.5.0/jre/lib/javaws.jar" 75310 java RET open 3 75310 java CALL fstat(0x3,0x7fffffffc9c0) 75310 java RET fstat 0 75310 java CALL lseek(0x3,0,SEEK_END) 75310 java RET lseek 863362/0xd2c82 75310 java CALL mmap(0,0xd2c82,PROT_READ,MAP_SHARED,0x3,0) 75310 java RET mmap 79900672/0x804c33000 75310 java CALL close(0x3) 75310 java RET close 0 75310 java CALL stat(0x7fffffffd250,0x7fffffffd6f0) 75310 java NAMI "<8B>H<83>[]=C31=C0H<83>[]=C3AUATUSH<83>H<89>=FDH<8B>= ^E=D1^M^R/deploy.jar" 75310 java RET stat -1 errno 2 No such file or directory 75310 java CALL mmap(0,0x3000000,PROT_NONE,MAP_PRIVATE|MAP_NORESERVE|= MAP_ANON,0xffffffff,0) 75310 java RET mmap 80764928/0x804d06000 75310 java CALL mmap(0x804d06000,0x270000,PROT_READ|PROT_WRITE|PROT_E= XEC,MAP_PRIVATE|MAP_FIXED|MAP_ANON,0xffffffff,0) 75310 java RET mmap 80764928/0x804d06000 75310 java CALL mmap(0,0xc0000,PROT_NONE,MAP_PRIVATE|MAP_NORESERVE|MA= P_ANON,0xffffffff,0) 75310 java RET mmap 131096576/0x807d06000 75310 java CALL mmap(0x807d06000,0xa000,PROT_READ|PROT_WRITE|PROT_EXE= C,MAP_PRIVATE|MAP_FIXED|MAP_ANON,0xffffffff,0) 75310 java RET mmap 131096576/0x807d06000 75310 java CALL open(0x800b1b140,O_RDONLY,0) 75310 java NAMI "/usr/local/jdk1.5.0/jre/lib/amd64/server/classes.jsa" 75310 java RET open -1 errno 2 No such file or directory --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkfdn54ACgkQ/opHv/APuIc2lQCdEMP4AiUO3RJcdJ6LADEz3y2o vR0AoI1JtZpfE6BAtSYvMCCP8CcTVQ0E =QNoS -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ-- From owner-freebsd-java@FreeBSD.ORG Mon Mar 17 11:07:07 2008 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC0E810656C9 for ; Mon, 17 Mar 2008 11:07:07 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D2D8E8FC21 for ; Mon, 17 Mar 2008 11:07:07 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2HB77t9055160 for ; Mon, 17 Mar 2008 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2HB776G055156 for freebsd-java@FreeBSD.org; Mon, 17 Mar 2008 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 17 Mar 2008 11:07:07 GMT Message-Id: <200803171107.m2HB776G055156@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2008 11:07:08 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- s ports/60083 java java/jdk14 - Unsafe use of getaddrinfo in jvm 1.4.2-p5 o java/105482 java diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug o java/110912 java Java krb5 client leaks UDP connections o java/112595 java Java appletviewer frequently hangs (kse_release loop) o ports/113467 java Multiple "missing return value" errors building JDK on o java/114644 java tomcat goes out of PermSpace, jvm crashes o java/118496 java Eclipse packages do not work with 6.3-RC1/amd64 o java/118956 java eclipse and netbeans break on diablo-jdk15 o ports/119732 java java/linux-sun-jre16: linux-sun-jre16 plugin doesn't w o ports/121420 java java/jdk16: Java applet fails to find class under fire o java/121692 java java/jdk16: Java 1.5 1.5.0.14p8 crashes in RMI TCP Con 11 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- s ports/56928 java jce-aba port should install to $JAVA_HOME/jre/lib/ext s java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in o ports/84742 java make ports/java/jdk14 use dynamic Motif librarires o java/97461 java Diablo JDK does not report Update level in a format su o ports/113751 java java/linux-sun-jdk15: linux-sun-jdk-1.5.0.12,2 - java o ports/115279 java [UPDATE] java/java3d to 1.5.1 o java/115773 java [request] java.nio channel selectors should use kqueue o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to o java/116667 java linux-sun-javac1.4 hangs on SMP o ports/116841 java cannot build java/jdk16 by using java/linux-sun-jdk16 o java/119063 java An unexpected error has been detected by Java Runtime o java/119654 java jdk 1.6: java.awt.SplashScreen#getSplashScreen throws o java/120146 java netbeans 6.0 crash on amd64 a ports/120959 java java/sablevm-classpath did not build/install from port o ports/121416 java java/jdk15 can't build if BIN environment variable is 15 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Mar 17 11:07:32 2008 Return-Path: Delivered-To: java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7AE441065688 for ; Mon, 17 Mar 2008 11:07:32 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 58B118FC27 for ; Mon, 17 Mar 2008 11:07:32 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2HB7Wqu055567 for ; Mon, 17 Mar 2008 11:07:32 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2HB7V9I055563 for java@FreeBSD.org; Mon, 17 Mar 2008 11:07:31 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 17 Mar 2008 11:07:31 GMT Message-Id: <200803171107.m2HB7V9I055563@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: java@FreeBSD.org Cc: Subject: Current problem reports assigned to java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2008 11:07:32 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/121698 java [PATCH] java/jai: update to 1.1.3 (works on FreeBSD 7 1 problem total. From owner-freebsd-java@FreeBSD.ORG Mon Mar 17 13:31:47 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E63710656A3 for ; Mon, 17 Mar 2008 13:31:47 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id A178E8FC32 for ; Mon, 17 Mar 2008 13:31:46 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m2HDVjL3004539; Mon, 17 Mar 2008 06:31:45 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m2HDVi32004538; Mon, 17 Mar 2008 06:31:44 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Mon, 17 Mar 2008 06:31:44 -0700 From: Greg Lewis To: Peter Jeremy Message-ID: <20080317133144.GA4473@misty.eyesbeyond.com> References: <20080316223054.GA46447@server.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080316223054.GA46447@server.vk2pj.dyndns.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-java@freebsd.org Subject: Re: jdk15/javaws on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2008 13:31:52 -0000 On Mon, Mar 17, 2008 at 09:30:54AM +1100, Peter Jeremy wrote: > On Tue Jan 1 09:11:52 PST 2008, Greg Lewis wrote: > >On Sat, Dec 29, 2007 at 11:38:01PM +1300, Jonathan Chen wrote: > >> I'm trying out the jdk-1.5.0.13p7_1,1 javaws on 7-STABLE/amd64 system. > >> Running it with no arguments will pop-up the web-start manager; but if > >> an jnlp file is supplied I get: > >> > >> Exception in thread "main" java.lang.NoClassDefFoundError: > >> com/sun/deploy/util/PerfLogger > >> at com.sun.javaws.Main.main(Main.java:65 > >> > >> The invocation on a 7-STABLE/i386 system appears to work; I'm hoping > >> for tips on general whereabouts or what to look in the source tree so > >> that I can attempt to fix the problem. > > > >That class file should be in jre/lib/deploy.jar. Thats where it is on > >i386 at least. I don't immediately see any reason it wouldn't be included > >on amd64. > > That's an old posting but I've just run into the same issue with > jdk-1.5.0.14p8,1 on 7-STABLE/amd64. I have confirmed that > /usr/local/jdk1.5.0/jre/lib/deploy.jar does exist and includes > com/sun/deploy/util/PerfLogger.class - the problem seems to be that > java has a corrupt path. The following is an extract from a ktrace of > javaws. Note the path it uses for deploy.jar. I'm uncertain where > this is coming from as the preceeding load of javaws.jar is correct. > > 75310 java CALL stat(0x7fffffffd250,0x7fffffffd6f0) > 75310 java NAMI "/usr/local/jdk1.5.0/jre/lib/javaws.jar" > 75310 java CALL open(0x7fffffffcba0,O_RDONLY,0) > 75310 java NAMI "/usr/local/jdk1.5.0/jre/lib/javaws.jar" ... > 75310 java CALL stat(0x7fffffffd250,0x7fffffffd6f0) > 75310 java NAMI "<8B>H<83>[]?1?H<83>[]?AUATUSH<83>H<89>?H<8B>^E?^M^R/deploy.jar" > 75310 java RET stat -1 errno 2 No such file or directory That certainly is an interesting path for deploy.jar... The path to deploy.jar is set up in deploy/src/javaws/share/native/launcher.c, so thats probably a good place to start. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Mon Mar 17 16:12:05 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id E8BA21065675; Mon, 17 Mar 2008 16:12:03 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-java@freebsd.org Date: Mon, 17 Mar 2008 12:11:47 -0400 User-Agent: KMail/1.6.2 References: <20080316223054.GA46447@server.vk2pj.dyndns.org> In-Reply-To: <20080316223054.GA46447@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <200803171211.52471.jkim@FreeBSD.org> Cc: Peter Jeremy Subject: Re: jdk15/javaws on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2008 16:12:05 -0000 On Sunday 16 March 2008 06:30 pm, Peter Jeremy wrote: > On Tue Jan 1 09:11:52 PST 2008, Greg Lewis wrote: > >On Sat, Dec 29, 2007 at 11:38:01PM +1300, Jonathan Chen wrote: > >> I'm trying out the jdk-1.5.0.13p7_1,1 javaws on 7-STABLE/amd64 > >> system. Running it with no arguments will pop-up the web-start > >> manager; but if an jnlp file is supplied I get: > >> > >> Exception in thread "main" java.lang.NoClassDefFoundError: > >> com/sun/deploy/util/PerfLogger > >> at com.sun.javaws.Main.main(Main.java:65 > >> > >> The invocation on a 7-STABLE/i386 system appears to work; I'm > >> hoping for tips on general whereabouts or what to look in the > >> source tree so that I can attempt to fix the problem. > > > >That class file should be in jre/lib/deploy.jar. Thats where it > > is on i386 at least. I don't immediately see any reason it > > wouldn't be included on amd64. > > That's an old posting but I've just run into the same issue with > jdk-1.5.0.14p8,1 on 7-STABLE/amd64. I have confirmed that > /usr/local/jdk1.5.0/jre/lib/deploy.jar does exist and includes > com/sun/deploy/util/PerfLogger.class - the problem seems to be that > java has a corrupt path. The following is an extract from a ktrace > of javaws. Note the path it uses for deploy.jar. I'm uncertain > where this is coming from as the preceeding load of javaws.jar is > correct. > > 75310 java CALL stat(0x7fffffffd250,0x7fffffffd6f0) > 75310 java NAMI "/usr/local/jdk1.5.0/jre/classes" > 75310 java RET stat -1 errno 2 No such file or directory > 75310 java CALL stat(0x7fffffffd250,0x7fffffffd6f0) > 75310 java NAMI "/usr/local/jdk1.5.0/jre/lib/javaws.jar" > 75310 java RET stat 0 > 75310 java CALL lstat(0x7fffffffd1f0,0x7fffffffcc90) > 75310 java NAMI "/usr" > 75310 java RET lstat 0 > 75310 java CALL lstat(0x7fffffffd1f0,0x7fffffffcc90) > 75310 java NAMI "/usr/local" > 75310 java RET lstat 0 > 75310 java CALL lstat(0x7fffffffd1f0,0x7fffffffcc90) > 75310 java NAMI "/usr/local/jdk1.5.0" > 75310 java RET lstat 0 > 75310 java CALL lstat(0x7fffffffd1f0,0x7fffffffcc90) > 75310 java NAMI "/usr/local/jdk1.5.0/jre" > 75310 java RET lstat 0 > 75310 java CALL lstat(0x7fffffffd1f0,0x7fffffffcc90) > 75310 java NAMI "/usr/local/jdk1.5.0/jre/lib" > 75310 java RET lstat 0 > 75310 java CALL lstat(0x7fffffffd1f0,0x7fffffffcc90) > 75310 java NAMI "/usr/local/jdk1.5.0/jre/lib/javaws.jar" > 75310 java RET lstat 0 > 75310 java CALL open(0x7fffffffcba0,O_RDONLY,0) > 75310 java NAMI "/usr/local/jdk1.5.0/jre/lib/javaws.jar" > 75310 java RET open 3 > 75310 java CALL fstat(0x3,0x7fffffffc9c0) > 75310 java RET fstat 0 > 75310 java CALL lseek(0x3,0,SEEK_END) > 75310 java RET lseek 863362/0xd2c82 > 75310 java CALL mmap(0,0xd2c82,PROT_READ,MAP_SHARED,0x3,0) > 75310 java RET mmap 79900672/0x804c33000 > 75310 java CALL close(0x3) > 75310 java RET close 0 > 75310 java CALL stat(0x7fffffffd250,0x7fffffffd6f0) > 75310 java NAMI > "<8B>H<83>[]�1�H<83>[]�AUATUSH<83>H<89>�H<8B>^E�^M^R/deploy.jar" > 75310 java RET stat -1 errno 2 No such file or directory > 75310 java CALL > mmap(0,0x3000000,PROT_NONE,MAP_PRIVATE|MAP_NORESERVE|MAP_ANON,0xfff >fffff,0) 75310 java RET mmap 80764928/0x804d06000 > 75310 java CALL > mmap(0x804d06000,0x270000,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVAT >E|MAP_FIXED|MAP_ANON,0xffffffff,0) 75310 java RET mmap > 80764928/0x804d06000 > 75310 java CALL > mmap(0,0xc0000,PROT_NONE,MAP_PRIVATE|MAP_NORESERVE|MAP_ANON,0xfffff >fff,0) 75310 java RET mmap 131096576/0x807d06000 > 75310 java CALL > mmap(0x807d06000,0xa000,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE| >MAP_FIXED|MAP_ANON,0xffffffff,0) 75310 java RET mmap > 131096576/0x807d06000 > 75310 java CALL open(0x800b1b140,O_RDONLY,0) > 75310 java NAMI > "/usr/local/jdk1.5.0/jre/lib/amd64/server/classes.jsa" 75310 java > RET open -1 errno 2 No such file or directory Can you remove ~/.java and retry? Jung-uk Kim From owner-freebsd-java@FreeBSD.ORG Tue Mar 18 05:52:08 2008 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57F05106564A; Tue, 18 Mar 2008 05:52:08 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail34.syd.optusnet.com.au (mail34.syd.optusnet.com.au [211.29.133.218]) by mx1.freebsd.org (Postfix) with ESMTP id B177D8FC13; Tue, 18 Mar 2008 05:52:07 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail34.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m2I5q569009077 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 18 Mar 2008 16:52:05 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.1) with ESMTP id m2I5q4ju078285; Tue, 18 Mar 2008 16:52:04 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m2I5q4Jg078284; Tue, 18 Mar 2008 16:52:04 +1100 (EST) (envelope-from peter) Date: Tue, 18 Mar 2008 16:52:04 +1100 From: Peter Jeremy To: Jung-uk Kim Message-ID: <20080318055204.GP44676@server.vk2pj.dyndns.org> References: <20080316223054.GA46447@server.vk2pj.dyndns.org> <200803171211.52471.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="H+4ONPRPur6+Ovig" Content-Disposition: inline In-Reply-To: <200803171211.52471.jkim@FreeBSD.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-java@FreeBSD.org Subject: Re: jdk15/javaws on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2008 05:52:08 -0000 --H+4ONPRPur6+Ovig Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 17, 2008 at 12:11:47PM -0400, Jung-uk Kim wrote: >Can you remove ~/.java and retry? No change. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --H+4ONPRPur6+Ovig Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkffWIQACgkQ/opHv/APuIeZVwCfWzlVnSrjxBgWcxncnjebUleM L3MAn3fQMji8U/itWC4lye6tr9ToPa82 =DQ3l -----END PGP SIGNATURE----- --H+4ONPRPur6+Ovig-- From owner-freebsd-java@FreeBSD.ORG Tue Mar 18 06:15:32 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A8B2106566B for ; Tue, 18 Mar 2008 06:15:32 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail07.syd.optusnet.com.au (mail07.syd.optusnet.com.au [211.29.132.188]) by mx1.freebsd.org (Postfix) with ESMTP id 7AD7E8FC2B for ; Tue, 18 Mar 2008 06:15:31 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m2I6FQwG029345 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 18 Mar 2008 17:15:27 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.1) with ESMTP id m2I6FQ8v078403; Tue, 18 Mar 2008 17:15:26 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m2I6FPXT078402; Tue, 18 Mar 2008 17:15:25 +1100 (EST) (envelope-from peter) Date: Tue, 18 Mar 2008 17:15:25 +1100 From: Peter Jeremy To: Greg Lewis Message-ID: <20080318061525.GQ44676@server.vk2pj.dyndns.org> References: <20080316223054.GA46447@server.vk2pj.dyndns.org> <20080317133144.GA4473@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f+W+jCU1fRNres8c" Content-Disposition: inline In-Reply-To: <20080317133144.GA4473@misty.eyesbeyond.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-java@freebsd.org Subject: Re: jdk15/javaws on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2008 06:15:32 -0000 --f+W+jCU1fRNres8c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 17, 2008 at 06:31:44AM -0700, Greg Lewis wrote: >On Mon, Mar 17, 2008 at 09:30:54AM +1100, Peter Jeremy wrote: >> 75310 java CALL stat(0x7fffffffd250,0x7fffffffd6f0) >> 75310 java NAMI "<8B>H<83>[]?1?H<83>[]?AUATUSH<83>H<89>?H<8B>^E?^M= ^R/deploy.jar" >> 75310 java RET stat -1 errno 2 No such file or directory > >That certainly is an interesting path for deploy.jar... > >The path to deploy.jar is set up in deploy/src/javaws/share/native/launche= r.c, >so thats probably a good place to start. I've done some poking at it with both some printf()s and gdb and it appears to be a gcc bug - in fact, I'm surprised it works at all... The relevant function is GetBootClassPath(): char* GetBootClassPath(void) { static char bootclasspath[MAXPATHLEN]; #ifdef _DEBUG sprintf(bootclasspath, "%s%c%s%c%s%c%s",=20 sysGetJarLib(), FILE_SEPARATOR, "javaws_g.jar", PATH_SEPARATOR, sysGetJarLib(), FILE_SEPARATOR, "deploy_g.j= ar"); #else sprintf(bootclasspath, "%s%c%s%c%s%c%s",=20 sysGetJarLib(), FILE_SEPARATOR, "javaws.jar", PATH_SEPARATOR, sysGetJarLib(), FILE_SEPARATOR, "deploy.jar= "); #endif return bootclasspath; } Within the jdk build, launcher.c is compiled with: /usr/bin/gcc -I../../src/javaws/share/native -I../../src/javaws/solaris/na= tive -I../../src/javaws/share/native/jpeg -I/home/obj/usr/ports/java/jdk15/= work/control/build/bsd-amd64/tmp/deploy/javaws/jawsgensrc/headers -I/usr/lo= cal/include -I/usr/local/include -D_ALLBSD_SOURCE ../../src/javaws/share/n= ative/launcher.c -c -o /home/obj/usr/ports/java/jdk15/work/control/build/bs= d-amd64/tmp/deploy/javaws/jawsobj/launcher.o The second sysGetJarLib() is passed to sprintf() as the first memory operand (ie (%rsp)) but for reasons known best to gcc, only a 32-bit move is used, leaving the high 32-bits alone. In my case, when sprintf() accesses the 64-bit value it winds up with an arbitrary address inside one of the dynamic libraries. I've tried building a simple test using: cc -O2 -fno-strict-aliasing -pipe -march=3Dnocona -DDMEM foo.c -o foo and the code is compiled correctly (actually, the generated code is basically identical except it correctly uses 64-bit moves). I'm still investigating what has gone wrong. Out of interest, why isn't jdk15 being built using the default CFLAGS? --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --f+W+jCU1fRNres8c Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkffXf0ACgkQ/opHv/APuIcKagCglYhDmgQF1VnvjvjLusLJkrrz urYAnREoTSqiI66c3Y644BR3lHqHZF4u =dGjN -----END PGP SIGNATURE----- --f+W+jCU1fRNres8c-- From owner-freebsd-java@FreeBSD.ORG Tue Mar 18 21:41:15 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 393DB106564A for ; Tue, 18 Mar 2008 21:41:15 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail09.syd.optusnet.com.au (mail09.syd.optusnet.com.au [211.29.132.190]) by mx1.freebsd.org (Postfix) with ESMTP id D21B08FC13 for ; Tue, 18 Mar 2008 21:41:14 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail09.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m2ILf7K6006097 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 19 Mar 2008 08:41:08 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.1) with ESMTP id m2ILf7gw069808; Wed, 19 Mar 2008 08:41:07 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m2ILf6UJ069807; Wed, 19 Mar 2008 08:41:06 +1100 (EST) (envelope-from peter) Date: Wed, 19 Mar 2008 08:41:06 +1100 From: Peter Jeremy To: Greg Lewis Message-ID: <20080318214106.GA69742@server.vk2pj.dyndns.org> References: <20080316223054.GA46447@server.vk2pj.dyndns.org> <20080317133144.GA4473@misty.eyesbeyond.com> <20080318061525.GQ44676@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw" Content-Disposition: inline In-Reply-To: <20080318061525.GQ44676@server.vk2pj.dyndns.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-java@freebsd.org Subject: Re: jdk15/javaws on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2008 21:41:15 -0000 --wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 18, 2008 at 05:15:25PM +1100, Peter Jeremy wrote: >I've done some poking at it with both some printf()s and gdb and it >appears to be a gcc bug - in fact, I'm surprised it works at all... > >The relevant function is GetBootClassPath(): >char* GetBootClassPath(void) { > static char bootclasspath[MAXPATHLEN]; >#ifdef _DEBUG > sprintf(bootclasspath, "%s%c%s%c%s%c%s",=20 > sysGetJarLib(), FILE_SEPARATOR, "javaws_g.jar", > PATH_SEPARATOR, sysGetJarLib(), FILE_SEPARATOR, "deploy_g.= jar"); >#else > sprintf(bootclasspath, "%s%c%s%c%s%c%s",=20 > sysGetJarLib(), FILE_SEPARATOR, "javaws.jar", > PATH_SEPARATOR, sysGetJarLib(), FILE_SEPARATOR, "deploy.ja= r"); >#endif > return bootclasspath; >} I've done a bit more investigating and the problem is that sysGetJarLib() returns char*, and this is assumed by the above code. But there is no prototype in scope for the above code so gcc assumes that sysGetJarLib() returns int and passes it to sprintf as an int. Looking further, there is no prototype for sysGetJarLib() anywhere in the source code - or, for that matter many of the other functions in deploy/src/javaws/share/native/system.c that also return char*. This code can't work correctly on any platform where sizeof(int) !=3D sizeof(void*) so I'm not quite sure how Sun make it work on Sun SPARC... I'm currently trying to rebuild Java with -Wall to see how many of these sorts of bugs exist. In the meantime, I would suggest that java is broken on any 64-bit architecture. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --wac7ysb48OaltWcw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkfgNvIACgkQ/opHv/APuIcyIgCfXHekeNHOWDXXKzAAXgHKuvT1 +LwAnRf88tZFD1XgZn+ADtwYcVgYk6/b =yKa9 -----END PGP SIGNATURE----- --wac7ysb48OaltWcw-- From owner-freebsd-java@FreeBSD.ORG Tue Mar 18 21:48:45 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D80A1065672 for ; Tue, 18 Mar 2008 21:48:45 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mta5.srv.hcvlny.cv.net (mta5.srv.hcvlny.cv.net [167.206.4.200]) by mx1.freebsd.org (Postfix) with ESMTP id 7685C8FC20 for ; Tue, 18 Mar 2008 21:48:45 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from flosoft.no-ip.biz (ool-435559b8.dyn.optonline.net [67.85.89.184]) by mta5.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0JXY008MD4L7NEN0@mta5.srv.hcvlny.cv.net> for freebsd-java@freebsd.org; Tue, 18 Mar 2008 17:48:44 -0400 (EDT) Received: from flosoft.no-ip.biz (localhost [IPv6:::1]) by flosoft.no-ip.biz (8.14.2/8.14.2) with ESMTP id m2ILmaTs000433; Tue, 18 Mar 2008 17:48:41 -0400 Date: Tue, 18 Mar 2008 17:48:30 -0400 From: "Aryeh M. Friedman" In-reply-to: <20080318214106.GA69742@server.vk2pj.dyndns.org> To: Peter Jeremy Message-id: <47E038AE.7000505@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Enigmail-Version: 0.95.6 References: <20080316223054.GA46447@server.vk2pj.dyndns.org> <20080317133144.GA4473@misty.eyesbeyond.com> <20080318061525.GQ44676@server.vk2pj.dyndns.org> <20080318214106.GA69742@server.vk2pj.dyndns.org> User-Agent: Thunderbird 2.0.0.12 (X11/20080314) Cc: freebsd-java@freebsd.org Subject: Re: jdk15/javaws on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2008 21:48:45 -0000 Peter Jeremy wrote: > On Tue, Mar 18, 2008 at 05:15:25PM +1100, Peter Jeremy wrote: > >> I've done some poking at it with both some printf()s and gdb and it >> appears to be a gcc bug - in fact, I'm surprised it works at all... >> >> The relevant function is GetBootClassPath(): >> char* GetBootClassPath(void) { >> static char bootclasspath[MAXPATHLEN]; >> #ifdef _DEBUG >> sprintf(bootclasspath, "%s%c%s%c%s%c%s", >> sysGetJarLib(), FILE_SEPARATOR, "javaws_g.jar", >> PATH_SEPARATOR, sysGetJarLib(), FILE_SEPARATOR, "deploy_g.jar"); >> #else >> sprintf(bootclasspath, "%s%c%s%c%s%c%s", >> sysGetJarLib(), FILE_SEPARATOR, "javaws.jar", >> PATH_SEPARATOR, sysGetJarLib(), FILE_SEPARATOR, "deploy.jar"); >> #endif >> return bootclasspath; >> } >> > > I've done a bit more investigating and the problem is that > sysGetJarLib() returns char*, and this is assumed by the above code. > But there is no prototype in scope for the above code so gcc assumes > that sysGetJarLib() returns int and passes it to sprintf as an int. > > Looking further, there is no prototype for sysGetJarLib() anywhere in > the source code - or, for that matter many of the other functions in > deploy/src/javaws/share/native/system.c that also return char*. > > This code can't work correctly on any platform where > sizeof(int) != sizeof(void*) so I'm not quite sure how Sun make it > work on Sun SPARC... > > I'm currently trying to rebuild Java with -Wall to see how many of > these sorts of bugs exist. In the meantime, I would suggest that > java is broken on any 64-bit architecture. > > Diablo is also broken on AMD64 after the removal of KSE threading in 8-current (so are the Sun Linux binaries)... thus as a result it is not possible to get Java working in any shapre or form on 8-current AMD64 From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 02:42:47 2008 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35D6A106564A for ; Wed, 19 Mar 2008 02:42:47 +0000 (UTC) (envelope-from d@cyb.fr) Received: from cyb.fr (cyb.fr [82.66.245.132]) by mx1.freebsd.org (Postfix) with SMTP id 9D11E8FC1B for ; Wed, 19 Mar 2008 02:42:46 +0000 (UTC) (envelope-from d@cyb.fr) Received: (qmail 23996 invoked from network); 19 Mar 2008 03:16:04 +0100 Received: from bloup.cyb.fr (HELO ?192.168.4.42?) (192.168.4.42) by ns1.cyb.fr with SMTP; 19 Mar 2008 03:16:04 +0100 Message-ID: <47E07763.5020806@cyb.fr> Date: Wed, 19 Mar 2008 03:16:03 +0100 From: Cybil User-Agent: Thunderbird 2.0.0.12 (X11/20080312) MIME-Version: 1.0 To: java@FreeBSD.org Content-Type: multipart/mixed; boundary="------------070704020500040704060103" Cc: Subject: [ports] linux-sun-jre16 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@cyb.fr List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 02:42:47 -0000 This is a multi-part message in MIME format. --------------070704020500040704060103 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, as Sun updates to u05 its binary files, I did some changes to distinfo (name, sha256, md5, cksum) and to Makefile ( s/+403/+444/ and JRE_REVISION= 05 ). Those are attached. It works fine. Best regards, -- Cybil Courraud --------------070704020500040704060103 Content-Type: text/plain; name="Makefile" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makefile" # New ports collection makefile for: Sun Linux JRE 1.6.x # Date created: 5 October 2007 # Whom: Jung-uk Kim # # $FreeBSD: ports/java/linux-sun-jre16/Makefile,v 1.1 2007/10/26 20:49:42 jkim Exp $ # PORTNAME= jre PORTVERSION= ${DL_JRE_VERSION:S/_/./g} CATEGORIES= java MASTER_SITES= # PKGNAMEPREFIX= linux-sun- DISTNAME= jre-6u${JRE_REVISION:S/^0//}-linux-i586 EXTRACT_SUFX= .bin MAINTAINER= java@FreeBSD.org COMMENT= Sun Java Runtime Environment 1.6 for Linux EXTRACT_DEPENDS=${LINUX_BASE_PORT} RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper NO_CDROM= License does not allow distribution with fee RESTRICTED= Redistribution of repackaged binaries not permitted LATEST_LINK= linux-sun-jre16 WRKSRC= ${WRKDIR}/jre${DL_JRE_VERSION} PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} PORTVERSION=${PORTVERSION} PKGINSTALL= ${WRKDIR}/pkg-install NO_BUILD= yes USE_LINUX= yes USE_XLIB= yes JRE_VERSION= 1.6.0 JRE_REVISION= 05 DL_JRE_VERSION= ${JRE_VERSION}_${JRE_REVISION} ONLY_FOR_ARCHS= i386 amd64 DOWNLOAD_URL?= http://java.sun.com/javase/downloads/index.jsp APP_HOME= ${PREFIX}/${PKGNAMEPREFIX}${PORTNAME}${JRE_VERSION} PACKED_JARS= lib/charsets.jar lib/deploy.jar lib/ext/localedata.jar lib/javaws.jar lib/jsse.jar lib/plugin.jar lib/rt.jar UNPACK_CMD= ${APP_HOME}/bin/unpack200 .include .if ${OSVERSION} < 504000 IGNORE= does not run (core dumps: Bad System Call) .endif .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING) IGNORE?=You must manually fetch the JRE self-extracting file for the Linux platform (${DISTNAME}${EXTRACT_SUFX}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again .endif pre-everything:: @${CAT} ${PKGMESSAGE} do-extract: @${MKDIR} ${WRKDIR} @cd ${WRKDIR} \ && ${TAIL} -n +444 ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} > ${WRKDIR}/install.sfx \ && ${CHMOD} +x ${WRKDIR}/install.sfx \ && ${WRKDIR}/install.sfx > /dev/null post-patch: ${REINPLACE_CMD} -i.orig -e 's:^#!/bin/bash:#!/bin/sh:' ${WRKSRC}/bin/jcontrol @${FIND} ${WRKSRC} -name '*.orig' -print | ${XARGS} ${RM} -f # XXX: This is missing a "${BRANDELF} -t Linux ". do-install: ${MKDIR} ${APP_HOME} cd ${WRKSRC} && ${FIND} . -print \ | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${APP_HOME} for i in ${PACKED_JARS}; do \ if [ -f ${APP_HOME}/`dirname $$i`/`basename $$i .jar`.pack ]; then \ ${UNPACK_CMD} ${APP_HOME}/`dirname $$i`/`basename $$i .jar`.pack ${APP_HOME}/$$i; \ ${RM} -f ${APP_HOME}/`dirname $$i`/`basename $$i .jar`.pack; \ fi \ done post-install: ${LOCALBASE}/bin/registervm "${APP_HOME}/bin/java # Linux-Sun-JRE${PORTVERSION}" ${SED} -e "s:%%JRE_HOME%%:${APP_HOME}:g" \ < ${FILESDIR}/pkg-install.in > ${PKGINSTALL} ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .include --------------070704020500040704060103 Content-Type: text/plain; name="distinfo" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="distinfo" MD5 (jre-6u5-linux-i586.bin) = 5198dd2a95a87587b0d9824d68f577cf SHA256 (jre-6u5-linux-i586.bin) = ab2811c5c4db2e61a94ca69ce6fe13ba22cc2a511fdedb94f81ebde46b796692 SIZE (jre-6u5-linux-i586.bin) = 19745768 --------------070704020500040704060103-- From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 05:57:34 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A65C106566B for ; Wed, 19 Mar 2008 05:57:34 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 1277B8FC13 for ; Wed, 19 Mar 2008 05:57:33 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m2J5vWB8019920; Tue, 18 Mar 2008 22:57:32 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m2J5vWCu019919; Tue, 18 Mar 2008 22:57:32 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Tue, 18 Mar 2008 22:57:31 -0700 From: Greg Lewis To: Peter Jeremy Message-ID: <20080319055731.GA19887@misty.eyesbeyond.com> References: <20080316223054.GA46447@server.vk2pj.dyndns.org> <20080317133144.GA4473@misty.eyesbeyond.com> <20080318061525.GQ44676@server.vk2pj.dyndns.org> <20080318214106.GA69742@server.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080318214106.GA69742@server.vk2pj.dyndns.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-java@freebsd.org Subject: Re: jdk15/javaws on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 05:57:34 -0000 G'day Peter, On Wed, Mar 19, 2008 at 08:41:06AM +1100, Peter Jeremy wrote: > On Tue, Mar 18, 2008 at 05:15:25PM +1100, Peter Jeremy wrote: > >I've done some poking at it with both some printf()s and gdb and it > >appears to be a gcc bug - in fact, I'm surprised it works at all... > > > >The relevant function is GetBootClassPath(): > >char* GetBootClassPath(void) { > > static char bootclasspath[MAXPATHLEN]; > >#ifdef _DEBUG > > sprintf(bootclasspath, "%s%c%s%c%s%c%s", > > sysGetJarLib(), FILE_SEPARATOR, "javaws_g.jar", > > PATH_SEPARATOR, sysGetJarLib(), FILE_SEPARATOR, "deploy_g.jar"); > >#else > > sprintf(bootclasspath, "%s%c%s%c%s%c%s", > > sysGetJarLib(), FILE_SEPARATOR, "javaws.jar", > > PATH_SEPARATOR, sysGetJarLib(), FILE_SEPARATOR, "deploy.jar"); > >#endif > > return bootclasspath; > >} > > I've done a bit more investigating and the problem is that > sysGetJarLib() returns char*, and this is assumed by the above code. > But there is no prototype in scope for the above code so gcc assumes > that sysGetJarLib() returns int and passes it to sprintf as an int. > > Looking further, there is no prototype for sysGetJarLib() anywhere in > the source code - or, for that matter many of the other functions in > deploy/src/javaws/share/native/system.c that also return char*. > > This code can't work correctly on any platform where > sizeof(int) != sizeof(void*) so I'm not quite sure how Sun make it > work on Sun SPARC... I've had javaws work on amd64 for 1.5, so my guess would be that earlier versions of gcc have just been more lenient here. It wasn't enabled for amd64 without trying it :). Also, its quite possible that it wasn't working on Solaris/Sparc64 since we're the first OS to include the browser plugin and javaws on a 64 bit platform. > I'm currently trying to rebuild Java with -Wall to see how many of > these sorts of bugs exist. In the meantime, I would suggest that > java is broken on any 64-bit architecture. I suspect the number is very few in the main code which is solidly tested on 64 bit platforms. HotSpot is compiled with -Werror and much of the rest of the main code is compiled with -Wall. The plugin and javaws are a different matter though and if there are lurking bugs of this type they are most likely there. As above, we're the first ones to enable them on amd64, so its quite possible some bugs were missed in porting as the plugin in particular took a lot of work to get working on a 64 bit platform. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 06:00:06 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 729921065673 for ; Wed, 19 Mar 2008 06:00:06 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 1ADE58FC1B for ; Wed, 19 Mar 2008 06:00:05 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m2J605KC019950; Tue, 18 Mar 2008 23:00:05 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m2J604ZE019949; Tue, 18 Mar 2008 23:00:04 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Tue, 18 Mar 2008 23:00:04 -0700 From: Greg Lewis To: Peter Jeremy Message-ID: <20080319060004.GB19887@misty.eyesbeyond.com> References: <20080316223054.GA46447@server.vk2pj.dyndns.org> <20080317133144.GA4473@misty.eyesbeyond.com> <20080318061525.GQ44676@server.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080318061525.GQ44676@server.vk2pj.dyndns.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-java@freebsd.org Subject: Re: jdk15/javaws on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 06:00:06 -0000 G'day Peter, On Tue, Mar 18, 2008 at 05:15:25PM +1100, Peter Jeremy wrote: > On Mon, Mar 17, 2008 at 06:31:44AM -0700, Greg Lewis wrote: > >On Mon, Mar 17, 2008 at 09:30:54AM +1100, Peter Jeremy wrote: > >> 75310 java CALL stat(0x7fffffffd250,0x7fffffffd6f0) > >> 75310 java NAMI "<8B>H<83>[]?1?H<83>[]?AUATUSH<83>H<89>?H<8B>^E?^M^R/deploy.jar" > >> 75310 java RET stat -1 errno 2 No such file or directory > > > >That certainly is an interesting path for deploy.jar... > > > >The path to deploy.jar is set up in deploy/src/javaws/share/native/launcher.c, > >so thats probably a good place to start. > > I've done some poking at it with both some printf()s and gdb and it > appears to be a gcc bug - in fact, I'm surprised it works at all... > > The relevant function is GetBootClassPath(): > char* GetBootClassPath(void) { > static char bootclasspath[MAXPATHLEN]; > #ifdef _DEBUG > sprintf(bootclasspath, "%s%c%s%c%s%c%s", > sysGetJarLib(), FILE_SEPARATOR, "javaws_g.jar", > PATH_SEPARATOR, sysGetJarLib(), FILE_SEPARATOR, "deploy_g.jar"); > #else > sprintf(bootclasspath, "%s%c%s%c%s%c%s", > sysGetJarLib(), FILE_SEPARATOR, "javaws.jar", > PATH_SEPARATOR, sysGetJarLib(), FILE_SEPARATOR, "deploy.jar"); > #endif > return bootclasspath; > } > > Within the jdk build, launcher.c is compiled with: > /usr/bin/gcc -I../../src/javaws/share/native -I../../src/javaws/solaris/native -I../../src/javaws/share/native/jpeg -I/home/obj/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/deploy/javaws/jawsgensrc/headers -I/usr/local/include -I/usr/local/include -D_ALLBSD_SOURCE ../../src/javaws/share/native/launcher.c -c -o /home/obj/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/deploy/javaws/jawsobj/launcher.o > > The second sysGetJarLib() is passed to sprintf() as the first memory > operand (ie (%rsp)) but for reasons known best to gcc, only a 32-bit > move is used, leaving the high 32-bits alone. In my case, when > sprintf() accesses the 64-bit value it winds up with an arbitrary address > inside one of the dynamic libraries. > > I've tried building a simple test using: > cc -O2 -fno-strict-aliasing -pipe -march=nocona -DDMEM foo.c -o foo > and the code is compiled correctly (actually, the generated code is > basically identical except it correctly uses 64-bit moves). I'm still > investigating what has gone wrong. Saw your later posting about it being the prototype for sysGetjarLib. > Out of interest, why isn't jdk15 being built using the default CFLAGS? This isn't deliberate. Its just likely that we haven't caught all the places compile flags are set or overridden and made sure it respects CFLAGS. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 07:07:25 2008 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D80611065671; Wed, 19 Mar 2008 07:07:24 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mta3.srv.hcvlny.cv.net (mta3.srv.hcvlny.cv.net [167.206.4.198]) by mx1.freebsd.org (Postfix) with ESMTP id 984258FC1B; Wed, 19 Mar 2008 07:07:24 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from flosoft.no-ip.biz (ool-435559b8.dyn.optonline.net [67.85.89.184]) by mta3.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0JXY00I47UGBRUH0@mta3.srv.hcvlny.cv.net>; Wed, 19 Mar 2008 03:07:24 -0400 (EDT) Received: from flosoft.no-ip.biz (localhost [IPv6:::1]) by flosoft.no-ip.biz (8.14.2/8.14.2) with ESMTP id m2J77MpF011568; Wed, 19 Mar 2008 03:07:22 -0400 Date: Wed, 19 Mar 2008 03:07:17 -0400 From: "Aryeh M. Friedman" In-reply-to: <200803190638.m2J6cLKU059782@repoman.freebsd.org> To: David Xu Message-id: <47E0BBA5.8090903@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Enigmail-Version: 0.95.6 References: <200803190638.m2J6cLKU059782@repoman.freebsd.org> User-Agent: Thunderbird 2.0.0.12 (X11/20080314) Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, freebsd-java@FreeBSD.org Subject: Re: cvs commit: src/lib/libthr/thread thr_affinity.c X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 07:07:25 -0000 I know this is off topic but the removal of KSE made it so it is not possible to get any Java VM running on 8-current (AMD64). Spcifically I have attached the results of attempting to install java/diablo-jdk15, java/linux-sun-jdk15, java/linux-sun-jdk16 with the second two giving false positive installs. I have contacted Greg Lewis and the -java@ mailing list and seems like they are as baffled as I am on the sitution.... If you would be so kind as to make a tempurary workaround to allow java/diablo-jdk15 to install/run correctly then it would be possible to build a native VM and this would give various intrested parties time to figure out how to how to not rely on KSE. Diablo: ===> Installing for diablo-jdk-1.5.0.07.01_9 ===> diablo-jdk-1.5.0.07.01_9 depends on executable: javavm - found ===> diablo-jdk-1.5.0.07.01_9 depends on file: /usr/local/libdata/pkgconfig/xi.pc - found ===> diablo-jdk-1.5.0.07.01_9 depends on file: /usr/local/libdata/pkgconfig/xp.pc - found ===> diablo-jdk-1.5.0.07.01_9 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found ===> diablo-jdk-1.5.0.07.01_9 depends on file: /usr/local/libdata/pkgconfig/xtst.pc - found ===> diablo-jdk-1.5.0.07.01_9 depends on shared library: z.3 - found Fatal error 'kse_create() failed ' at line 444 in file /usr/src/lib/libpthread/thread/thr_kern.c (errno = 2) *** Error code 1 (ignored) ===> Generating temporary packing list ===> Checking if java/diablo-jdk15 already installed Attempting to install either jdk15 or 16 with linux-sun-jdk15: gmake[2]: Entering directory `/usr/ports/java/jdk15/work/control/build/bsd-amd64/hotspot-amd64/tmp/bsd_amd64_compiler2/product' # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x2bc31f64, pid=2984, tid=16384 # # Java VM: Java HotSpot(TM) Server VM (1.5.0_14-b03 mixed mode) # Problematic frame: # v blob 0x2bc31f64 # # An error report file with more information is saved as hs_err_pid2984.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # ^C[thread 131081 also had an error][thread 131081 also had an error] [thread 147466 also had an error] [thread 98311 also had an error] [thread 81926 also had an error] [thread 49156 also had an error] thread 114696 also had an error] [thread 65541 also had an error] [thread 32771 also had an error][thread 32771 also had an error] Attempting to install jdk16 with linux-sun-jdk16: gmake[2]: Entering directory `/usr/ports/java/jdk15/work/control/build/bsd-amd64/hotspot-amd64/tmp/bsd_amd64_compiler2/product' # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x2bc31f64, pid=2984, tid=16384 # # Java VM: Java HotSpot(TM) Server VM (1.5.0_14-b03 mixed mode) # Problematic frame: # v blob 0x2bc31f64 # # An error report file with more information is saved as hs_err_pid2984.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # ^C[thread 131081 also had an error][thread 131081 also had an error] [thread 147466 also had an error] [thread 98311 also had an error] [thread 81926 also had an error] [thread 49156 also had an error] thread 114696 also had an error] [thread 65541 also had an error] [thread 32771 also had an error][thread 32771 also had an error] Berfor anyone asks I have both linuxprocfs and linux kmods loaded and a linuxprocfs mounted: > kldstat Id Refs Address Size Name 1 19 0xffffffff80100000 acf2c8 kernel (/boot/kernel/kernel) 2 1 0xffffffff80bd0000 9dc8 linprocfs.ko (/boot/kernel/linprocfs.ko) 3 2 0xffffffff80bda000 3aa58 linux.ko (/boot/kernel/linux.ko) 4 1 0xffffffff80c15000 1a598 snd_hda.ko (/boot/kernel/snd_hda.ko) 5 2 0xffffffff80c30000 665a8 sound.ko (/boot/kernel/sound.ko) 6 1 0xffffffffb0885000 a492 fuse.ko (/usr/local/modules/fuse.ko) > df -k Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/ad8s2a 507630 244024 222996 52% / devfs 1 1 0 100% /dev /dev/ad8s2e 507630 4496 462524 1% /tmp /dev/ad8s2f 361317584 185022582 147389596 56% /usr /dev/ad8s2d 5059630 130124 4524736 3% /var procfs 4 4 0 100% /proc linprocfs 4 4 0 100% /usr/compat/linux/proc And all three ports installed with no problem before KSE was removed. David Xu wrote: > davidxu 2008-03-19 06:38:21 UTC > > FreeBSD src repository > > Modified files: > lib/libthr/thread thr_affinity.c > Log: > if passed thread pointer is equal to current thread, pass -1 to kernel > to speed up searching. > > Revision Changes Path > 1.2 +19 -11 src/lib/libthr/thread/thr_affinity.c > _______________________________________________ > cvs-src@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/cvs-src > To unsubscribe, send any mail to "cvs-src-unsubscribe@freebsd.org" > > From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 07:33:20 2008 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6D311065770; Wed, 19 Mar 2008 07:33:20 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AAA758FC18; Wed, 19 Mar 2008 07:33:19 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from apple.my.domain (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2J7XGP4076082; Wed, 19 Mar 2008 07:33:17 GMT (envelope-from davidxu@freebsd.org) Message-ID: <47E0C20E.5040002@freebsd.org> Date: Wed, 19 Mar 2008 15:34:38 +0800 From: David Xu User-Agent: Thunderbird 2.0.0.9 (X11/20071211) MIME-Version: 1.0 To: "Aryeh M. Friedman" References: <200803190638.m2J6cLKU059782@repoman.freebsd.org> <47E0BBA5.8090903@gmail.com> In-Reply-To: <47E0BBA5.8090903@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, freebsd-java@FreeBSD.org Subject: Re: cvs commit: src/lib/libthr/thread thr_affinity.c X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 07:33:21 -0000 Aryeh M. Friedman wrote: > I know this is off topic but the removal of KSE made it so it is not > possible to get any Java VM running on 8-current (AMD64). Spcifically > I have attached the results of attempting to install java/diablo-jdk15, > java/linux-sun-jdk15, java/linux-sun-jdk16 with the second two giving > false positive installs. I have contacted Greg Lewis and the -java@ > mailing list and seems like they are as baffled as I am on the > sitution.... If you would be so kind as to make a tempurary workaround > to allow java/diablo-jdk15 to install/run correctly then it would be > possible to build a native VM and this would give various intrested > parties time to figure out how to how to not rely on KSE. > man libmap.conf Regards, David Xu From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 11:58:24 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CC8C106564A for ; Wed, 19 Mar 2008 11:58:24 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out1.tiscali.nl (smtp-out1.tiscali.nl [195.241.79.176]) by mx1.freebsd.org (Postfix) with ESMTP id 3E9928FC14 for ; Wed, 19 Mar 2008 11:58:24 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [212.123.145.58] (helo=guido.klop.ws) by smtp-out1.tiscali.nl with smtp (Tiscali http://www.tiscali.nl) id 1Jbwsh-0004ie-IS for ; Wed, 19 Mar 2008 12:58:22 +0100 Received: (qmail 2167 invoked from network); 19 Mar 2008 11:54:55 -0000 Received: from localhost (HELO guido.klop.ws) (127.0.0.1) by localhost with SMTP; 19 Mar 2008 11:54:55 -0000 Date: Wed, 19 Mar 2008 12:54:52 +0100 To: ken , mbowie@buzmo.com From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <20080309.212020.1678758621.ken@tydfam.jp> <20080311.122809.-345485952.ken@tydfam.jp> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <20080311.122809.-345485952.ken@tydfam.jp> User-Agent: Opera Mail/9.26 (FreeBSD) Cc: freebsd-eclipse@freebsd.org, glewis@eyebeyond.com, freebsd-java@freebsd.org Subject: Re: eclipse-devel 3.3.2 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 11:58:24 -0000 On Tue, 11 Mar 2008 04:28:09 +0100, ken wrote: > My appology, Mike. > I found that I made a mistake and brought in a lot of bugs relating to > minor versioning of plugins with eclipse-devel332.tgz. > > Please pick up newer one from > http://www.tydfam.jp/eclipse-devel332.tgz and give a try. I checked it > with amd64/jdk15 and it is seemingly OK. On my freebsd 7-stable i386/jdk16 it runs ok. With subclipse plugin. It was compiled on the same machine with jdk15 I think. Ronald. -- Ronald Klop Amsterdam, The Netherlands From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 14:32:48 2008 Return-Path: Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B88371065670 for ; Wed, 19 Mar 2008 14:32:48 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 39A128FC13 for ; Wed, 19 Mar 2008 14:32:48 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m2JEWkgC081874; Wed, 19 Mar 2008 15:32:46 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m2JEWkRr081873; Wed, 19 Mar 2008 15:32:46 +0100 (CET) (envelope-from olli) Date: Wed, 19 Mar 2008 15:32:46 +0100 (CET) Message-Id: <200803191432.m2JEWkRr081873@lurza.secnetix.de> From: Oliver Fromme To: freebsd-java@FreeBSD.ORG X-Newsgroups: list.freebsd-java User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 19 Mar 2008 15:32:46 +0100 (CET) Cc: Subject: JDK ports questions X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 14:32:48 -0000 Hi, This might be a dumb question, but I'm going to ask it anyway. :-) What is the difference between ports/java/diablo-jdk15 and ports/java/jdk15? Which of them should be used? So far I have only used the Sun-blessed binary package from the FreeBSD foundation download page, so I don't know much about the various ports. However, those packages are now quite old, so I would like to build an up-to-date JDK for FreeBSD 7. Which port should be used for that? Thanks for any insight! Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "[...] one observation we can make here is that Python makes an excellent pseudocoding language, with the wonderful attribute that it can actually be executed." -- Bruce Eckel From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 15:12:21 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F0571065673 for ; Wed, 19 Mar 2008 15:12:21 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id 0704E8FC24 for ; Wed, 19 Mar 2008 15:12:20 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id m2JEoSgd003849 for ; Wed, 19 Mar 2008 16:50:28 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id m2JEoQQ9003848 for freebsd-java@freebsd.org; Wed, 19 Mar 2008 16:50:26 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-java@freebsd.org Date: Wed, 19 Mar 2008 16:50:26 +0200 User-Agent: KMail/1.9.7 References: <200803191432.m2JEWkRr081873@lurza.secnetix.de> In-Reply-To: <200803191432.m2JEWkRr081873@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200803191650.26398.achill@matrix.gatewaynet.com> Subject: Re: JDK ports questions X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 15:12:21 -0000 =CE=A3=CF=84=CE=B9=CF=82 Wednesday 19 March 2008 16:32:46 =CE=BF/=CE=B7 Oli= ver Fromme =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > Hi, >=20 > This might be a dumb question, but I'm going to ask it > anyway. :-) >=20 > What is the difference between ports/java/diablo-jdk15 > and ports/java/jdk15? Which of them should be used? ports/java/diablo-jdk15 is the ports way of installing the binary package, you can do the same with pkg_add -r. ports/java/jdk15 is about actually building from source. >=20 > So far I have only used the Sun-blessed binary package > from the FreeBSD foundation download page, so I don't > know much about the various ports. However, those > packages are now quite old, so I would like to build > an up-to-date JDK for FreeBSD 7. Which port should > be used for that? =46or FreeBSD 7.0, you will have to install misc/compat6x >=20 > Thanks for any insight! >=20 > Best regards > Oliver >=20 =2D-=20 Achilleas Mantzios KOSOVO IS SERBIA FOR EVER From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 15:34:04 2008 Return-Path: Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00F9F1065672 for ; Wed, 19 Mar 2008 15:34:04 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 5D2428FC1B for ; Wed, 19 Mar 2008 15:34:03 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m2JFY1UP085431; Wed, 19 Mar 2008 16:34:01 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m2JFY1d6085430; Wed, 19 Mar 2008 16:34:01 +0100 (CET) (envelope-from olli) Date: Wed, 19 Mar 2008 16:34:01 +0100 (CET) Message-Id: <200803191534.m2JFY1d6085430@lurza.secnetix.de> From: Oliver Fromme To: freebsd-java@FreeBSD.ORG In-Reply-To: <200803191650.26398.achill@matrix.gatewaynet.com> X-Newsgroups: list.freebsd-java User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 19 Mar 2008 16:34:02 +0100 (CET) Cc: Subject: Re: JDK ports questions X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 15:34:04 -0000 Achilleas Mantzios wrote: > Oliver Fromme wrote: > > What is the difference between ports/java/diablo-jdk15 > > and ports/java/jdk15? Which of them should be used? > > ports/java/diablo-jdk15 is the ports way of installing the > binary package, you can do the same with pkg_add -r. I see. So I basically get the same result as downloading the package from freebsdfoundation.org (which is not what I want). Thanks for answering! > > So far I have only used the Sun-blessed binary package > > from the FreeBSD foundation download page, so I don't > > know much about the various ports. However, those > > packages are now quite old, so I would like to build > > an up-to-date JDK for FreeBSD 7. Which port should > > be used for that? > > For FreeBSD 7.0, you will have to install misc/compat6x But it's only required for the bootstrap, right? I.e. when I have built the JDK successfully, I don't need compat6x anymore, I assume. Thinking about it ... When I compile my own JDK anyway, I could just as well go for the JDK 1.6 instead of 1.5. Are there any known problems with building JDK 1.6 on FreeBSD/amd64 7.0? Anything I should be aware of? The JDK is going to be used on several 8-core amd64 machines with 64 GB RAM to run tomcat-based CMS for a very busy web site. No need to say, stability is top- priority. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "If Java had true garbage collection, most programs would delete themselves upon execution." -- Robert Sewell From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 15:55:56 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11BD41065672 for ; Wed, 19 Mar 2008 15:55:56 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id 5DFC78FC16 for ; Wed, 19 Mar 2008 15:55:54 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id m2JFtrgg004209; Wed, 19 Mar 2008 17:55:53 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id m2JFtjMD004208; Wed, 19 Mar 2008 17:55:45 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-java@freebsd.org Date: Wed, 19 Mar 2008 17:55:44 +0200 User-Agent: KMail/1.9.7 References: <200803191534.m2JFY1d6085430@lurza.secnetix.de> In-Reply-To: <200803191534.m2JFY1d6085430@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200803191755.44988.achill@matrix.gatewaynet.com> Cc: Oliver Fromme Subject: Re: JDK ports questions X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 15:55:56 -0000 =CE=A3=CF=84=CE=B9=CF=82 Wednesday 19 March 2008 17:34:01 =CE=BF/=CE=B7 Oli= ver Fromme =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > Achilleas Mantzios wrote: > > Oliver Fromme wrote: > > > What is the difference between ports/java/diablo-jdk15 > > > and ports/java/jdk15? Which of them should be used? > >=20 > > ports/java/diablo-jdk15 is the ports way of installing the > > binary package, you can do the same with pkg_add -r. >=20 > I see. So I basically get the same result as downloading > the package from freebsdfoundation.org (which is not what > I want). >=20 > Thanks for answering! >=20 > > > So far I have only used the Sun-blessed binary package > > > from the FreeBSD foundation download page, so I don't > > > know much about the various ports. However, those > > > packages are now quite old, so I would like to build > > > an up-to-date JDK for FreeBSD 7. Which port should > > > be used for that? > >=20 > > For FreeBSD 7.0, you will have to install misc/compat6x >=20 > But it's only required for the bootstrap, right? > I.e. when I have built the JDK successfully, I don't > need compat6x anymore, I assume. >=20 No, the diablo-jdk1.5.0 executable depends on=20 /usr/local/lib/compat/libpthread.so.2 which is in compat6x-i386 Bootstrap issues exist when you need e.g. a linux jdk in order to compile the java classes of the FreeBSD native port. In that case you install the linux-jdk-whatever, build/install the native port, pkg_deintall the linux-j= dk-... =46or some reason, now that i look at it, compat6x is not recorded as a prerequisite for diablo-jdk1.5.0, [achix@panix ~]% pkg_info -Rr diablo-jdk-1.5.0.07.01_9 Information for diablo-jdk-1.5.0.07.01_9: Depends on: Dependency: xtrans-1.0.4 Dependency: xproto-7.0.10_1 Dependency: xextproto-7.0.2 Dependency: javavmwrapper-2.3 Required by: apache-ant-1.7.0_1 Is there a problem, or is my pkg db broken? > Thinking about it ... When I compile my own JDK anyway, > I could just as well go for the JDK 1.6 instead of 1.5. > Are there any known problems with building JDK 1.6 on > FreeBSD/amd64 7.0? Anything I should be aware of? >=20 > The JDK is going to be used on several 8-core amd64 > machines with 64 GB RAM to run tomcat-based CMS for a > very busy web site. No need to say, stability is top- > priority. >=20 > Best regards > Oliver >=20 =2D-=20 Achilleas Mantzios KOSOVO IS SERBIA FOR EVER From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 16:23:22 2008 Return-Path: Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8001E106566B for ; Wed, 19 Mar 2008 16:23:22 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id DC9F98FC20 for ; Wed, 19 Mar 2008 16:23:21 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m2JGNKQj087461; Wed, 19 Mar 2008 17:23:20 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m2JGNKB5087460; Wed, 19 Mar 2008 17:23:20 +0100 (CET) (envelope-from olli) Date: Wed, 19 Mar 2008 17:23:20 +0100 (CET) Message-Id: <200803191623.m2JGNKB5087460@lurza.secnetix.de> From: Oliver Fromme To: freebsd-java@FreeBSD.ORG In-Reply-To: <200803191755.44988.achill@matrix.gatewaynet.com> X-Newsgroups: list.freebsd-java User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 19 Mar 2008 17:23:20 +0100 (CET) Cc: Subject: Re: JDK ports questions X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 16:23:22 -0000 Achilleas Mantzios wrote: > Oliver Fromme wrote: > > Achilleas Mantzios wrote: > > > For FreeBSD 7.0, you will have to install misc/compat6x > > > > But it's only required for the bootstrap, right? > > I.e. when I have built the JDK successfully, I don't > > need compat6x anymore, I assume. > > No, the diablo-jdk1.5.0 executable depends on > /usr/local/lib/compat/libpthread.so.2 which is in compat6x-i386 Wait a second ... I think we're talking about different things here. I'm aware that diablo-jdk is a binary for FreeBSD 6, so it clearly depends on compat6x when running on 7.0. However, when I compile my own native JDK on FreeBSD 7 (either jdk15 or jdk16), I assume it will be a FreeBSD 7 binary, so it only depends on FreeBSD 7 libraries, so it does not need compat6x. As far as I know, the native JDK (e.g. jdk16) can be bootstrapped using diablo-jdk, so I will need compat6x for that. But as soon as the build is done, I do not need the diablo-jdk anymore, hence I don't need copat6x anymore either. Am I wrong? Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I made up the term 'object-oriented', and I can tell you I didn't have C++ in mind." -- Alan Kay, OOPSLA '97 From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 16:32:43 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0BD5106564A for ; Wed, 19 Mar 2008 16:32:43 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id 4C0C48FC1B for ; Wed, 19 Mar 2008 16:32:42 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id m2JGWfvv004346; Wed, 19 Mar 2008 18:32:41 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id m2JGWf0V004345; Wed, 19 Mar 2008 18:32:41 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-java@freebsd.org Date: Wed, 19 Mar 2008 18:32:41 +0200 User-Agent: KMail/1.9.7 References: <200803191623.m2JGNKB5087460@lurza.secnetix.de> In-Reply-To: <200803191623.m2JGNKB5087460@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200803191832.41499.achill@matrix.gatewaynet.com> Cc: Oliver Fromme Subject: Re: JDK ports questions X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 16:32:43 -0000 =CE=A3=CF=84=CE=B9=CF=82 Wednesday 19 March 2008 18:23:20 =CE=BF/=CE=B7 Oli= ver Fromme =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > Achilleas Mantzios wrote: > > Oliver Fromme wrote: > > > Achilleas Mantzios wrote: > > > > For FreeBSD 7.0, you will have to install misc/compat6x > > >=20 > > > But it's only required for the bootstrap, right? > > > I.e. when I have built the JDK successfully, I don't > > > need compat6x anymore, I assume. > >=20 > > No, the diablo-jdk1.5.0 executable depends on=20 > > /usr/local/lib/compat/libpthread.so.2 which is in compat6x-i386 >=20 > Wait a second ... I think we're talking about different > things here. >=20 > I'm aware that diablo-jdk is a binary for FreeBSD 6, so > it clearly depends on compat6x when running on 7.0. >=20 > However, when I compile my own native JDK on FreeBSD 7 > (either jdk15 or jdk16), I assume it will be a FreeBSD 7 > binary, so it only depends on FreeBSD 7 libraries, so it > does not need compat6x. Sure. >=20 > As far as I know, the native JDK (e.g. jdk16) can be > bootstrapped using diablo-jdk, so I will need compat6x > for that. But as soon as the build is done, I do not > need the diablo-jdk anymore, hence I don't need copat6x > anymore either. Yes. However i dont have jdk1.6 (for production) experience, so maybe someother = can help on that one. >=20 > Am I wrong? >=20 > Best regards > Oliver >=20 =2D-=20 Achilleas Mantzios KOSOVO IS SERBIA FOR EVER From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 16:34:56 2008 Return-Path: Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A52511065673 for ; Wed, 19 Mar 2008 16:34:56 +0000 (UTC) (envelope-from ltning@anduin.net) Received: from anduin.net (anduin.net [213.225.74.230]) by mx1.freebsd.org (Postfix) with ESMTP id 4AD008FC24 for ; Wed, 19 Mar 2008 16:34:56 +0000 (UTC) (envelope-from ltning@anduin.net) Received: from [212.62.248.146] (helo=[192.168.2.176]) by anduin.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Jc0o7-000InX-64; Wed, 19 Mar 2008 17:06:27 +0100 Message-Id: <8F5A2261-60E1-475D-9425-3CA8DE88226B@anduin.net> From: =?ISO-8859-1?Q?Eirik_=D8verby?= To: Oliver Fromme In-Reply-To: <200803191534.m2JFY1d6085430@lurza.secnetix.de> Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 19 Mar 2008 17:06:21 +0100 References: <200803191534.m2JFY1d6085430@lurza.secnetix.de> X-Mailer: Apple Mail (2.919.2) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-java@FreeBSD.ORG Subject: Re: JDK ports questions X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 16:34:56 -0000 On Mar 19, 2008, at 16:34, Oliver Fromme wrote: > Achilleas Mantzios wrote: >> Oliver Fromme wrote: >>> What is the difference between ports/java/diablo-jdk15 >>> and ports/java/jdk15? Which of them should be used? >> >> ports/java/diablo-jdk15 is the ports way of installing the >> binary package, you can do the same with pkg_add -r. > > I see. So I basically get the same result as downloading > the package from freebsdfoundation.org (which is not what > I want). > > Thanks for answering! > >>> So far I have only used the Sun-blessed binary package >>> from the FreeBSD foundation download page, so I don't >>> know much about the various ports. However, those >>> packages are now quite old, so I would like to build >>> an up-to-date JDK for FreeBSD 7. Which port should >>> be used for that? >> >> For FreeBSD 7.0, you will have to install misc/compat6x > > But it's only required for the bootstrap, right? > I.e. when I have built the JDK successfully, I don't > need compat6x anymore, I assume. > > Thinking about it ... When I compile my own JDK anyway, > I could just as well go for the JDK 1.6 instead of 1.5. > Are there any known problems with building JDK 1.6 on > FreeBSD/amd64 7.0? Anything I should be aware of? Anecdotal evidence: We tried, for a short while, 1.6 on 6.3 for a very =20= busy tomcat driven site, noticed no ill effects but also no =20 immediately noticeable changes in system load, etc. > The JDK is going to be used on several 8-core amd64 > machines with 64 GB RAM to run tomcat-based CMS for a > very busy web site. No need to say, stability is top- > priority. On comparable hardware (less RAM, though), and tomcat driven apps, we =20= saw a *real* improvement going to 7.0/1.6 from 6.3/1.5. If the initial =20= numbers hold up, we can cancel the next two rounds of "throwing =20 hardware at the problem" as traffic goes up. Unfortunately, I have not yet repeated the 1.6 vs 1.5 experiment on 7. And of course, different applications bring out different parts of =20 tomcat and the library stack, so your mileage may vary wildly. /Eirik > Best regards > Oliver > > --=20 > Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing =20= > b. M. > Handelsregister: Registergericht Muenchen, HRA 74606, =20 > Gesch=E4ftsfuehrung: > secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht =20= > M=FCn- > chen, HRB 125758, Gesch=E4ftsf=FChrer: Maik Bachmann, Olaf Erb, Ralf =20= > Gebhart > > FreeBSD-Dienstleistungen, -Produkte und mehr: = http://www.secnetix.de/bsd > > "If Java had true garbage collection, most programs > would delete themselves upon execution." > -- Robert Sewell > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-=20 > unsubscribe@freebsd.org" > From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 20:41:12 2008 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2E05106566B; Wed, 19 Mar 2008 20:41:12 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mta4.srv.hcvlny.cv.net (mta4.srv.hcvlny.cv.net [167.206.4.199]) by mx1.freebsd.org (Postfix) with ESMTP id ADC9D8FC20; Wed, 19 Mar 2008 20:41:12 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from flosoft.no-ip.biz (ool-435559b8.dyn.optonline.net [67.85.89.184]) by mta4.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0JXZ00IEHW4H8QB0@mta4.srv.hcvlny.cv.net>; Wed, 19 Mar 2008 16:41:06 -0400 (EDT) Received: from flosoft.no-ip.biz (localhost [IPv6:::1]) by flosoft.no-ip.biz (8.14.2/8.14.2) with ESMTP id m2JKf3kS039812; Wed, 19 Mar 2008 16:41:04 -0400 Date: Wed, 19 Mar 2008 16:40:58 -0400 From: "Aryeh M. Friedman" In-reply-to: <47E0C20E.5040002@freebsd.org> To: David Xu Message-id: <47E17A5A.20909@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Enigmail-Version: 0.95.6 References: <200803190638.m2J6cLKU059782@repoman.freebsd.org> <47E0BBA5.8090903@gmail.com> <47E0C20E.5040002@freebsd.org> User-Agent: Thunderbird 2.0.0.12 (X11/20080314) Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, freebsd-java@FreeBSD.org Subject: Re: cvs commit: src/lib/libthr/thread thr_affinity.c X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 20:41:13 -0000 David Xu wrote: > Aryeh M. Friedman wrote: >> I know this is off topic but the removal of KSE made it so it is not >> possible to get any Java VM running on 8-current (AMD64). >> Spcifically I have attached the results of attempting to install >> java/diablo-jdk15, java/linux-sun-jdk15, java/linux-sun-jdk16 with >> the second two giving false positive installs. I have contacted >> Greg Lewis and the -java@ mailing list and seems like they are as >> baffled as I am on the sitution.... If you would be so kind as to >> make a tempurary workaround to allow java/diablo-jdk15 to install/run >> correctly then it would be possible to build a native VM and this >> would give various intrested parties time to figure out how to how to >> not rely on KSE. >> > > man libmap.conf Sorry for taking a day to get back but unless I am confused it is already using compat libs thus should not have this issue (but it does): flosoft# pwd && ldd ./java /usr/ports/java/diablo-jdk15/work/diablo-jdk1.5.0_07/bin ./java: libz.so.3 => /usr/local/lib/compat/libz.so.3 (0x80063b000) libpthread.so.2 => /usr/local/lib/compat/libpthread.so.2 (0x80074f000) libc.so.6 => /usr/local/lib/compat/libc.so.6 (0x80087a000) flosoft# ls /usr/local/lib/compat/libz.so* /usr/local/lib/compat/libz.so.3 flosoft# ls /usr/local/lib/compat/libthread_db.so* /usr/local/lib/compat/libthread_db.so.2 flosoft# ls /usr/local/lib/compat/libc.so* /usr/local/lib/compat/libc.so.6 From owner-freebsd-java@FreeBSD.ORG Wed Mar 19 23:50:51 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CED1A106564A; Wed, 19 Mar 2008 23:50:51 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from mx.utwente.nl (unknown [IPv6:2001:610:1908:1000:204:23ff:feb7:b8fe]) by mx1.freebsd.org (Postfix) with ESMTP id 43F228FC1A; Wed, 19 Mar 2008 23:50:51 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from lux.student.utwente.nl (lux.student.utwente.nl [130.89.170.81]) by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id m2JNoTbw013241; Thu, 20 Mar 2008 00:50:29 +0100 From: Pieter de Goeje To: "Aryeh M. Friedman" Date: Thu, 20 Mar 2008 00:50:28 +0100 User-Agent: KMail/1.9.7 References: <200803190638.m2J6cLKU059782@repoman.freebsd.org> <47E0C20E.5040002@freebsd.org> <47E17A5A.20909@gmail.com> In-Reply-To: <47E17A5A.20909@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803200050.29286.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact servicedesk@icts.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: David Xu , freebsd-java@freebsd.org Subject: Re: cvs commit: src/lib/libthr/thread thr_affinity.c X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 23:50:51 -0000 On Wednesday 19 March 2008, Aryeh M. Friedman wrote: > David Xu wrote: > > Aryeh M. Friedman wrote: > >> I know this is off topic but the removal of KSE made it so it is not > >> possible to get any Java VM running on 8-current (AMD64). > >> Spcifically I have attached the results of attempting to install > >> java/diablo-jdk15, java/linux-sun-jdk15, java/linux-sun-jdk16 with > >> the second two giving false positive installs. I have contacted > >> Greg Lewis and the -java@ mailing list and seems like they are as > >> baffled as I am on the sitution.... If you would be so kind as to > >> make a tempurary workaround to allow java/diablo-jdk15 to install/run > >> correctly then it would be possible to build a native VM and this > >> would give various intrested parties time to figure out how to how to > >> not rely on KSE. > > > > man libmap.conf > > Sorry for taking a day to get back but unless I am confused it is > already using compat libs thus should not have this issue (but it does): > > flosoft# pwd && ldd ./java > /usr/ports/java/diablo-jdk15/work/diablo-jdk1.5.0_07/bin > ./java: > libz.so.3 => /usr/local/lib/compat/libz.so.3 (0x80063b000) > libpthread.so.2 => /usr/local/lib/compat/libpthread.so.2 (0x80074f000) > libc.so.6 => /usr/local/lib/compat/libc.so.6 (0x80087a000) > flosoft# ls /usr/local/lib/compat/libz.so* > /usr/local/lib/compat/libz.so.3 > flosoft# ls /usr/local/lib/compat/libthread_db.so* > /usr/local/lib/compat/libthread_db.so.2 > flosoft# ls /usr/local/lib/compat/libc.so* > /usr/local/lib/compat/libc.so.6 libpthread depends on KSE. KSE isn't there any more so there is no way your setup will work. You need to map libpthread.so.2 to libthr.so.2 using libmap.conf. -- Pieter de Goeje From owner-freebsd-java@FreeBSD.ORG Thu Mar 20 08:02:15 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30B251065676 for ; Thu, 20 Mar 2008 08:02:15 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id 89D6D8FC17 for ; Thu, 20 Mar 2008 08:02:13 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id m2K8243C009525; Thu, 20 Mar 2008 10:02:04 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id m2K81wpL009524; Thu, 20 Mar 2008 10:01:58 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-java@freebsd.org Date: Thu, 20 Mar 2008 10:01:57 +0200 User-Agent: KMail/1.9.7 References: <200803191534.m2JFY1d6085430@lurza.secnetix.de> <8F5A2261-60E1-475D-9425-3CA8DE88226B@anduin.net> In-Reply-To: <8F5A2261-60E1-475D-9425-3CA8DE88226B@anduin.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200803201001.57735.achill@matrix.gatewaynet.com> Cc: Oliver Fromme , Eirik =?utf-8?q?=C3=98verby?= Subject: Re: JDK ports questions X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 08:02:15 -0000 =CE=A3=CF=84=CE=B9=CF=82 Wednesday 19 March 2008 18:06:21 =CE=BF/=CE=B7 Eir= ik =C3=98verby =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > On Mar 19, 2008, at 16:34, Oliver Fromme wrote: > > Achilleas Mantzios wrote: > >> Oliver Fromme wrote: > >>> What is the difference between ports/java/diablo-jdk15 > >>> and ports/java/jdk15? Which of them should be used? > >> > >> ports/java/diablo-jdk15 is the ports way of installing the > >> binary package, you can do the same with pkg_add -r. > > > > I see. So I basically get the same result as downloading > > the package from freebsdfoundation.org (which is not what > > I want). > > > > Thanks for answering! > > > >>> So far I have only used the Sun-blessed binary package > >>> from the FreeBSD foundation download page, so I don't > >>> know much about the various ports. However, those > >>> packages are now quite old, so I would like to build > >>> an up-to-date JDK for FreeBSD 7. Which port should > >>> be used for that? > >> > >> For FreeBSD 7.0, you will have to install misc/compat6x > > > > But it's only required for the bootstrap, right? > > I.e. when I have built the JDK successfully, I don't > > need compat6x anymore, I assume. > > > > Thinking about it ... When I compile my own JDK anyway, > > I could just as well go for the JDK 1.6 instead of 1.5. > > Are there any known problems with building JDK 1.6 on > > FreeBSD/amd64 7.0? Anything I should be aware of? >=20 > Anecdotal evidence: We tried, for a short while, 1.6 on 6.3 for a very =20 > busy tomcat driven site, noticed no ill effects but also no =20 > immediately noticeable changes in system load, etc. >=20 >=20 > > The JDK is going to be used on several 8-core amd64 > > machines with 64 GB RAM to run tomcat-based CMS for a > > very busy web site. No need to say, stability is top- > > priority. >=20 > On comparable hardware (less RAM, though), and tomcat driven apps, we =20 > saw a *real* improvement going to 7.0/1.6 from 6.3/1.5. If the initial =20 > numbers hold up, we can cancel the next two rounds of "throwing =20 > hardware at the problem" as traffic goes up. >=20 The 6.3->7.0 alone already makes a big difference. > Unfortunately, I have not yet repeated the 1.6 vs 1.5 experiment on 7. If you do this test, would be good to know. > And of course, different applications bring out different parts of =20 > tomcat and the library stack, so your mileage may vary wildly. >=20 > /Eirik >=20 > > Best regards > > Oliver > > > > --=20 > > Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing =20 > > b. M. > > Handelsregister: Registergericht Muenchen, HRA 74606, =20 > > Gesch=E4ftsfuehrung: > > secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht =20 > > M=FCn- > > chen, HRB 125758, Gesch=E4ftsf=FChrer: Maik Bachmann, Olaf Erb, Ralf = =20 > > Gebhart > > > > FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/b= sd > > > > "If Java had true garbage collection, most programs > > would delete themselves upon execution." > > -- Robert Sewell > > _______________________________________________ > > freebsd-java@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-java > > To unsubscribe, send any mail to "freebsd-java-=20 > > unsubscribe@freebsd.org" > > >=20 > _______________________________________________ > 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" >=20 =2D-=20 Achilleas Mantzios KOSOVO IS SERBIA FOR EVER From owner-freebsd-java@FreeBSD.ORG Thu Mar 20 13:20:49 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4EEA91065678; Thu, 20 Mar 2008 13:20:49 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 47EB58FC2F; Thu, 20 Mar 2008 13:20:49 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by elvis.mu.org (Postfix) with ESMTP id 96FA81A4D7C; Thu, 20 Mar 2008 06:02:23 -0700 (PDT) From: John Baldwin To: "Aryeh M. Friedman" Date: Thu, 20 Mar 2008 08:41:04 -0400 User-Agent: KMail/1.9.7 References: <200803190638.m2J6cLKU059782@repoman.freebsd.org> <47E0C20E.5040002@freebsd.org> <47E17A5A.20909@gmail.com> In-Reply-To: <47E17A5A.20909@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803200841.04914.jhb@freebsd.org> Cc: cvs-src@freebsd.org, src-committers@freebsd.org, David Xu , cvs-all@freebsd.org, freebsd-java@freebsd.org Subject: Re: cvs commit: src/lib/libthr/thread thr_affinity.c X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 13:20:49 -0000 On Wednesday 19 March 2008 04:40:58 pm Aryeh M. Friedman wrote: > David Xu wrote: > > Aryeh M. Friedman wrote: > >> I know this is off topic but the removal of KSE made it so it is not > >> possible to get any Java VM running on 8-current (AMD64). > >> Spcifically I have attached the results of attempting to install > >> java/diablo-jdk15, java/linux-sun-jdk15, java/linux-sun-jdk16 with > >> the second two giving false positive installs. I have contacted > >> Greg Lewis and the -java@ mailing list and seems like they are as > >> baffled as I am on the sitution.... If you would be so kind as to > >> make a tempurary workaround to allow java/diablo-jdk15 to install/run > >> correctly then it would be possible to build a native VM and this > >> would give various intrested parties time to figure out how to how to > >> not rely on KSE. > > > > man libmap.conf > > Sorry for taking a day to get back but unless I am confused it is > already using compat libs thus should not have this issue (but it does): > > flosoft# pwd && ldd ./java > /usr/ports/java/diablo-jdk15/work/diablo-jdk1.5.0_07/bin > ./java: > libz.so.3 => /usr/local/lib/compat/libz.so.3 (0x80063b000) > libpthread.so.2 => /usr/local/lib/compat/libpthread.so.2 (0x80074f000) > libc.so.6 => /usr/local/lib/compat/libc.so.6 (0x80087a000) > flosoft# ls /usr/local/lib/compat/libz.so* > /usr/local/lib/compat/libz.so.3 > flosoft# ls /usr/local/lib/compat/libthread_db.so* > /usr/local/lib/compat/libthread_db.so.2 > flosoft# ls /usr/local/lib/compat/libc.so* > /usr/local/lib/compat/libc.so.6 The KSE syscalls are gone, you have to use libthr rather than libpthread. -- John Baldwin From owner-freebsd-java@FreeBSD.ORG Thu Mar 20 14:31:42 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D38E1065676 for ; Thu, 20 Mar 2008 14:31:42 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from QMTA05.westchester.pa.mail.comcast.net (qmta05.westchester.pa.mail.comcast.net [76.96.62.48]) by mx1.freebsd.org (Postfix) with ESMTP id 05E458FC26 for ; Thu, 20 Mar 2008 14:31:41 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from OMTA02.westchester.pa.mail.comcast.net ([76.96.62.19]) by QMTA05.westchester.pa.mail.comcast.net with comcast id 3SHt1Z0090QuhwU5500g00; Thu, 20 Mar 2008 14:20:23 +0000 Received: from discordia ([24.60.135.75]) by OMTA02.westchester.pa.mail.comcast.net with comcast id 3SMa1Z0011dmTCQ3N00000; Thu, 20 Mar 2008 14:21:34 +0000 X-Authority-Analysis: v=1.0 c=1 a=7xAWhV0EqcoA:10 a=c5sTgUsrrxMA:10 a=lmv3vzsU94LNQ0qxqfoA:9 a=ZhHHnvs47bvUxThTZ8QA:7 a=i3zMgvBGsOM_pLgCvo-VRyuRaMQA:4 a=zUBsD6tbDSsA:10 Received: by discordia (Postfix, from userid 103) id E80CA1636F9; Thu, 20 Mar 2008 10:21:33 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.8-gr1 (2007-02-13) on discordia X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.8-gr1 Received: from [172.20.1.3] (erwin.int.cokane.org [172.20.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by discordia (Postfix) with ESMTP id 423881636F8; Thu, 20 Mar 2008 10:21:17 -0400 (EDT) Message-ID: <47E27204.9040607@FreeBSD.org> Date: Thu, 20 Mar 2008 10:17:40 -0400 From: Coleman Kane Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.12 (X11/20080312) MIME-Version: 1.0 To: John Baldwin References: <200803190638.m2J6cLKU059782@repoman.freebsd.org> <47E0C20E.5040002@freebsd.org> <47E17A5A.20909@gmail.com> <200803200841.04914.jhb@freebsd.org> In-Reply-To: <200803200841.04914.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: src-committers@freebsd.org, "Aryeh M. Friedman" , cvs-src@freebsd.org, cvs-all@freebsd.org, David Xu , freebsd-java@freebsd.org Subject: Re: cvs commit: src/lib/libthr/thread thr_affinity.c X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: cokane@FreeBSD.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 14:31:42 -0000 John Baldwin wrote: > On Wednesday 19 March 2008 04:40:58 pm Aryeh M. Friedman wrote: > >> David Xu wrote: >> >>> Aryeh M. Friedman wrote: >>> >>>> I know this is off topic but the removal of KSE made it so it is not >>>> possible to get any Java VM running on 8-current (AMD64). >>>> Spcifically I have attached the results of attempting to install >>>> java/diablo-jdk15, java/linux-sun-jdk15, java/linux-sun-jdk16 with >>>> the second two giving false positive installs. I have contacted >>>> Greg Lewis and the -java@ mailing list and seems like they are as >>>> baffled as I am on the sitution.... If you would be so kind as to >>>> make a tempurary workaround to allow java/diablo-jdk15 to install/run >>>> correctly then it would be possible to build a native VM and this >>>> would give various intrested parties time to figure out how to how to >>>> not rely on KSE. >>>> >>> man libmap.conf >>> >> Sorry for taking a day to get back but unless I am confused it is >> already using compat libs thus should not have this issue (but it does): >> >> flosoft# pwd && ldd ./java >> /usr/ports/java/diablo-jdk15/work/diablo-jdk1.5.0_07/bin >> ./java: >> libz.so.3 => /usr/local/lib/compat/libz.so.3 (0x80063b000) >> libpthread.so.2 => /usr/local/lib/compat/libpthread.so.2 (0x80074f000) >> libc.so.6 => /usr/local/lib/compat/libc.so.6 (0x80087a000) >> flosoft# ls /usr/local/lib/compat/libz.so* >> /usr/local/lib/compat/libz.so.3 >> flosoft# ls /usr/local/lib/compat/libthread_db.so* >> /usr/local/lib/compat/libthread_db.so.2 >> flosoft# ls /usr/local/lib/compat/libc.so* >> /usr/local/lib/compat/libc.so.6 >> > > The KSE syscalls are gone, you have to use libthr rather than libpthread. > FWIW, building Java from source has been working for me just fine. -- Coleman From owner-freebsd-java@FreeBSD.ORG Thu Mar 20 15:40:35 2008 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0F8D106566C for ; Thu, 20 Mar 2008 15:40:35 +0000 (UTC) (envelope-from kwl2363@yahoo.com) Received: from web50302.mail.re2.yahoo.com (web50302.mail.re2.yahoo.com [206.190.38.56]) by mx1.freebsd.org (Postfix) with SMTP id 7AE638FC1A for ; Thu, 20 Mar 2008 15:40:30 +0000 (UTC) (envelope-from kwl2363@yahoo.com) Received: (qmail 14324 invoked by uid 60001); 20 Mar 2008 15:13:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=IHQGeTNSKx//OfZiq5+/aOn8oHz2G9GlamF+ynX3DifKDLnH+AemAlkPTEZlLQHgn5XAiElasyNgGJWaWofL+Pf9CaUBYC97KmgPOmIGee5SiHf4PncQVGpX1AxLZjuMJYql+S6/EFiDAhv00asohggFMd7jJ5OE+DrsbIIG13U=; X-YMail-OSG: Pug7eGkVM1kmOH3Q_U_1mb6_yjy_.dT9BtKaQGov9J43f0hSIE3Xdu7vJAKcqVhlzeIVRHDEdTGZ7rzXmtZQ11uZf.DTjkCN.uW0wEvH8FrBLMe8lfA4VVMgJEn.gzxYJyzF Received: from [207.109.153.102] by web50302.mail.re2.yahoo.com via HTTP; Thu, 20 Mar 2008 08:13:49 PDT Date: Thu, 20 Mar 2008 08:13:49 -0700 (PDT) From: FreeBSD-Utah To: java@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <452858.13117.qm@web50302.mail.re2.yahoo.com> Cc: Subject: FreeBSD Port: java/jai X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 15:40:36 -0000 Hello, I apologize for emailing you directly but we are looking for a solution to the problem we are having. When we attempt to build the port: /usr/ports/java/jai which depends on: /usr/ports/www/linuxpluginwrapper we get the error: newpdc# make install ===> Installing for jai-1.1.2_2 ===> jai-1.1.2_2 depends on file: /usr/local/diablo-jdk1.5.0/bin/java - found ===> jai-1.1.2_2 depends on file: /usr/local/lib/pluginwrapper/jai.so - not found ===> Verifying install for /usr/local/lib/pluginwrapper/jai.so in /usr/ports/ www/linuxpluginwrapper ===> linuxpluginwrapper-20051113_8 doesn't support ELF symbol versioning, yet.. *** Error code 1 Stop in /usr/ports/www/linuxpluginwrapper. *** Error code 1 Stop in /usr/ports/java/jai. Is there a solution for this? We are looking to get our system up in production ASAP. A uname -a emits the following information: FreeBSD newpdc.dakcs.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 Any direction would be welcome Regards, M. Goodell ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From owner-freebsd-java@FreeBSD.ORG Thu Mar 20 20:43:14 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DACF310656E2 for ; Thu, 20 Mar 2008 20:43:14 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 7CE248FC16 for ; Thu, 20 Mar 2008 20:43:14 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m2KKhDCN035675; Thu, 20 Mar 2008 13:43:13 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m2KKhCd8035674; Thu, 20 Mar 2008 13:43:12 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Thu, 20 Mar 2008 13:43:11 -0700 From: Greg Lewis To: Achilleas Mantzios Message-ID: <20080320204311.GA35634@misty.eyesbeyond.com> References: <200803191534.m2JFY1d6085430@lurza.secnetix.de> <200803191755.44988.achill@matrix.gatewaynet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200803191755.44988.achill@matrix.gatewaynet.com> User-Agent: Mutt/1.4.2.2i Cc: Oliver Fromme , freebsd-java@freebsd.org Subject: Re: JDK ports questions X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 20:43:15 -0000 On Wed, Mar 19, 2008 at 05:55:44PM +0200, Achilleas Mantzios wrote: > ???????? Wednesday 19 March 2008 17:34:01 ??/?? Oliver Fromme ????????????: > > Achilleas Mantzios wrote: > > > Oliver Fromme wrote: > > > > What is the difference between ports/java/diablo-jdk15 > > > > and ports/java/jdk15? Which of them should be used? > > > > > > ports/java/diablo-jdk15 is the ports way of installing the > > > binary package, you can do the same with pkg_add -r. > > > > I see. So I basically get the same result as downloading > > the package from freebsdfoundation.org (which is not what > > I want). > > > > Thanks for answering! > > > > > > So far I have only used the Sun-blessed binary package > > > > from the FreeBSD foundation download page, so I don't > > > > know much about the various ports. However, those > > > > packages are now quite old, so I would like to build > > > > an up-to-date JDK for FreeBSD 7. Which port should > > > > be used for that? > > > > > > For FreeBSD 7.0, you will have to install misc/compat6x > > > > But it's only required for the bootstrap, right? > > I.e. when I have built the JDK successfully, I don't > > need compat6x anymore, I assume. > > > > No, the diablo-jdk1.5.0 executable depends on > /usr/local/lib/compat/libpthread.so.2 which is in compat6x-i386 > > Bootstrap issues exist when you need e.g. a linux jdk in order to compile > the java classes of the FreeBSD native port. In that case you install the > linux-jdk-whatever, build/install the native port, pkg_deintall the linux-jdk-... > > For some reason, now that i look at it, compat6x is not recorded as > a prerequisite for diablo-jdk1.5.0, If you installed with the packages from the Foundation site rather than the port then those packages were rolled on a 6.x machine before 7.0 existed, so naturally they wouldn't have that dependency. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Thu Mar 20 20:44:22 2008 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1D2E1065674 for ; Thu, 20 Mar 2008 20:44:22 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 90D8F8FC15 for ; Thu, 20 Mar 2008 20:44:22 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m2KKiL2o035686; Thu, 20 Mar 2008 13:44:21 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m2KKiLwW035685; Thu, 20 Mar 2008 13:44:21 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Thu, 20 Mar 2008 13:44:21 -0700 From: Greg Lewis To: Oliver Fromme Message-ID: <20080320204421.GB35634@misty.eyesbeyond.com> References: <200803191755.44988.achill@matrix.gatewaynet.com> <200803191623.m2JGNKB5087460@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200803191623.m2JGNKB5087460@lurza.secnetix.de> User-Agent: Mutt/1.4.2.2i Cc: freebsd-java@FreeBSD.org Subject: Re: JDK ports questions X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 20:44:22 -0000 On Wed, Mar 19, 2008 at 05:23:20PM +0100, Oliver Fromme wrote: > Achilleas Mantzios wrote: > > Oliver Fromme wrote: > > > Achilleas Mantzios wrote: > > > > For FreeBSD 7.0, you will have to install misc/compat6x > > > > > > But it's only required for the bootstrap, right? > > > I.e. when I have built the JDK successfully, I don't > > > need compat6x anymore, I assume. > > > > No, the diablo-jdk1.5.0 executable depends on > > /usr/local/lib/compat/libpthread.so.2 which is in compat6x-i386 > > Wait a second ... I think we're talking about different > things here. > > I'm aware that diablo-jdk is a binary for FreeBSD 6, so > it clearly depends on compat6x when running on 7.0. > > However, when I compile my own native JDK on FreeBSD 7 > (either jdk15 or jdk16), I assume it will be a FreeBSD 7 > binary, so it only depends on FreeBSD 7 libraries, so it > does not need compat6x. > > As far as I know, the native JDK (e.g. jdk16) can be > bootstrapped using diablo-jdk, so I will need compat6x > for that. But as soon as the build is done, I do not > need the diablo-jdk anymore, hence I don't need copat6x > anymore either. > > Am I wrong? You are correct on all counts. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Thu Mar 20 20:47:29 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63B6E106566C for ; Thu, 20 Mar 2008 20:47:29 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 0250D8FC22 for ; Thu, 20 Mar 2008 20:47:28 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m2KKlDk8035700; Thu, 20 Mar 2008 13:47:13 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m2KKlCrf035699; Thu, 20 Mar 2008 13:47:12 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Thu, 20 Mar 2008 13:47:12 -0700 From: Greg Lewis To: Eirik ?verby Message-ID: <20080320204712.GC35634@misty.eyesbeyond.com> References: <200803191534.m2JFY1d6085430@lurza.secnetix.de> <8F5A2261-60E1-475D-9425-3CA8DE88226B@anduin.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8F5A2261-60E1-475D-9425-3CA8DE88226B@anduin.net> User-Agent: Mutt/1.4.2.2i Cc: Oliver Fromme , freebsd-java@freebsd.org Subject: Re: JDK ports questions X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 20:47:29 -0000 On Wed, Mar 19, 2008 at 05:06:21PM +0100, Eirik ?verby wrote: > On Mar 19, 2008, at 16:34, Oliver Fromme wrote: > >Achilleas Mantzios wrote: > >>Oliver Fromme wrote: > >>>What is the difference between ports/java/diablo-jdk15 > >>>and ports/java/jdk15? Which of them should be used? > >> > >>ports/java/diablo-jdk15 is the ports way of installing the > >>binary package, you can do the same with pkg_add -r. > > > >I see. So I basically get the same result as downloading > >the package from freebsdfoundation.org (which is not what > >I want). > > > >Thanks for answering! > > > >>>So far I have only used the Sun-blessed binary package > >>>from the FreeBSD foundation download page, so I don't > >>>know much about the various ports. However, those > >>>packages are now quite old, so I would like to build > >>>an up-to-date JDK for FreeBSD 7. Which port should > >>>be used for that? > >> > >>For FreeBSD 7.0, you will have to install misc/compat6x > > > >But it's only required for the bootstrap, right? > >I.e. when I have built the JDK successfully, I don't > >need compat6x anymore, I assume. > > > >Thinking about it ... When I compile my own JDK anyway, > >I could just as well go for the JDK 1.6 instead of 1.5. > >Are there any known problems with building JDK 1.6 on > >FreeBSD/amd64 7.0? Anything I should be aware of? > > Anecdotal evidence: We tried, for a short while, 1.6 on 6.3 for a very > busy tomcat driven site, noticed no ill effects but also no > immediately noticeable changes in system load, etc. > > > >The JDK is going to be used on several 8-core amd64 > >machines with 64 GB RAM to run tomcat-based CMS for a > >very busy web site. No need to say, stability is top- > >priority. > > On comparable hardware (less RAM, though), and tomcat driven apps, we > saw a *real* improvement going to 7.0/1.6 from 6.3/1.5. If the initial > numbers hold up, we can cancel the next two rounds of "throwing > hardware at the problem" as traffic goes up. > > Unfortunately, I have not yet repeated the 1.6 vs 1.5 experiment on 7. > And of course, different applications bring out different parts of > tomcat and the library stack, so your mileage may vary wildly. 1.6 is showing performance improvements over 1.5 here at work. Unfortunately thats on Linux rather than FreeBSD :(. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Thu Mar 20 23:17:26 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D10A8106566B for ; Thu, 20 Mar 2008 23:17:26 +0000 (UTC) (envelope-from kwl2363@yahoo.com) Received: from web50309.mail.re2.yahoo.com (web50309.mail.re2.yahoo.com [206.190.38.242]) by mx1.freebsd.org (Postfix) with SMTP id 56B5F8FC15 for ; Thu, 20 Mar 2008 23:17:26 +0000 (UTC) (envelope-from kwl2363@yahoo.com) Received: (qmail 44424 invoked by uid 60001); 20 Mar 2008 22:50:45 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=SnyCZstJDCcw9542eHxGemqOnf1zSgRkI3RWwdgYYvCVV7PO82X19BBY0TZl6wq55s8idoCJ22FO5Vm/3wacKPlzky38+0Gnqp0+5yNhf5CV5JjgLmIQj92a6bLG6Cyb5fzyt8G23bdaE/PGG12iTbtkNEMh+UC1eZc/YkWPZ4Q=; X-YMail-OSG: OwxtcuYVM1n5sEDGXjp21NzlZRQV4DdVDJpdMLBL Received: from [207.109.153.102] by web50309.mail.re2.yahoo.com via HTTP; Thu, 20 Mar 2008 15:50:45 PDT Date: Thu, 20 Mar 2008 15:50:45 -0700 (PDT) From: FreeBSD-Utah To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <509440.44407.qm@web50309.mail.re2.yahoo.com> Subject: /usr/ports/java/jai - Build Failure on FreeBSD 7 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 23:17:26 -0000 When we attempt to build the port: /usr/ports/java/jai which depends on: /usr/ports/www/linuxpluginwrapper we get the error: newpdc# make install ===> Installing for jai-1.1.2_2 ===> jai-1.1.2_2 depends on file: /usr/local/diablo-jdk1.5.0/bin/java - found ===> jai-1.1.2_2 depends on file: /usr/local/lib/pluginwrapper/jai.so - not found ===> Verifying install for /usr/local/lib/pluginwrapper/jai.so in /usr/ports/ www/linuxpluginwrapper ===> linuxpluginwrapper-20051113_8 doesn't support ELF symbol versioning, yet.. *** Error code 1 Stop in /usr/ports/www/linuxpluginwrapper. *** Error code 1 Stop in /usr/ports/java/jai. Is there a solution for this? We are looking to get our system up in production ASAP. A uname -a emits the following information: FreeBSD newpdc.dakcs.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 We are using the diablo-jdk-1.5.0.07.01_9 as our java implementation becuase this seems to be the *blessed* port. Any direction / solutions would be welcome! Regards, M. Goodell ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping From owner-freebsd-java@FreeBSD.ORG Fri Mar 21 10:15:07 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF6221065673; Fri, 21 Mar 2008 10:15:07 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 53BBF8FC16; Fri, 21 Mar 2008 10:14:59 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <47E38AA5.40901@FreeBSD.org> Date: Fri, 21 Mar 2008 11:15:01 +0100 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: cokane@FreeBSD.org References: <200803190638.m2J6cLKU059782@repoman.freebsd.org> <47E0C20E.5040002@freebsd.org> <47E17A5A.20909@gmail.com> <200803200841.04914.jhb@freebsd.org> <47E27204.9040607@FreeBSD.org> In-Reply-To: <47E27204.9040607@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: src-committers@freebsd.org, "Aryeh M. Friedman" , John Baldwin , cvs-src@freebsd.org, cvs-all@freebsd.org, David Xu , freebsd-java@freebsd.org Subject: Re: cvs commit: src/lib/libthr/thread thr_affinity.c X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2008 10:15:08 -0000 Coleman Kane wrote: >> The KSE syscalls are gone, you have to use libthr rather than libpthread. >> > FWIW, building Java from source has been working for me just fine. It'll be much faster too. Kris From owner-freebsd-java@FreeBSD.ORG Fri Mar 21 13:13:03 2008 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0E9E1065670 for ; Fri, 21 Mar 2008 13:13:03 +0000 (UTC) (envelope-from dino_vliet@yahoo.com) Received: from web51109.mail.re2.yahoo.com (web51109.mail.re2.yahoo.com [206.190.39.130]) by mx1.freebsd.org (Postfix) with SMTP id 7EA808FC1B for ; Fri, 21 Mar 2008 13:13:03 +0000 (UTC) (envelope-from dino_vliet@yahoo.com) Received: (qmail 18473 invoked by uid 60001); 21 Mar 2008 12:46:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=t9SfA28mPofApceHMAHzq7w9kzBSKrqHiG/uxJXunClsm1eG8S2UfRW08HRYD8LiDVVFJi0T8fpubQy/BqTAdwQ+uZCGhDpEzZpPN6uyU53YRCN7aZVzNv5CzeLnEKkxYvwd0e0s+Aj/IWqwq4uUCrX6BIoHdzUHU9PVFNF+aZk=; X-YMail-OSG: Z.kyMigVM1lyWFGve0G1mIUUdmIcyn4koXthG9c5 Received: from [78.27.38.46] by web51109.mail.re2.yahoo.com via HTTP; Fri, 21 Mar 2008 05:46:22 PDT Date: Fri, 21 Mar 2008 05:46:22 -0700 (PDT) From: Dino Vliet To: freebsd-questions@freebsd.org, glewis@FreeBSD.org, freebsd-java@FreeBSD.org MIME-Version: 1.0 Message-ID: <491592.15241.qm@web51109.mail.re2.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: java plugin for Firefox on AMD64 running FreeBSD 6.3 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2008 13:13:03 -0000 Hi folks, I'm lost at finding a solution for getting the java plugin to work in Firefox 2.11 on my AMD64 system running FreeBSD 6.3. I've upgraded my ports and the diablo-jdk version is: pkg_info | grep diablo diablo-jdk-1.5.0.07.01_9 Java Development Kit 1.5.0_07.01 The handbook said I needed the JRE so I installed that as well: pkg_info | grep diablo diablo-jdk-1.5.0.07.01_9 Java Development Kit 1.5.0_07.01 diablo-jre-1.5.0.07.01_9 Java Runtime Environment 1.5.0_07.01 But now I need to do this in order to see the java plugin activated when I press about:plugins: # ln -s /usr/local/diablo-jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so \ /usr/local/lib/browser_plugins/ But I don't have a plugin directory in the /usr/local/diablo-jre1.5.0 directory, so I won't have that file libjavaplugin_oji.so either. So what am I doing wrong? Thanks in advanced, Dino --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. From owner-freebsd-java@FreeBSD.ORG Fri Mar 21 15:51:43 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id F1C261065670; Fri, 21 Mar 2008 15:51:42 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-java@freebsd.org Date: Fri, 21 Mar 2008 11:51:29 -0400 User-Agent: KMail/1.6.2 References: <491592.15241.qm@web51109.mail.re2.yahoo.com> In-Reply-To: <491592.15241.qm@web51109.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200803211151.33269.jkim@FreeBSD.org> Cc: Dino Vliet , glewis@freebsd.org, freebsd-questions@freebsd.org Subject: Re: java plugin for Firefox on AMD64 running FreeBSD 6.3 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2008 15:51:43 -0000 On Friday 21 March 2008 08:46 am, Dino Vliet wrote: > Hi folks, > > I'm lost at finding a solution for getting the java plugin to work > in Firefox 2.11 on my AMD64 system running FreeBSD 6.3. > > I've upgraded my ports and the diablo-jdk version is: > pkg_info | grep diablo > diablo-jdk-1.5.0.07.01_9 Java Development Kit 1.5.0_07.01 > > The handbook said I needed the JRE so I installed that as well: > > pkg_info | grep diablo > diablo-jdk-1.5.0.07.01_9 Java Development Kit 1.5.0_07.01 > diablo-jre-1.5.0.07.01_9 Java Runtime Environment 1.5.0_07.01 > > But now I need to do this in order to see the java plugin activated > when I press about:plugins: > > # ln -s > /usr/local/diablo-jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so \ > /usr/local/lib/browser_plugins/ > > But I don't have a plugin directory in the > /usr/local/diablo-jre1.5.0 directory, so I won't have that file > libjavaplugin_oji.so either. diablo-jdk/-jre does not have Mozilla plugin for amd64. You have to build *JDK* from ports with plugin support, i.e., ports/java/jdk15 or ports/java/jdk16. Jung-uk Kim From owner-freebsd-java@FreeBSD.ORG Fri Mar 21 16:05:01 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEE3B106564A for ; Fri, 21 Mar 2008 16:05:01 +0000 (UTC) (envelope-from kwl2363@yahoo.com) Received: from web50309.mail.re2.yahoo.com (web50309.mail.re2.yahoo.com [206.190.38.242]) by mx1.freebsd.org (Postfix) with SMTP id 875578FC17 for ; Fri, 21 Mar 2008 16:05:01 +0000 (UTC) (envelope-from kwl2363@yahoo.com) Received: (qmail 84093 invoked by uid 60001); 21 Mar 2008 16:05:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=adcYu/eWZ2AlITMPhNdwRInyoV6c08T1bVxcTYvKb2NjoQBmfrrvIR7f2XbZY4wTscSOxgLhT+QBNsnSMHUK5d9VQMQJ7NVIqh3seAfdRHK6Z9Yy4/Qu0tg/daYtyt7QU04b55jbsnjoH4w6CN853AiKLBqcQ+l788JMyjv+bcw=; X-YMail-OSG: T5RwkUgVM1kzCJNowpvzMhunS6uvi4mm3sg2vTyy Received: from [207.109.153.102] by web50309.mail.re2.yahoo.com via HTTP; Fri, 21 Mar 2008 09:05:00 PDT Date: Fri, 21 Mar 2008 09:05:00 -0700 (PDT) From: FreeBSD-Utah To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <701919.78027.qm@web50309.mail.re2.yahoo.com> Subject: jai-1.1.2_2 Build Error & Help Request X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2008 16:05:02 -0000 I am trying to build /usr/ports/java/jai and keep getting this exception. I noticed in this thread there is a jai 1.1.3 that claims to build and run on FreeBSD 7. How would I attempt to install that port so I can get things running. I have done a CVSUP and it does not update the port files. Sorry for the duplicate post / whining but we are stuck on this point and cannot really move on. newpdc# make install ===> Installing for jai-1.1.2_2 ===> jai-1.1.2_2 depends on file: /usr/local/diablo-jdk1.5.0/bin/java - found ===> jai-1.1.2_2 depends on file: /usr/local/lib/pluginwrapper/jai.so - not fo und ===> Verifying install for /usr/local/lib/pluginwrapper/jai.so in /usr/ports/ www/linuxpluginwrapper ===> linuxpluginwrapper-20051113_8 doesn't support ELF symbol versioning, yet.. *** Error code 1 Stop in /usr/ports/www/linuxpluginwrapper. *** Error code 1 Stop in /usr/ports/java/jai. Thanks in advance! M Goodell ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From owner-freebsd-java@FreeBSD.ORG Fri Mar 21 18:48:21 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2287A1065694 for ; Fri, 21 Mar 2008 18:48:21 +0000 (UTC) (envelope-from loox@e-shell.net) Received: from sophia3.e-shell.net (sophia3.e-shell.net [64.246.46.12]) by mx1.freebsd.org (Postfix) with ESMTP id F06D78FC59 for ; Fri, 21 Mar 2008 18:48:20 +0000 (UTC) (envelope-from loox@e-shell.net) Received: from moonlight.e-shell.tk (unknown [189.139.193.210]) by sophia3.e-shell.net (Postfix) with ESMTP id C231D656827 for ; Fri, 21 Mar 2008 12:33:02 -0600 (CST) From: Axel Gonzalez To: freebsd-java@freebsd.org Date: Fri, 21 Mar 2008 12:33:00 -0600 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803211233.00999.loox@e-shell.net> Subject: diablo-jre/jdk core dumps on 7.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2008 18:48:21 -0000 This is a new installed 7.0, and tried to install diablo-jre and diablo-jdk. This what I got: java -version : works java helloworld : works applets (from konqueror) : core dump gui program (openproj) : core dump * The helloworld is a simple println() program Also found some -XX:+UseMembar option in the lists (similar problem), but it makes no difference, it still coredumps. Any help would be appretiated PD. please cc me, im not suscribed to the list $ java -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b01) Java HotSpot(TM) Server VM (build diablo-1.5.0_07-b01, mixed mode) $ uname -a FreeBSD moonlight 7.0-RELEASE FreeBSD 7.0-RELEASE #2: Sat Mar 15 19:42:26 CST 2008 toor@moonlight:/usr/obj/usr/src/sys/LXCORE2 i386 A partial trace: .... .... Reading symbols from /usr/local/lib/libXdmcp.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libXdmcp.so.6 Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x280bb55b in pthread_testcancel () from /usr/local/lib/compat/libpthread.so.2 [New Thread 0x818ca00 (sleeping)] [New Thread 0x818c600 (sleeping)] [New Thread 0x818c200 (sleeping)] [New Thread 0x8171e00 (sleeping)] [New Thread 0x8171a00 (sleeping)] [New Thread 0x8171600 (sleeping)] [New Thread 0x8171200 (sleeping)] [New Thread 0x8067e00 (sleeping)] [New Thread 0x8067a00 (sleeping)] [New Thread 0x8067800 (LWP 100083)] [New Thread 0x805c000 (runnable)] [New LWP 100229] (gdb) bt #0 0x280bb55b in pthread_testcancel () from /usr/local/lib/compat/libpthread.so.2 #1 0x280b3eec in pthread_mutexattr_init () from /usr/local/lib/compat/libpthread.so.2 #2 0x28087450 in ?? () -- Fri Mar 21 12:20:01 2008 GMT **** ********** ************** **************** **************** ************** ********** **** 14. From owner-freebsd-java@FreeBSD.ORG Fri Mar 21 18:58:40 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D35451065677 for ; Fri, 21 Mar 2008 18:58:40 +0000 (UTC) (envelope-from dino_vliet@yahoo.com) Received: from web51111.mail.re2.yahoo.com (web51111.mail.re2.yahoo.com [206.190.39.88]) by mx1.freebsd.org (Postfix) with SMTP id 8AEA18FC18 for ; Fri, 21 Mar 2008 18:58:40 +0000 (UTC) (envelope-from dino_vliet@yahoo.com) Received: (qmail 18400 invoked by uid 60001); 21 Mar 2008 18:58:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=23VmqcXOsd/Ge9w7+hSbjDeaGSmf6auLyr2CYjNvkyZcM2nm4CacazvgVVWnh0SOcgdBXbPr8W4ksQDzgf5LwuAR36MX69V+cKs2RFG2fsxHQ4HCcuywgh0u2nC9iVzKroTtg4j/5QvgiihYD5KUWjJMffCQV/dFiRGloNUGQpc=; X-YMail-OSG: .URvvqwVM1nYE0FeTm7SEV8LCkpEtj.96pAQ4BSusw.ckPtgWGVZoOqk9eD6hO6PZJAkJIhu_Z7ZSZ_C4qrpqsMDFilrpAVi2EVhM7d1LK6Cag-- Received: from [78.27.38.46] by web51111.mail.re2.yahoo.com via HTTP; Fri, 21 Mar 2008 11:58:39 PDT Date: Fri, 21 Mar 2008 11:58:39 -0700 (PDT) From: Dino Vliet To: Jung-uk Kim , freebsd-java@freebsd.org In-Reply-To: <200803211151.33269.jkim@FreeBSD.org> MIME-Version: 1.0 Message-ID: <807326.18380.qm@web51111.mail.re2.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Dino Vliet , glewis@freebsd.org, freebsd-questions@freebsd.org Subject: Re: java plugin for Firefox on AMD64 running FreeBSD 6.3 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2008 18:58:41 -0000 Jung-uk Kim wrote: On Friday 21 March 2008 08:46 am, Dino Vliet wrote: > Hi folks, > > I'm lost at finding a solution for getting the java plugin to work > in Firefox 2.11 on my AMD64 system running FreeBSD 6.3. > > I've upgraded my ports and the diablo-jdk version is: > pkg_info | grep diablo > diablo-jdk-1.5.0.07.01_9 Java Development Kit 1.5.0_07.01 > > The handbook said I needed the JRE so I installed that as well: > > pkg_info | grep diablo > diablo-jdk-1.5.0.07.01_9 Java Development Kit 1.5.0_07.01 > diablo-jre-1.5.0.07.01_9 Java Runtime Environment 1.5.0_07.01 > > But now I need to do this in order to see the java plugin activated > when I press about:plugins: > > # ln -s > /usr/local/diablo-jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so \ > /usr/local/lib/browser_plugins/ > > But I don't have a plugin directory in the > /usr/local/diablo-jre1.5.0 directory, so I won't have that file > libjavaplugin_oji.so either. diablo-jdk/-jre does not have Mozilla plugin for amd64. You have to build *JDK* from ports with plugin support, i.e., ports/java/jdk15 or ports/java/jdk16. Jung-uk Kim Works Perfect:-) I've installed jdk15 and the plugin worked immediately. Thanks a lot, because this means I can continue using my FreeBSD desktop iso switching to a linux pc whenever I needed to work at home. Ciao Dino --------------------------------- Never miss a thing. Make Yahoo your homepage.