Thread View: comp.unix.programmer
2 messages
2 total messages
Started by Jason Aten
Sun, 08 Apr 2001 08:40
corrupted libstdc++ library config? how to fix?
Author: 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*
Re: corrupted libstdc++ library config? how to fix?
Author: C R Johnson
Date: Sat, 14 Apr 2001 22:05
Date: Sat, 14 Apr 2001 22:05
12 lines
1571 bytes
1571 bytes
You have both g++ 2.95.2 and 2.95.3 installed? > /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 -- "There's no way to rule innocent men. The only power government has is the power to crack down on criminals. When there aren't enough criminals, one makes them. One declares so many things to be a crime that it becomes impossible for men to live without breaking laws." (Ayn Rand)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads