This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [bug] glibc-2.2: ldconfig parses ld-linux.so.2 link wrong


>  > %ldconfig
>  > ldconfig: Can't stat .2
> 
>  > Strace output shows this:
> 
>  > stat("/lib/ld-linux.so.2", {st_mode=S_IFREG|0755, st_size=463501, ...}) = 0
>  > stat(".2", 0xefffe5d0)                  = -1 ENOENT (No such file or directory)
>  > write(2, "ldconfig: ", 10)              = 10
>  > write(2, "Can\'t stat .2\n", 14)        = 14
>  > write(2, "\n", 1)                       = 1
> 
>  > %l /lib/ld-*
>  > -rwxr-xr-x    1 root     root       463501 Nov 10 00:18 /lib/ld-2.2.so*
>  > lrwxrwxrwx    1 root     root            9 Nov 10 00:53 /lib/ld-linux.so.2 -> ld-2.2.so*


Uggh. This was a royal pain in the ass to find. Thinko patch attached.

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'
--- glibc22/elf/ldconfig.c~	Fri Nov 10 00:46:33 2000
+++ glibc22/elf/ldconfig.c	Fri Nov 10 08:49:41 2000
@@ -370,7 +370,7 @@
 
   /* Get complete path.  */
   full_libname = alloca (strlen (path) + strlen (libname) + 2);
-  full_soname = alloca (strlen (path) + strlen (libname) + 2);
+  full_soname = alloca (strlen (path) + strlen (soname) + 2);
   sprintf (full_libname, "%s/%s", path, libname);
   sprintf (full_soname, "%s/%s", path, soname);
   if (opt_chroot)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]