[Gllug] libstdc++2.8.0 & rpm hatred

Nix nix at esperi.demon.co.uk
Fri Nov 16 08:41:31 UTC 2001


On Wed, 14 Nov 2001, ab stipulated:
> After installing I tried to run, and found most binaries linked to libstdc++
> 
>         libdb2.so.1 => /usr/IBMdb2/V6.1/lib/libdb2.so.1 (0x40017000)
>         libstdc++.so.2.8 => not found
>         libm.so.6 => /lib/libm.so.6 (0x407f7000)
>         libc.so.6 => /lib/libc.so.6 (0x4081a000)
>         libcrypt.so.1 => /lib/libcrypt.so.1 (0x4093f000)
>         libdl.so.2 => /lib/libdl.so.2 (0x4096c000)
>         libpthread.so.0 => /lib/libpthread.so.0 (0x40970000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> 
> Since I am using a newer build (linux from scratch) I do not have
> libstdc++2.8.
> So I copy it from an old Slackware cd, and try running again. I am now getting
> 
> complaints that the shared library version of __IO_stderr is a different size,
> and
> hence segfault here, there and everywhere !

You'll need to recompile libstdc++ for it to work with your current glibc.
(Additionally, you may need to patch it somewhat; libstdc++ and glibc are
perhaps more tightly tied than they should be.)

> So then I try to compile up a new version with gcc3, gcc2.95.2.1 and both

You can't. You must compile any given version of libstdc++ with the GCC
version which it came with (yes, this probably means doing a `make
bootstrap' and waiting forever). Of course you don't need to install
that version of GCC subsequently...

> Any ideas ? do I have to go back and install gcc2.8 as well ?

Get the source for gcc-2.8 and it will probably include the libstdc++
source.

Or rebuild those things that use libstdc++-2.8 with a newer GCC. There
can't be *that* much...

-- 
`You're the only person I know who can't tell the difference
 between a pair of trousers and a desk.' --- Kieran, to me

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list