Re: ldconfig won't update libraries

D. Chiodo (djc@microwave.com)
Fri, 8 Nov 1996 01:20:25 -0500 (EST)


On Thu, 7 Nov 1996, Damm wrote:

> Date: Thu, 7 Nov 1996 15:52:32 -0500 (EST)
> From: Damm <Slikens@cris.com>
> To: Rick Cook <cook@vs.lmco.com>
> Cc: linux-kernel@vger.rutgers.edu
> Subject: Re: ldconfig won't update libraries
>
> >
> > # /sbin/ldconfig
> > /sbin/ldconfig: warning: can't unlink /usr/X11R6/lib/ (Operation not permitted)
> > /sbin/ldconfig: warning: can't unlink /usr/i486-linux/lib/ (Operation not
> > permitted)
> > /sbin/ldconfig: version 1.7.3
> > #
> >
> > X applications then complain about:
> >
>
> ldconfig cannot be run as non-root user
> Operatiion not permitted is normally because a non super user is trying to
> run ldconfig

If you'll note the text above carefully, you'll note ldconfig is trying to
unlic directories. This is becuase the older libraries (and ldconfig) had
a different way of recording the "soname" (Which I have deduced is an
itnernal "name" of a library, irrelevant of what its filename is, that is
used for making the symlink). "version 1.7.3" is the older version, and he
is trying to isntall newer libraries.

I know what is causing this becuase I've had it happen myself. version
1.7.14 of ld.so (and ldconfig) properly recognize the new sonames (and
apparently the old ones as well).

It does however, appear that version 1.8.3 recognizes only the new names,
and goes on trying to unlink directories (unsuccessfuly) when it tries to
process the old libraries.