From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4845 invoked from network); 12 Apr 1998 18:20:47 -0000 Received: from ellpspace.math.ualberta.ca (michal@129.128.88.19) by mail2.redhat.com with SMTP; 12 Apr 1998 18:20:47 -0000 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.5/8.8.5) id MAA31600 for axp-list@redhat.com; Sun, 12 Apr 1998 12:20:59 -0600 From: Michal Jaegermann Message-Id: <199804121820.MAA31600@ellpspace.math.ualberta.ca> Subject: Re: Linking (was: NIS broken with current glibc) To: axp-list@redhat.com Date: Sun, 12 Apr 1998 12:20:58 -0600 (MDT) In-Reply-To: <199804121626.JAA24039@icarus.icarus.com> from "Stephen Williams" at Apr 12, 98 09:26:25 am Content-Type: text 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