[2453] in SIPB_Linux_Development

home help back first fref pref prev next nref lref last post

Re: Releasing Linux-Athena 5.2

daemon@ATHENA.MIT.EDU (Salvatore Valente)
Tue Feb 2 23:08:43 1999

Date: Tue, 2 Feb 1999 23:07:42 -0500
To: amu@MIT.EDU (Aaron M. Ucko)
Cc: linux-dev@MIT.EDU
In-Reply-To: "[2445] in SIPB_Linux_Development"
From: Salvatore Valente <svalente@MIT.EDU>


Aaron wrote:

	The libjpeg Red Hat ships doesn't explicitly depend on libc...
	so ldd merely notes that it's an ELF shared library associated with an
	unidentified libc version.

Ok.  In the specific case of libjpeg, this is not a problem, because
the libc6 libjpeg and the libc5 libjpeg have different sonames.  That
is, /mit/graphics/arch/i386_linux2/bin/xv looks for libjpeg.so.6, and
/usr/bin/X11/xv looks for libjpeg.so.62.

To test this, I installed a bunch of libc5 shared libs in
/usr/i486-linux-libc5/lib on snork and ran the version of ldconfig
that came with RedHat 5.2.  Then xv in the graphics locker worked and
was able to view jpegs.

However, it looks like we'll have to use the new version of ldconfig
to make programs that use the other shared libs work.  (Does anyone
have a perl script that uses the feature of perl that uses libdb?
Such a perl script would probably fail if run with
/mit/perl5/bin/perl.)

--- Trying to fix the problem...

I rebuilt the athena-libc5 package with the forgotten shared libs that
I mentioned in my previous message.  I put the libs right in
/usr/i486-linux-libc/lib.  (Is there some reason to put them somewhere
else, like "missing-libs"?)

I hoped I could steal a new ldconfig rpm from Raw Hide, but, sadly, it
still uses the same version of ldconfig as RedHat 5.2.

So, I downloaded the ld.so-1.9.9 sources and ripped out the ldconfig
sources.  I downloaded the ldconfig src.rpm and ripped out the .spec
file.  I was able to build ldconfig-1.9.9 rpm and src.rpm files fairly
easily.  These files are in /mit/linux/devel/ldconfig/.  Barring any
objections, I'll replace ldconfig-1.9.5...rpm on the server with
ldconfig-1.9.9...rpm.

The new ldconfig package should probably have a post-install script
that modifies ld.so.conf.  /etc/ld.so.conf isn't part of any package,
so I'm not sure when it gets created. during the installation process.
Hopefully, it gets created before any packages are installed.

On a vanilla RedHat 5.2 system, /etc/ld.so.conf contains 4 lines:

	/usr/i486-linuxaout/lib
	/usr/lib
	/usr/i486-linux-libc5/lib
	/usr/X11R6/lib

These 4 lines should be followed with "=libc4", "=libc6", "=libc5",
and "=libc6" respectively.  Should we also add some lines?  (In
[2375], Aaron suggested the line "/usr/X11R6/lib" not followed by
"=libc6", but I don't know why.)

Anyway, I guess that's the state of things for now.

Sal.

home help back first fref pref prev next nref lref last post