Skip to Content.
Sympa Menu

baslinux - [BL] upgrading glibc 2.2.5 to 2.3.1

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: baslinux AT lists.ibiblio.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: [BL] upgrading glibc 2.2.5 to 2.3.1
  • Date: Sat, 12 Jul 2008 23:06:38 +0000 (UTC)

Sindi wrote:

Diverted from a thread about sqlite.

Precompiled sqlite3 requires glibc 2.3, as does precompiled MaPiVi photo
manager and the general purpose 9MB (up from 5MB) opera 9.51 tar.gz (the
slackware 8.0 package at the opera site might need just glibc 2.2).

Upgrading to 2.3.1 from Slackware 9 the traditional way, to use for
compiling, requires a 14MB glibc package. Just running precompiled
programs requires a 1MB glibc solibs package.

Installing solibs package allowed me to run the precompiled sqlite3.
The precompiled MaPiVi requires glibc 2.3.2 not 2.3.1.
Opera was happy with glibc, but it also wanted libstdc++.so.6 and when I made a symlink to another file that looked similar, then it wanted libgcc_s.so.1, at which point I decided not to bother with it.

I will attempt to install the smaller solibs package, and then just the
includes that go into /usr/include from the full glibc 2.3.1 package (no
docs, info, man, zoneinfo, other stuff related to internationalization).
And /usr/lib/libc_nonshared.a which is needed occasionally for
compiling certain programs.

I then renamed /usr/include to /usr/includeglibc225 and copied the includes from glibc2.3.1 to /usr/includeglibc231 and symlinked /usr/include to that (to use the new includes but keep the old ones).

When I tried to configure before compiling, two programs told me /lib/cpp fails sanity check. /lib/cpp is symlinked to /usr/bin/cpp.
cpp = C plus plus C++

Do I also have to upgrade some C++ library (from Slackware 9.0) in order to compile with the later glibc solibs?

cxxlibs.tgz is in Slackware 7.1
cxxlibs-5.1.0-i486-1.tgz Slackware 8.1 - I updated to it a while back.

cxxlibs-5.0.2-i386-1.tgz Slackware 9.0 looks like an older version
(908K package), - do I need to install it?

If this messes things up, the fix is to delete the added libraries using
another version of BL (BL3 to fix BL2) and run ldconfig (or relink by hand
with ln -s).

I manually relinked and configure works again. (ldconfig run from another BL did not symlink the modified BL libs back to 2.2.5).

I am hoping the new headers (/usr/include/) can just go on top of the old
ones. They are plain text and the ones from glibc 2.2.5 worked in uclibc.

I put back the old headers. The new ones are only about 400K package (at my site, put into /usr/lib), which with the solibs means only 1.5MB download. Plus 1MB for cxx if needed.

I would copy BL3 to a spare partition and experiment on it next time.

Sindi





Archive powered by MHonArc 2.6.24.

Top of Page