This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++.so without version information
- From: Philipp Thomas <Philipp dot Thomas2 at gmx dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 25 Nov 2009 11:13:27 +0100
- Subject: Re: libstdc++.so without version information
- References: <4B0BF585.9070200@cpsd.at>
On Tue, 24 Nov 2009 16:02:29 +0100, you wrote:
> libdl.so.2 (GLIBC_2.0) => /lib/libdl.so.2
> libstdc++.so.6 (CXXABI_1.3) => not found
> libstdc++.so.6 (GLIBCXX_3.4) => not found
>[snip]
>
>It seems that the libstdc++ does not contain the needed information:
>
You can't check with strings. The right way to check the version
information is by using 'objdump -p' on the library. When doing so,
you'll see something like
Version definitions:
1 0x01 0x025f4d66 libstdc++.so.6
2 0x00 0x08922974 GLIBCXX_3.4
3 0x00 0x02297f81 GLIBCXX_3.4.1
GLIBCXX_3.4
4 0x00 0x02297f82 GLIBCXX_3.4.2
GLIBCXX_3.4.1
5 0x00 0x02297f83 GLIBCXX_3.4.3
GLIBCXX_3.4.2
Looks likeWhat ldconfig is telling you is that it doesn't find the
library. Try calling ldconfig to get the dynamic linker to cache the
library and then again ldd.
>How can I build libstdc++ so that it contains version information?
I'm certain that is does contain the info when looking with the right
tool :)
Philipp