Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: Linking (was: NIS broken with current glibc)
Date: Sun, 12 Apr 1998 12:20:58 -0600 (MDT)	[thread overview]
Message-ID: <199804121820.MAA31600@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <199804121626.JAA24039@icarus.icarus.com> from "Stephen Williams" at Apr 12, 98 09:26:25 am

Steve Williams writes:
> 
> I am also having troubles with shared object linking being a bit broken.
> For example:
> 
> icarus.icarus.com % ldd /usr/X11R6/bin/ghostview
>         libXaw.so.6 => /usr/X11R6/lib/libXaw.so.6 (0x0000020000004000)
>         libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x000002000015e000)
>         libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x0000020000278000)
>         libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x00000200003ea000)
>         libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x00000200004f8000)
>         libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x0000020000618000)
>         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x000002000072a000)
>         libc.so.6 => /lib/libc.so.6 (0x0000020000928000)
>         ld.so.1 => not found
             ^^^^^^^^^^
What?  This is an old loader from the previous distribution.

>         /lib/ld.so.1 => /lib/ld-linux.so.2 (0x0000020001000000)
                              ^^^^^^^
And this is the current one (which should be able to load, at least
in theory, older libraries as well - if required).

> Ack!

As all libraries detected by ldd seem to be from RH 5.0 set I am not
sure how did you managed to get this "ld.so.1" there.  Smells like
you managed to misconfigure something badly.  Do you have some links
going nowhere in your /lib/?  And how did you managed to include
a reference to an old loader in your executables?

Loaders themselves are statically linked, for obvious reasons :-), so
missing libraries are not a problem for a loader.

If you happen to really need both current and old libraries (some
commercial stuff in a binary format requires these, for example) then
you will be well advised to separate them in their own directories
and to adjust your /etc/ld.so.conf.

If a new loader indeed does not have hiccups with old libraries (I did
not try that myself) then doing, in lib, 'ln -s ld-linux.so.2 ld.so.1'
should take care of that.  Otherwise you need a copy of ld.so.1 itself.
This still does not address the quoted example which looks like
some installation error.  Do you have a mixture of old and new libraries
by any chance?

  Michal


  reply	other threads:[~1998-04-12 18:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-12 16:05 NIS broken with current glibc Steven N. Hirsch
1998-04-12 15:26 ` Stephen Williams
1998-04-12 18:20   ` Michal Jaegermann [this message]
1998-04-12 18:42     ` Linking (was: NIS broken with current glibc) Stephen Williams
1998-04-12 23:42       ` Michal Jaegermann
1998-04-13 18:11 ` NIS broken with current glibc Francesco Callari
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox