PDA

View Full Version : [Solved] failed to build jdk16 in jail


graudeejs
August 16th, 2009, 12:22
6.0 GAMMADIR=/usr/ports/java/jdk16/work/hotspot MAKE_VERBOSE=y product
gmake[3]: Entering directory `/usr/ports/java/jdk16/work/control/build/bsd-i586/hotspot/outputdir'
gmake -f /usr/ports/java/jdk16/work/hotspot/build/bsd/Makefile checks
gmake[4]: Entering directory `/usr/ports/java/jdk16/work/control/build/bsd-i586/hotspot/outputdir'
/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/i386/libzip.so
*** An XSLT processor (J2SE 1.4.x or newer) is required to bootstrap this build
gmake[4]: *** [check_j2se_version] Error 1
gmake[4]: Leaving directory `/usr/ports/java/jdk16/work/control/build/bsd-i586/hotspot/outputdir'
gmake[3]: *** [bsd_i486_compiler2/debug] Error 2
gmake[3]: Leaving directory `/usr/ports/java/jdk16/work/control/build/bsd-i586/hotspot/outputdir'
gmake[2]: *** [generic_build2] Error 2
gmake[2]: Leaving directory `/usr/ports/java/jdk16/work/hotspot/make'
gmake[1]: *** [product] Error 2
gmake[1]: Leaving directory `/usr/ports/java/jdk16/work/hotspot/make'
gmake: *** [hotspot-build] Error 2
*** Error code 2

Stop in /usr/ports/java/jdk16.
*** Error code 1

Stop in /usr/ports/java/jdk16.


I have ccache, but I disabled it.
I'm compiling in jail, any ideas, why it can't load libary?

Few days ago I had no problem


EDIT:
It also seam to compile outside jail.... weird...

graudeejs
August 20th, 2009, 12:38
OK, just tried it again, but this time, not in jail....., instead I tried in on my shiny new system
I still get same error

Thinking laud:
perhaps it's related to libtool22?

ale
August 20th, 2009, 13:25
Is this on 8-CURRENT?
If so, can you try adding to /etc/libmap.conf
[/usr/local/diablo-jdk1.6.0/]
libz.so.4 libz.so.5

graudeejs
August 20th, 2009, 13:52
ye, i'm using 8.

seams it worked, at least id didn't stop compiling yet

graudeejs
August 20th, 2009, 14:00
ale, where did you get info on this?

ale
August 20th, 2009, 16:19
I can't remember exactly, but I read that solution somewhere.
It was just to bootstrap the build of java/jdk16.
This is because diablo was built with libraries from 7 and libz.so version has been bumped on 8.
Try in the java or in the current mailing lists.

ale
September 11th, 2009, 08:37
Update:
http://lists.freebsd.org/pipermail/cvs-ports/2009-September/179849.html

sashikumar
March 22nd, 2010, 17:14
Adding the following lines in /etc/libmap.conf worked for me

[/usr/local/diablo/jre/lib/amd64]
libzip.so

Thanks,Sashi.