"Linking vm error" when building java
Dave Webster
dwebman at telus.net
Tue Sep 6 00:33:10 PDT 2005
I get the following error when running gmake to install JDK to FreeBSD.
Linking vm...
/usr/bin/ld: cannot find -lkse
gmake[3]: *** [libjvm.so] Error 1
gmake[3]: Leaving directory
`/usr/java/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
gmake[2]: *** [the_vm] Error 2
gmake[2]: Leaving directory
`/usr/java/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
gmake[1]: *** [product] Error 2
gmake[1]: Leaving directory
`/usr/java/control/build/bsd-i586/hotspot-i586/tmp'
gmake: *** [product] Error 2
I'm using FreeBSD 5.4 i386. I've followed the instructions from
www.eyebeyond.com as given in the "BUILD" file from the
bsd-jdk14-patches-7.tar download from their site.
I've linux compatability and have ported x11/linux-XFree86-libs,
x11-toolkits/OpenMotif 2.2.3_2 and java/javavmwrapper.
When trying to port java/linux-sun-jdk14 I was directed to the Sun site
and downloaded and tarred j2sdk-1_4_2_08-linux-i586.bin
to /usr/ports/distfiles and ran make again on /usr/ports/java/jdk14.
The instructions from BUILD were followed as in:
Here is a typical set up for your build environment:
unsetenv LANG
unsetenv JAVA_HOME
unsetenv CLASSPATH
setenv ALT_MOTIF_DIR /usr/X11R6
setenv DEV_ONLY YES
In additional, with the recommended ports, one would use
setenv ALT_BOOTDIR /usr/local/linux-sun-jdk1.4.2
although this latter setenv statement was written as:
setenv ALT_BOOTDIR /usr/ports/disfiles/j2sdk1.4.2_08
because the path given in the BUILD documentation didn't have the
linux-sun-jdk1.4.2 directory so this was my best guess.
I put the files:
bsd-jdk14-patches-7.tar
j2sdk-1_4_2-bin-scsl.zip
j2sdk-1_4_2-src-scsl.zip
in /usr/java/
unzipped and tarred them. I've mounted linprocfs using:
/sbin/mount -t linprocfs linprocfs /compat/linux/proc
with an entry in my /etc/fstab file for good measure.
I've run:
patch -p0 < jdk14.patches
in /usr/java/
and then
cd control/make and ran
gmake
Everything was going along great until the error message.
Does anyone have any suggestions?
Dave
More information about the freebsd-java
mailing list