Unresolved Symbol In Ns_i386.so

MravoukMravouk 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

Comments

  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->LoadLibrary failed on ./ns/dlls/ns_i386.so: ./ns/dlls/ns_i386.so: undefined symbol: __vt_8iostream.3ios<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    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.
  • MravoukMravouk Join Date: 2003-06-13 Member: 17333Members
    I don't have RH, I have LFS. What library does have this symbol? What library do I need?
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    when you compile add --enable-__vt_8iostream
  • MravoukMravouk Join Date: 2003-06-13 Member: 17333Members
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--Mravouk+Jun 15 2003, 02:14 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Mravouk @ Jun 15 2003, 02:14 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> compile what? <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    your glibc libraries.
  • MravoukMravouk Join Date: 2003-06-13 Member: 17333Members
    $ ../glibc-2.3.2/configure --prefix=/usr --disable-profile --enable-add-ons --libexecdir=/usr/bin --enable-__vt_8iostream

    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-->
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    hrm, well then....this will require more investigation then....
  • MravoukMravouk Join Date: 2003-06-13 Member: 17333Members
    I don't exactly know how these --enable-__ swithes work and whether it is necessary to be somehow included in the source code of either glibc or gcc or both.

    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.
  • MravoukMravouk Join Date: 2003-06-13 Member: 17333Members
    :-)

    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 ;-)
  • MravoukMravouk Join Date: 2003-06-13 Member: 17333Members
    edited June 2003
    Well, I think that those libstdc++-v2 libraries are deprecated. Those were only in old gcc2. All functions possible needed should be available in standard gcc3 libraries. For me, combining old gcc-2 libstdc++- libraries is braindead. I now use binary of libstdc++- from some distribution but I suggest you to either post source code so that anybody could compile it for his needs (well, ok, this isn't the right choice ;-) or compile your binaries with gcc3 so that we (who have _only_ new gcc) could use it.
  • MravoukMravouk Join Date: 2003-06-13 Member: 17333Members
    No, problem is not solved because when I installed v1.04 the unresolved symbols is back on stage.
    <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->(((((
Sign In or Register to comment.