From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 9318 invoked from network); 5 May 1999 05:01:30 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 5 May 1999 05:01:30 -0000 Received: from aet-usa.com (root@AET-USA.COM [209.101.87.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id AAA02819 for ; Wed, 5 May 1999 00:29:09 -0400 Received: from aet-usa.com (ccurtis@eclipse.aet-usa.com [192.168.68.5]) by aet-usa.com (8.8.7/8.8.7) with ESMTP id XAA11845; Tue, 4 May 1999 23:44:33 -0400 Sender: ccurtis@aet-usa.com Message-ID: <372FE617.D0451302@aet-usa.com> Date: Wed, 05 May 1999 01:32:55 -0500 From: "Christopher W. Curtis" Organization: AET, Inc. X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.6 i586) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com, rth@twiddle.net Subject: Re: A guru problem (shared libs) References: <3727B670.CC3B9D5F@aet-usa.com> <19990502131312.B2505@twiddle.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Richard Henderson wrote: > On Wed, Apr 28, 1999 at 08:31:29PM -0500, Christopher W. Curtis wrote: > > What package do I need to (re)install to get this to function porperly, > > and please don't say glibc-2.0.7 (the RH 5.2 version) because I've > > already tried that, and each time I try it something goes hokey and the > > machine is dead for another day while I delete symlinks in /lib. > > Sorry, it's glibc. You've got /lib/libc* and /lib/ld-*.so mismatched. Thanks for responding (I recognize your name as guru-ness), but I'm still stuck and simply cannot figure out how to proceed. :( Here is my /etc/ld.so.conf: /lib /usr/lib /usr/X11R6/lib /usr/local/lib Here is /lib/libc* and /lib/ld*: -rwxr-xr-x 1 root root 301815 Oct 12 1998 /lib/ld-2.0.7.so lrwxrwxrwx 1 root root 11 Apr 27 2019 /lib/ld-linux.so.2 -> ld-2.0.7.so -rwxr-xr-x 1 root root 4462177 Oct 12 1998 /lib/libc-2.0.7.so lrwxrwxrwx 1 root root 13 Mar 2 2019 /lib/libc.so.6 -> libc-2.0.7.so lrwxrwxrwx 1 root root 13 Apr 22 2019 /lib/libc.so.6.1 -> libc-2.0.7.so Ignore the dates on the symlinks - I created those manually after a fudged 2.1 libc install forced me to boot from floppy and manually remove the bad package and recreate the original layout. Now, the thing is, it appears that *everything* works, with the sole exception of the binutils package. I can run "gcc". I can run "apache". I can run "samba". I can run 99% of the things that I want to run every day. I cannot, however, run anything from binutils. Each of the programs "ar", "nm", "as", "ranlib", "ld", "strip", and "strings" produce the error: (program): error in loading shared libraries /usr/lib/libc.so.6.1: undefined symbol: _dl_initial_searchlist I've uninstalled binutils and reinstalled them. I've forced their reinstallation using: 2540552 Feb 25 22:16 /usr/local/cdrom/yummy/installed/binutils-2.9.1.0.15-1.alpha.rpm which should be the same as the one from the CD-ROM (I downloaded it off the 'net, though, so I can't say for sure). I recently downloaded .0.23-4 as a SRPM, but not surprisingly (but so at the time), I can't compile it. I've checked the dependencies for binutils and forced reinstallation of those packages. "rpm -qR binutils" states that it depends on: /bin/sh /sbin/ldconfig ld-linux.so.2 libbfd-2.9.1.0.15.so.0 libc.so.6.1 libopcodes-2.9.1.0.15.so.0 No packages seem to provide "/bin/sh" or "/sbin/ldconfig", so I'm guessing "bash" and "ldconfig" respectively. "rpm -qlv" of bash-1.14.7-13.alpha.rpm" lists "/bin/sh" and of "ldconfig-1.9.5-8.alpha.rpm", "/sbin/ldconfig"; and trying to "rpm -U" these packages rpm states that they are already installed. ld-linux.so.2 and libc.so.6.1 are both provided for by "glibc-2.0.7-29" and libbfd and libopcodes are both provided by "binutils-2.9.1.0.15-1". So performing an "rpm -U bash* binutils* glibc-2* ldconfig*" results in: package bash-1.14.7-13 is already installed error: bash-1.14.7-13.alpha.rpm cannot be installed package ldconfig-1.9.5-8 is already installed error: ldconfig-1.9.5-8.alpha.rpm cannot be installed package binutils-2.9.1.0.15-1 is already installed error: binutils-2.9.1.0.15-1.alpha.rpm cannot be installed package glibc-2.0.7-29 is already installed error: glibc-2.0.7-29.alpha.rpm cannot be installed The same command with "--force" produces no output on stdout or stderr. I then, from a new command prompt (I telnet in from another machine) perform a test: as: error in loading shared libraries /usr/lib/libc.so.6.1: undefined symbol: _dl_initial_searchlist I am now at a complete loss. I try two more things: ldd `which as` libopcodes-2.9.1.0.15.so.0 => /usr/lib/libopcodes-2.9.1.0.15.so.0 (0x0000015555556000) libbfd-2.9.1.0.15.so.0 => /usr/lib/libbfd-2.9.1.0.15.so.0 (0x000001555566c000) libc.so.6.1 => /usr/lib/libc.so.6.1 (0x00000155557d8000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000000000000000) ldd `which cc` libc.so.6.1 => /lib/libc.so.6.1 (0x000001555555c000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000000000000000) ld-linux.so.2 both have the same entry point. "ifconfig" has the same entry into libc as cc. More testing with other progrmas show that they enter libc at varying places. All the "broken" programs depend on libbfd it seems: ldd `which strings` libbfd-2.9.1.0.15.so.0 => /usr/lib/libbfd-2.9.1.0.15.so.0 (0x0000015555556000) libc.so.6.1 => /usr/lib/libc.so.6.1 (0x00000155556c6000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000000000000000) ls -l libbfd* lrwxrwxrwx 1 root root 26 Apr 30 14:29 libbfd-2.9.1.0.15.so.0 -> libbfd-2.9.1.0.15.so.0.0.0 -rwxr-xr-x 1 root root 1454276 Oct 13 1998 libbfd-2.9.1.0.15.so.0.0.0 -rw-r--r-- 1 root root 2887892 Oct 13 1998 libbfd.a -rw-r--r-- 1 root root 482 Oct 13 1998 libbfd.la lrwxrwxrwx 1 root root 26 Apr 30 14:29 libbfd.so -> libbfd-2.9.1.0.15.so.0.0.0 As far as I can see, everything should be in order here. rpm -q --whatrequires libbfd-2.9.1.0.15.so.0 binutils-2.9.1.0.15-1 rpm -q --whatprovides libbfd-2.9.1.0.15.so.0 binutils-2.9.1.0.15-1 And `strace as`: execve("/usr/bin/as", ["as"], [/* 18 vars */]) = 0 brk(0) = 0x12014bf08 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/libopcodes-2.9.1.0.15.so.0", O_RDONLY) = 3 mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555566000 munmap(0x15555566000, 8192) = 0 mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555666000 mprotect(0x15555672000, 1065720, PROT_NONE) = 0 mmap(0x15555766000, 1065720, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555766000 close(3) = 0 open("/usr/lib/libbfd-2.9.1.0.15.so.0", O_RDONLY) = 3 mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555566000 mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555568000 munmap(0x15555566000, 8192) = 0 mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555778000 mprotect(0x155557de000, 1072496, PROT_NONE) = 0 mmap(0x155558d8000, 1072496, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x155558d8000 close(3) = 0 open("/usr/lib/libc.so.6.1", O_RDONLY) = 3 mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555566000 munmap(0x15555566000, 8192) = 0 mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x155558e4000 mprotect(0x15555a02000, 1115676, PROT_NONE) = 0 mmap(0x15555af4000, 1115676, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555af4000 mmap(0x15555b0e000, 1115676, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555b0e000 close(3) = 0 write(2, "as", 2as) = 2 write(2, ": error in loading shared librar"..., 36: error in loading shared libraries ) = 36 write(2, "/usr/lib/libc.so.6.1", 20/usr/lib/libc.so.6.1) = 20 write(2, ": ", 2: ) = 2 write(2, "undefined symbol: _dl_initial_se"..., 40undefined symbol: _dl_initial_searchlist) = 40 write(2, "", 0) = 0 write(2, "", 0) = 0 write(2, "\n", 1 ) = 1 exit(127) = ? I am now at a complete and total loss. I don't see anything wrong with this at all. Could someone be so kind as to verify some of these numbers that I have or tell me what I should do next? So far, nobody seems to be able to cast much insight into this problem, and I can't do much else without a working binutils package ... Thanks in advance, Christopher