[PATCH] Re: bzip2 1.0.2 issues

Phil Howard phil-lfs-dev at ipal.net
Thu Feb 7 11:36:47 PST 2002

On Thu, Feb 07, 2002 at 10:48:16AM -0500, Don Smith wrote:

| "Phil Howard" <phil-lfs-dev at ipal.net> wrote in message
| news:20020207050633.GA12632 at vega.ipal.net...
| > On Wed, Feb 06, 2002 at 09:15:27PM +0000, Ken Moffat wrote:
| <snip>
| > Now the only file I have left over from ch 5, once I finish ch 6, is
| > /usr/lib/libstdc++.a.2.10.0 which I understand I don't need (and it
| > has a funny name ... not sure if that's a C++ thing) and presumably
| > can remove (I do remove it, and haven't seen anything break, but then
| > my closest guess is it is for static compiles of C++ programs, which
| > I have not done, so this is not telling).
| >
| Yes, this library is for static "compiles". The .a in the middle tells
| you that.
| No, the funny name is not a C++ thing, it is a way devised to tell which
| version of the library is installed on your system. The numbers after
| the .a are the version number. You are supposed to create a file link to
| this file with the same name but dropping the version number:
| cd /usr/lib
| ln -sf libstdc++.a.2.10.0 libstdc++.a
| though this is not strictly necessary. There's usually no reason to keep
| older versions of lib*.a files around unless you just gotta have that
| crusty old program that uses some "feature" that was dropped from the
| new version.

In the static compile of gcc I see:

rm -f tlibstdc++.a.2.10.0
ar rc tlibstdc++.a.2.10.0 `cat stdlist`
mv tlibstdc++.a.2.10.0 libstdc++.a.2.10.0
ranlib libstdc++.a.2.10.0
rm -f libstdc++.a
ln -s libstdc++.a.2.10.0 libstdc++.a || cp libstdc++.a.2.10.0 libstdc++.a

happening.  Then later in the dynamic compile I see:

rm -f tlibstdc++-3-libc6.2-2-2.10.0.a
ar rc tlibstdc++-3-libc6.2-2-2.10.0.a `cat stdlist`
mv tlibstdc++-3-libc6.2-2-2.10.0.a libstdc++-3-libc6.2-2-2.10.0.a
ranlib libstdc++-3-libc6.2-2-2.10.0.a
make[3]: Entering directory `/work-lfs/src/gcc-2.95.3/gcc-build/i686-pc-linux-gnu/libstdc++'
rm -f libstdc++-libc6.2-2.a.3
ln -s libstdc++-3-libc6.2-2-2.10.0.a libstdc++-libc6.2-2.a.3 || cp libstdc++-3-libc6.2-2-2.10.0.a libstdc++-libc6.2-2.a.3
make[3]: Leaving directory `/work-lfs/src/gcc-2.95.3/gcc-build/i686-pc-linux-gnu/libstdc++'
rm -f libstdc++.a
ln -s libstdc++-3-libc6.2-2-2.10.0.a libstdc++.a || cp libstdc++-3-libc6.2-2-2.10.0.a libstdc++.a

The naming seems to have changed, so the old static one is not
being replaced.

| Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
| phil-nospam at ipal.net | Texas, USA | http://phil.ipal.org/     |
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message

More information about the lfs-dev mailing list