__Z12JvNumMethodsPN4java4lang5ClassE undefined

Andrew Haley aph@redhat.com
Wed Aug 9 14:36:00 GMT 2006


Mark Wielaard writes:
 > 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
Ooops.
Juerg: svn up!
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /