Unresolved Symbol In Ns_i386.so
Mravouk
Join Date: 2003-06-13 Member: 17333Members
<div class="IPBDescription">Well, some unresolved symbol ;-)</div> I've got this problem:
LoadLibrary failed on ./ns/dlls/ns_i386.so: ./ns/dlls/ns_i386.so: undefined symbol: __vt_8iostream.3ios
Host_Error: Couldn't get DLL API from ./ns/dlls/ns_i386.so!
FATAL ERROR (shutting down): Host_Error: Couldn't get DLL API from ./ns/dlls/ns_i386.so!
My configuration:
============
Libraries:
ldd ns_i386.so
libm.so.6 => /lib/libm.so.6 (0x403c6000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x403eb000)
libc.so.6 => /lib/libc.so.6 (0x4049f000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x405c4000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
GCC:
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/specs
Configured with: ../gcc-3.2.2/configure --prefix=/usr --enable-shared --enable-languages=c,c++ --enable-threads=posix --with-slibdir=/lib --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.2.2
Thanks for reply
LoadLibrary failed on ./ns/dlls/ns_i386.so: ./ns/dlls/ns_i386.so: undefined symbol: __vt_8iostream.3ios
Host_Error: Couldn't get DLL API from ./ns/dlls/ns_i386.so!
FATAL ERROR (shutting down): Host_Error: Couldn't get DLL API from ./ns/dlls/ns_i386.so!
My configuration:
============
Libraries:
ldd ns_i386.so
libm.so.6 => /lib/libm.so.6 (0x403c6000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x403eb000)
libc.so.6 => /lib/libc.so.6 (0x4049f000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x405c4000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
GCC:
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/specs
Configured with: ../gcc-3.2.2/configure --prefix=/usr --enable-shared --enable-languages=c,c++ --enable-threads=posix --with-slibdir=/lib --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.2.2
Thanks for reply
Comments
Meaning RH9 libs do not have the symbol __vt_8iostream.3ios in the libs. Use a diff distrobution or make a wild attempt to update your libs.
your glibc libraries.
This is now my configure for glibc. Unfortunately, it didn't work. I couldn't grep "__vt_8iostream" in the source code neither <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->
The truth is that I first compiled glibc and then gcc, both with "--enable-__vt_8iostream".
If __vt_8iostream is only a symbol which is not supposed to be explicitly included in the source code of gcc then it might be useful to try to compile glibc with this new gcc which was compiled with --enable-__vt_8iostream.
I figured out that this could be similiar to:
--enable-__cxa_atexit (This option will result in C++ shared libraries and C++ programs that are interoperable with other Linux distributions)
but __cxa_atexit _is_ included in the source code of gcc.
Unfortunately, unknown --enable options are not taken as error.
I can support both config logs and binaries of either glibc and gcc.
Sorry, my problem was that I didn't have the libstdc++-libc6.1-1.so.2 library. Now I try to convince glibc ./configure to make it ;-)
<!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->(((((