This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Re: Strange error with the most recent libstdc++ snapshot


>It seems like you're not using the -L command line switch to tell the
>compiler where to find the newly installed library...
>
>| /usr/lib/gcc-lib/i386-redhat-linux/2.96/libstdc++.so: undefined reference 
>to
>| '_IO_no_init'
>| /usr/lib/gcc-lib/i386-redhat-linux/2.96/libstdc++.so: undefined reference 
>to
>| '_IO_file_doallocate'
>| I have checked in /usr/lib and libstdc++.so points to libstdc++.3.0.0 
>which
>| seems right to me.
>
>What is the result of the following?
>
>	nm /usr/lib/libstdc++.so | c++filt | grep _IO_

>The result is
>
>         U _IO_default_pbackfail@@GLIBC_2.0
>         U _IO_default_uflow@@GLIBC_2.0
>         U _IO_file_attach@@GLIBC_2.1
>         U _IO_file_close@@GLIBC_2.0
>         U _IO_file_close_it@@GLIBC_2.1
>         U _IO_file_doallocate@@GLIBC_2.0
>         U _IO_file_finish@@GLIBC_2.1
>         U _IO_file_init@@GLIBC_2.1
>         U _IO_file_jumps@@GLIBC_2.0
>         U _IO_file_open@@GLIBC_2.0
>         U _IO_file_overflow@@GLIBC_2.1
>         U _IO_file_read@@GLIBC_2.0
>         U _IO_file_seek@@GLIBC_2.0
>         U _IO_file_seekoff@@GLIBC_2.1
>         U _IO_file_setbuf@@GLIBC_2.1
>         U _IO_file_stat@@GLIBC_2.0
 >        U _IO_file_sync@@GLIBC_2.1
 >        U _IO_file_underflow@@GLIBC_2.1
>        U _IO_file_write@@GLIBC_2.1
>         U _IO_file_xsgetn
>         U _IO_file_xsputn@@GLIBC_2.1
>         U _IO_no_init
>         U _IO_un_link@@GLIBC_2.0
>         U _IO_wfile_doallocate
>         U _IO_wfile_overflow@@GLIBC_2.2
>         U _IO_wfile_seekoff@@GLIBC_2.2
>         U _IO_wfile_setbuf@@GLIBC_2.2
>         U _IO_wfile_sync@@GLIBC_2.2
>         U _IO_wfile_underflow@@GLIBC_2.2
>         U _IO_wfile_xsputn@@GLIBC_2.2
>000625c0 W _IO_FILE type_info function
>000c3b70 B _IO_FILE type_info node
>It seems like the functions are there, such as _IO_no_init, how do I >tell 
>the linker where to find the new library?  I thought if I >recomplied all 
>of gcc that it would find it automactially?
>P.S.  Yes I have run /sbin/ldconfig after installing the new library.
>
>Luke

I found somemore information about my libstdc++ problem.  Here is the 
results from ls -l /usr/lib/libstdc++*

2022860 Aug  1 10:05 libstdc++-2-libc6.1-1-2.9.0.a
1144368 Aug  1 10:05 libstdc++-2-libc6.1-1-2.9.0.so
460854 Dec 23 19:37 libstdc++-3-libc6.2-2-2.10.0.a
419081 Dec 23 19:37 libstdc++-3-libc6.2-2-2.10.0.so
29 Dec 30 13:44 libstdc++-libc6.1-1.a.2 -> libstdc++-2-libc6.1-1-2.9.0.a
30 Dec 30 13:44 libstdc++-libc6.1-1.so.2 -> libstdc++-2-libc6.1-1-2.9.0.so
l31 Dec 31 14:50 libstdc++-libc6.2-2.so.3 -> libstdc++-3-libc6.2-2-2.10.0.so
6258130 Dec 30 17:24 libstdc++.a
l11 Dec 31 14:52 libstdc++.a.3 -> libstdc++.a
18 Dec 30 13:44 libstdc++.so -> libstdc++.so.3.0.0
18 Dec 30 13:44 libstdc++.so.3 -> libstdc++.so.3.0.0
3573067 Dec 30 17:24 libstdc++.so.3.0.0

Are all of those links setup correctly to work with the most recent 
libstdc++ snapshot?  The only unusal thing I notice was that my older 
versions of libstdc++(which I moved to another directory to prevent any 
conflicts) had files like libstdc++-3-libc.2-2-2.10.0 but the most recent 
install of libstdc++ didn't create a file like that.  I wonder if that is 
what is causing some of my problems?

Luke

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


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