Hello,
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 :
################################################### ## Configuring module: Java ## Installation dir:
checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... (cached) o checking whether we are using the GNU C compiler... (cached) yes checking whether /home/kiwi/xenoclient/pike-7.5/kiwi.isdnet.net/buildtmp/Pike7.5- 20030904-122007/build/freebsd-4.8-release-p3-i386/smartlink gcc accepts -g... (cached) yes checking if we are using TCC... (cached) no checking how to run the C preprocessor... gcc -E checking which operating system we are using... freebsd checking which architecture we are using... i386 checking what kind of threads to use... native_threads checking for working ls... /bin/ls checking for JAVA_HOME... /usr/local/jdk1.3.1/jre checking for Java libraries... /usr/local/jdk1.3.1/jre/lib/i386/classic /usr/local/jdk1.3.1/jre/lib/i386 Adding /usr/local/jdk1.3.1/jre/lib/i386/classic /usr/local/jdk1.3.1/jre/lib/i386 to the library search path. checking for the Java include directory... /usr/local/jdk1.3.1/jre/../include Adding /usr/local/jdk1.3.1/jre/../include to the include search path. Adding /usr/local/jdk1.3.1/jre/../include/freebsd to the include search path. checking for JavaVM (MacOS X)... no checking for jni.h... yes checking for winbase.h... (cached) no checking for setjmp.h... (cached) yes checking for sysOpen in -lhpi... no checking for JNI_CreateJavaVM in -ljvm... no checking for known machine language... x86 checking whether make sets ${MAKE}... (cached) yes checking for the Pike base directory... /home/kiwi/xenoclient/pike-7.5/kiwi.isdnet.net/buildtmp/Pike7.5- 20030904-122007/src updating cache ../.././config.cache configure: creating ./config.status config.status: creating make_variables config.status: creating Makefile config.status: creating module.pmod.in config.status: creating config.h configure: configuring in MIME configure: running /usr/local/bin/bash '/home/kiwi/xenoclient/pike-7.5/kiwi.isdnet.net/buildtmp/Pike7.5- 20030904-122007/src/modules/MIME/configure' --cache-file=../.././config.cache --srcdir=/home/kiwi/xenoclient/pike-7.5/kiwi.isdnet.net/buildtmp/ Pike7.5-20030904-122007/src/modules/MIME configure: loading cache ../.././config.cache
But ... checking for JNI_CreateJavaVM in -ljvm... no
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/loc al/jdk1.3.1/jre/../include -I/usr/local/include -I/usr/X11R6/include -L/usr/loc al/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 -lc rypt >&5 /usr/local/jdk1.3.1/jre/lib/i386/classic/libjvm.so: undefined reference to `setFPMode' configure:2474: $? = 1 configure: failed program was: #line 2459 "configure" #include "confdefs.h" #include <jni.h> int main () { JNI_CreateJavaVM((JavaVM**)0,(void**)0,(void*)0); ; return 0; } configure:2500: result: no
Now what it "sefFTPMode" and where does this thing comming from ?
/Xavier