This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: __Z12JvNumMethodsPN4java4lang5ClassE undefined
- From: Andrew Haley <aph at redhat dot com>
- To: Juerg Lehni <juerg at scratchdisk dot com>
- Cc: java at gcc dot gnu dot org
- Date: Wed, 9 Aug 2006 15:14:09 +0100
- Subject: Re: __Z12JvNumMethodsPN4java4lang5ClassE undefined
- References: <880BEFF8-0256-4445-974D-17A78372859F@scratchdisk.com>
Juerg Lehni writes:
> After solving the problem with libjvm.dylib, I am facing another new
> problem with the CVS build that did not happen before.
>
> my app crashes and reports this in the console.log:
>
> error code 4, error number 0 (Symbol not found:
> __Z12JvNumMethodsPN4java4lang5ClassE
> Referenced from: /usr/local/lib/libgcj.7.dylib
> Expected in: flat namespace
> )
>
> And indeed, this symbol is undefined in libgcj:
>
> nm /usr/local/lib/libgcj.7.dylib | grep
> __Z12JvNumMethodsPN4java4lang5ClassE
> U __Z12JvNumMethodsPN4java4lang5ClassE
>
> Any ideas what could be the cause of this?
JvNumMethods(java::lang::Class*) is an extern inline function in
gcj/method.h. It's used in jni.cc and natClass.cc. Have a look to
see which file the undefined extern reference occurs in, and we can
debug it from there.
Andrew.