[Pljava-dev] Bug#390661: pljava on Debian AMD64: undefined symbol: JNI_CreateJavaVM during installation

From: christophe(dot)roux at acoeur(dot)fr (Christophe Roux)
To:
Subject: [Pljava-dev] Bug#390661: pljava on Debian AMD64: undefined symbol: JNI_CreateJavaVM during installation
Date: 2007-01-20 15:17:33
Message-ID: loom.20070120T161007-100@post.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Markus Schaber <schabi <at> logix-tt.com> writes:

>
> Hi, Matthias,
>
> Matthias Klose wrote:
>
> >> So it should be reassigned to pljava.
>
> Somehow, the but reassignment did not work. Matthias, can you try it?
>
> >> However, I read the Debian Changes of libgcj, and did not find any clear
> >> mentioning of why and how that was changed.
> >
> > these are changes pulled from gcc-4.2/classpath-0.92. JNI_CreateJavaVM
> > can be found in libjvm.
>
> So it seems we need to change the linker flags in the Makefile, right?
>
> > Note that it's not necessary anymore to include the precompiled jar
> > file in the library.
>
> Personally, I see it as an advantage to have the precompiled jar
> included in the library, that eases deployment.
>
> > Building native code using dh_nativejava and/or
> > aot-compile should be used instead.
>
> dh_nativejava would be ugly for upstream, it will only fix the problem
> for deban users, I presume?
>
> > Documentation pending ...
>
> Any progress here?
>
> Thanks,
> Markus

I read the description of the dh_nativejar command:
it can compile jar to native binary.
But what about pljava.so, using C for JNI code?
Could you tell me precisely how to modify the makefile for pljava.so
in order to
solve this problem.
I can add the problem is not specific to amd64 but occurs also
on Debian Etch i386:
I have the same problem with the following configuration:
uname -a
Linux acoeur-e 2.6.18-3-k7 #1 SMP Mon Dec 4 17:23:11 UTC 2006 i686 GNU/Linux

regards,
Christophe

In response to

Browse pljava-dev by date

  From Date Subject
Next Message chris 2007-01-22 10:14:39 [Pljava-dev] JNI_CreateJVM symbole not found in pljava.so when install.sql launched
Previous Message Ryan Holmes 2007-01-18 03:39:35 [Pljava-dev] Portal object leak