From: schabi at logix-tt.com (Markus Schaber) Date: Mon, 25 Sep 2006 22:16:17 +0200 Subject: [Pljava-dev] JNI_CreateJavaVM In-Reply-To: <45182933.6020507@lcrcomputer.net> References: <450EA703.5080106@lcrcomputer.net> <450EC3EC.1030409@tada.se> <450EFD9E.6080103@lcrcomputer.net> <45182933.6020507@lcrcomputer.net> Message-ID: <45183911.2020205@logix-tt.com> Hi, Lyle, Lyle Giese wrote: > > Below is what I think are the revelent parts of the enviroment and > ld.so.conf for compiling PL/Java as per the Wiki. This is as close as I > can come unless I can find out what specifically the compile process is > looking for that it obviously cann't find to make it not include > JNI_CreateJavaVM during the make process. I just tried my first non-GCJ build of pljava, to cross-check your problem, and had the same. Interestingly, the pljava.so does not reference any libjvm or others: [~/workspace/pljava] -> ldd build/objs/pljava.so 2006-09-25 21:55:18 linux-gate.so.1 => (0xffffe000) libc.so.6 => /lib/tls/libc.so.6 (0xb7e07000) /lib/ld-linux.so.2 (0x80000000) I tried to investigate, and the cc call that tries to link all together has some interesting output: cc -g [... snipped] -L/usr/lib -L. -L"" -ljvm -o pljava.so I looked into the makefiles, and it seems that the code that tries to compute $(JVM_LIB) fails, producing an empty string. My platform is Debian GNU linux/i386, I installed SUN j2sdk-1.5.0_06 via java-package, JAVA_HOME=/usr/lib/j2sdk1.5-sun "make -p" spits out: JRE_LIB := /usr/lib/j2sdk1.5-sun/jre/lib/i486 However, /usr/lib/j2sdk1.5-sun/jre/lib/ does not contain an "i486" directory, only "i386" is present. The attached patch fixes the makefile to recognize "i486" by using "i386" as java_cpu, just like it handles "i686". The resulting pljava.so references libjvm.so and a bunch of others. Lyle: Could you please test whether that fixes your problem? If yes, TI suggest that Thomas reviews the patch and applies it eventually. HTH, Markus Thanks, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in Europe! www.ffii.org www.nosoftwarepatents.org -------------- next part -------------- A non-text attachment was scrubbed... Name: makefile.patch Type: text/x-patch Size: 587 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP digital signature URL: