agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] JNI_CreateJavaVM
Date: Mon, 25 Sep 2006 22:16:17 +0200
Message-ID: <45183911.2020205@logix-tt.com> (raw)
In-Reply-To: <45182933.6020507@lcrcomputer.net>
References: <450EA703.5080106@lcrcomputer.net>
<450EC3EC.1030409@tada.se>
<450EFD9E.6080103@lcrcomputer.net>
<45182933.6020507@lcrcomputer.net>
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;
view thread (14+ messages) latest in thread
Message-ID: <45183911.2020205@logix-tt.com>
Permalink: ../45183911.2020205@logix-tt.com/
Also on: postgresql.org/message-id/45183911.2020205@logix-tt.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pljava-dev@postgresql.org
Subject: Re: [Pljava-dev] JNI_CreateJavaVM
In-Reply-To: <45183911.2020205@logix-tt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox