From owner-freebsd-java@FreeBSD.ORG Wed Aug 12 08:22:58 2009 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 EE9F91065689 for ; Wed, 12 Aug 2009 08:22:58 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from hamlet.setfilepointer.com (hamlet.SetFilePointer.com [63.224.10.2]) by mx1.freebsd.org (Postfix) with SMTP id 99C448FC16 for ; Wed, 12 Aug 2009 08:22:58 +0000 (UTC) Received: (qmail 23667 invoked from network); 12 Aug 2009 02:56:16 -0500 Received: from keira.kiwi-computer.com (HELO kiwi-computer.com) (63.224.10.3) by hamlet.setfilepointer.com with SMTP; 12 Aug 2009 02:56:16 -0500 Received: (qmail 72672 invoked by uid 2001); 12 Aug 2009 07:56:16 -0000 Date: Wed, 12 Aug 2009 02:56:16 -0500 From: "Rick C. Petty" To: Daichi GOTO Message-ID: <20090812075616.GA72583@keira.kiwi-computer.com> References: <4A82162C.8040202@ongs.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A82162C.8040202@ongs.co.jp> User-Agent: Mutt/1.4.2.3i Cc: freebsd-java@freebsd.org Subject: Re: JDK16 on FreeBSD 8-BETA2 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd2008@kiwi-computer.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Aug 2009 08:22:59 -0000 On Wed, Aug 12, 2009 at 10:09:00AM +0900, Daichi GOTO wrote: > I have tried to test 8-BETA2 (after shared library > version dumped) and JDK16. From a conclusion, > I cannot build or use JDK16. > Diablo JDK16 couldn't build JDK16/OpenJDK16. > Linux Sun JDK is in the same situation. > Is there anyone who uses JDK16 on BETA2? I've been noticing the same thing. I installed a fresh diablo-jdk16 port and the JVM won't start: # env JAVA_VENDOR=freebsd java -version Error occurred during initialization of VM Unable to load ZIP library: /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libzip.so ~~~ The same thing happens when trying to build java/jdk16, because it needs a working JVM to boostrap: ... /usr/local/diablo-jdk1.6.0/bin/javap javax.xml.transform.TransformerFactory > /dev/null 2>&1; \ if [ $? -ne 0 ]; then \ /usr/local/diablo-jdk1.6.0/bin/java -version; \ echo "*** An XSLT processor (J2SE 1.4.x or newer) is required" \ "to bootstrap this build" 1>&2; \ exit 1; \ fi Error occurred during initialization of VM Unable to load ZIP library: /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libzip.so *** An XSLT processor (J2SE 1.4.x or newer) is required to bootstrap this build gmake[4]: *** [check_j2se_version] Error 1 ... # file /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libzip.so /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libzip.so: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, not stripped # uname -a FreeBSD myhostname 8.0-BETA2 FreeBSD 8.0-BETA2 #0 r196086: Sat Aug 8 17:22:29 CDT 2009 root@myhostname:/usr/obj/usr/src/sys/GENERIC amd64 ~~~ Is this a result of all the shared library versions being bumped and shifting APIs? I am thinking of hacking something together as a replacement bootstrap. It will involve wrapping the javavmwrapper script to call into a pre-8.0 chroot (with a working jdk) and a large number of symlinks. Does anyone have any better ideas? Are the folks who made diablo-caffe working on this problem? -- Rick C. Petty