This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: _JNI_CreateJavaVM missing


Thanks, Andrew.

I am indeed on Darwin, so this may be the reason.

I found these symbols to be defined in jni-libjvm.o:

nm jni-libjvm.o | grep _JNI_CreateJavaVM
000000b4 T _JNI_CreateJavaVM
000001d8 S _JNI_CreateJavaVM.eh

nm jni-libjvm.o | grep _JNI_GetDefaultJavaVMInitArgs
00000000 T _JNI_GetDefaultJavaVMInitArgs
000001ac S _JNI_GetDefaultJavaVMInitArgs.eh

Jürg

Am 08.08.2006 um 14:56 schrieb Andrew Haley:

Juerg Lehni writes:
I compiled the lastest GCJ from SVN head today, and when linking to
my application that uses JNI invocation and worked well before, I
recieved a "undefined symbols" error about _JNI_CreateJavaVM and
_JNI_GetDefaultJavaVMInitArgs.

And indeed, these symbols seem not to be exported anymore, as this
does not show any results:

nm /usr/local/lib/libgcj.7.0.0.dylib | grep _JNI_CreateJavaVM

Is this a mistake on my side, or did something change here in the
meantime? I previously used gcc 4.1.1.

The only modification I made was to apply the patch I posted earlier
on this list:

http://gcc.gnu.org/ml/java/2006-06/msg00143.html

There have been some recent weirdnesses to do with Darwin symbols.


Forwarding to gcc for comment from Darwin maintainers.

Andrew.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]