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: __Z12JvNumMethodsPN4java4lang5ClassE undefined


On Wed, 2006-08-09 at 15:14 +0100, Andrew Haley wrote:
> 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.

And it is now used in jvmti.cc. There was a very brief period last week
were we had a version of jvmti.cc that was missing the #include
<gcj/method.h>.
http://gcc.gnu.org/ml/java-patches/2006-q3/msg00276.html

Cheers,

Mark


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