[Pljava-dev] JNI_CreateJavaVM

From: schabi at logix-tt(dot)com (Markus Schaber)
To:
Subject: [Pljava-dev] JNI_CreateJavaVM
Date: 2006-09-25 20:16:17
Message-ID: 45183911.2020205@logix-tt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

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: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20060925/ab1ef774/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20060925/ab1ef774/attachment-0001.bin>

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Thomas Hallgren 2006-09-25 20:47:09 [Pljava-dev] UDT send and receive
Previous Message Markus Schaber 2006-09-25 19:51:31 [Pljava-dev] UDT send and receive