In the last episode (Sep 04), Xavier Beaudouin said:
I am trying to make Java support under FreeBSD (mostly for some .jsp and some caudiumish things).
When I trying to search for java, the autoconf file does that :
[snip]
But ... checking for JNI_CreateJavaVM in -ljvm... no
Your real problem is one line above. autoconf could not find libhpi (which is what provides setFPMode).
Is the most interresting part, config.log says :
configure:2450: checking for JNI_CreateJavaVM in -ljvm configure:2471: /home/kiwi/xenoclient/pike-7.5/kiwi.isdnet.net/buildtmp/Pike7.5-20030904-122007/build/freebsd-4.8-release-p3-i386/smartlink gcc -o conftest -g -I/usr/local/include/pth -I/usr/local/jdk1.3.1/jre/../include/freebsd -I/usr/local/jdk1.3.1/jre/../include -I/usr/local/include -I/usr/X11R6/include -L/usr/local/jdk1.3.1/jre/lib/i386 -R/usr/local/jdk1.3.1/jre/lib/i386 -L/usr/local/jdk1.3.1/jre/lib/i386/classic -R/usr/local/jdk1.3.1/jre/lib/i386/classic -g -O2 -pipe -I/usr/local/include/pth -L/usr/local/lib/pth conftest.c -ljvm -lm -lpthread -lcrypt >&5 /usr/local/jdk1.3.1/jre/lib/i386/classic/libjvm.so: undefined reference to `setFPMode'
Now what it "sefFTPMode" and where does this thing comming from ?
You need to set your LD_LIBRARY_PATH to point to the correct threads library. The java_wrapper scripts installed with the JDK usually handle all this behind the scenes. For 1.3.1 your only choice is green threads. With 1.4.1 your only choice is native threads.
export LD_LIBRARY_PATH=/usr/local/jdk1.3.1/jre/lib/i386/green_threads${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
This is all guessing; I have not built a pike Java module myself.