libstdc++.so without version information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello list,

I built gcc version 4.1.2 using these configure options:

root:/sources/gcc-build# gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1.2/configure --prefix=/usr/local --libexecdir=/usr/local/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-bootstrap
Thread model: posix
gcc version 4.1.2

Everything worked fine, I got a usable compiler.

I also got the C++ runtime library libstdc++.so.6.0.8, which however does
not contain version information. This gives errors when I use a certain
precompiled library:

root:# ldd -v ./libbsapi.so
./libbsapi.so: /usr/local/lib/libstdc++.so.6: no version information available (required by ./libbsapi.so)
./libbsapi.so: /usr/local/lib/libstdc++.so.6: no version information available (required by ./libbsapi.so)
        linux-gate.so.1 =>  (0xffffe000)
        libdl.so.2 => /lib/libdl.so.2 (0xb751e000)
        libusb-0.1.so.4 => /usr/lib/libusb-0.1.so.4 (0xb7516000)
        librt.so.1 => /lib/librt.so.1 (0xb750d000)
        libstdc++.so.6 => /usr/local/lib/libstdc++.so.6 (0xb7420000)
        libm.so.6 => /lib/libm.so.6 (0xb73f7000)
        libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0xb73ec000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb73d4000)
        libc.so.6 => /lib/libc.so.6 (0xb72a7000)
        /lib/ld-linux.so.2 (0xb775a000)

        Version information:
        ./libbsapi.so:
                libgcc_s.so.1 (GCC_3.0) => /usr/local/lib/libgcc_s.so.1
                libgcc_s.so.1 (GLIBC_2.0) => /usr/local/lib/libgcc_s.so.1
                librt.so.1 (GLIBC_2.2) => /lib/librt.so.1
                libdl.so.2 (GLIBC_2.1) => /lib/libdl.so.2
                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:

root:~# strings /usr/local/lib/libstdc++.so.6.0.8 | grep GLIBCXX
GLIBCXX_FORCE_NEW
root:~# strings /usr/local/lib/libstdc++.so.6.0.8 | grep CXXABI
root:~#

How can I build libstdc++ so that it contains version information?

Thanks in advance
Christian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux