libgcj.so: undefined reference to `ip'

Xingxing Pan forandom@gmail.com
Thu Dec 16 03:09:00 GMT 2010


Hi, guys.

I'm compiling gcc-4.4.2 on arm similar platform and getting a fail
during the link stage.
Using command `nm' to read symbols in libgcj.so, i find the symbol
`ip' is undefined.
I grep the libjava directory, but cannot find the definition for `ip'.
Could someone tell me where its definition and use which library to
resolve the reference in libgcj.so?

libtool: link: warning:
`/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/libstdc++.la'
seems to be moved
libtool: link: warning:
`/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/libstdc++.la'
seems to be moved
libtool: link: warning:
`/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/libstdc++.la'
seems to be moved
libtool: link: warning:
`/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/libstdc++.la'
seems to be moved
libtool: link:  unicore32-linux-c++  -shared -nostdlib
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/crti.o
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/crtbeginS.o
 .libs/gij.o   -Wl,-rpath
-Wl,/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/.libs
-Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs
-Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib
-Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/.libs
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs/.libs
./.libs/libgcj.so
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs
-L/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib
-lpthread -lrt -ldl
/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs/libstdc++.so
-L/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2
/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib/libstdc++.so
-lm -lc -lgcc_s
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/crtendS.o
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/crtn.o
 -Wl,-Bsymbolic-functions   -Wl,-soname -Wl,libgij.so.10 -o
.libs/libgij.so.10.0.0
libtool: link:  unicore32-linux-c++  -shared -nostdlib
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/crti.o
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/crtbeginS.o
 .libs/jni-libjvm.o   -Wl,-rpath
-Wl,/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/.libs
-Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs
-Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib
-Wl,-rpath -Wl,/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/.libs
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs/.libs
./.libs/libgcj.so
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava
-L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs
-L/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib
-lpthread -lrt -ldl
/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/../libstdc++-v3/src/.libs/libstdc++.so
-L/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2
/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib/libstdc++.so
-lm -lc -lgcc_s
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/crtendS.o
/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/crtn.o
 -Wl,-Bsymbolic-functions   -Wl,-soname -Wl,libjvm.so -o
.libs/libjvm.so
./.libs/libgcj.so: undefined reference to `ip'
collect2: ld returned 1 exit status
make[3]: *** [gcj-dbtool] Error 1
make[3]: *** Waiting for unfinished jobs....
./.libs/libgcj.so: undefined reference to `ip'
collect2: ld returned 1 exit status
make[3]: *** [jv-convert] Error 1

Thanks,
Forandom



More information about the Java mailing list