Article View: comp.unix.programmer
Article #3383corrupted libstdc++ library config? how to fix?
From: Jason Aten
Date: Sun, 08 Apr 2001 08:40
Date: Sun, 08 Apr 2001 08:40
52 lines
2871 bytes
2871 bytes
I've got a corrupted ldd/g++ configuration I'm hoping someone will know
how to fix.
The dynamic linker can't seem to find any of the standard C libraries for
GLIBC_2.0 or GLIBC_2.1 that are requested by libstdc++.so ... how might I
go about diagnosing the problem? Output is copied below. Running on i586
linux/mandrake 7.1
Any suggestions appreciated!
- Jason
Here's what output looks like when I try to compile with dynamic linking
(add a -static and everything works fine):
[jaten@star fptest]$ g++ fptest.cpp
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/libstdc++.so: undefined
reference to `free@GLIBC_2.0' reference to `_IO_str_init_static@GLIBC_2.0'
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/libstdc++.so: undefined
reference to `_sys_nerr@GLIBC_2.1'
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/libstdc++.so: undefined
reference to `__printf_fp@GLIBC_2.0' ...
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/libstdc++.so: undefined
reference to `fread@GLIBC_2.0' ...
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/libstdc++.so: undefined
reference to `memcpy@GLIBC_2.0' libstdc++-compat-2.95.2-7mdk
...
(and lots lots more of the same)
The following are installed:
gcc-c++-2.95.2-7mdk
libstdc++-devel-2.95.2-7mdk
compat-glibc-5.3-2.0.7.6mdk
glibc-devel-2.1.3-18.1mdk
glibc-2.1.3-18.1mdk
libstdc++-compat-2.95.2-7mdk
gcc-c++-2.95.2-7mdk
libstdc++-devel-2.95.2-7mdk
compat-glibc-5.3-2.0.7.6mdk
glibc-devel-2.1.3-18.1mdk
glibc-2.1.3-18.1mdk
# ldd /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/libstdc++.so
libm.so.6 => /lib/libm.so.6 (0x00165000)
libc.so.6 => /lib/libc.so.6 (0x00183000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
# ls -l /lib/libc.so.6
lrwxrwxrwx 1 root root 13 Aug 26 2000 /lib/libc.so.6 -> libc-2.1.3.so*
Technical Details
Message-ID:
<Pine.SOL.4.33.0104080124590.18762-100000@panther.cs.ucla.edu>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!logbridge.uoregon.edu!canoe.uoregon.edu!newsfeed.news.ucla.edu!news.cs.ucla.edu!panther.cs.ucla.edu!jatenShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,a50976014daaf2c8,start X-Google-Attributes: gidfc89c,public X-Google-Thread: 10ba33,a50976014daaf2c8,start X-Google-Attributes: gid10ba33,public X-Google-ArrivalTime: 2001-04-08 01:41:15 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!logbridge.uoregon.edu!canoe.uoregon.edu!newsfeed.news.ucla.edu!news.cs.ucla.edu!panther.cs.ucla.edu!jaten From: Jason Aten <jaten@cs.ucla.edu> Newsgroups: comp.unix.programmer,gnu.g++.help Subject: corrupted libstdc++ library config? how to fix? Date: Sun, 8 Apr 2001 01:40:27 -0700 Organization: UCLA Computer Science Dept. Lines: 54 Message-ID: <Pine.SOL.4.33.0104080124590.18762-100000@panther.cs.ucla.edu> NNTP-Posting-Host: panther.cs.ucla.edu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.cs.ucla.edu 986719230 26293 131.179.128.25 (8 Apr 2001 08:40:30 GMT) X-Complaints-To: usenet@cs.ucla.edu NNTP-Posting-Date: 8 Apr 2001 08:40:30 GMT