[parisc-linux] Bizarre linking problems with glibc

Matthew Wilcox matthew@wil.cx
Wed, 2 May 2001 08:55:17 +0100


If I add this patch to glibc:

diff -u -p -r1.6.2.1 dl-error.c
--- elf/dl-error.c      2001/04/25 18:39:32     1.6.2.1
+++ elf/dl-error.c      2001/05/01 23:10:34
@@ -154,6 +154,8 @@ _dl_catch_error (const char **objname, c
       return 0;
     }
 
+printf("_dl_catcherror: we longjmped\n");
+
   /* We get here only if we longjmp'd out of OPERATE.  */
   tsd_setspecific (old);
   *objname = c.objname;

then i get these errors when building it:

gcc   -nostdlib -nostartfiles -r -o /home/willy/cvs/glibc-build/elf/librtld.os '-Wl,-(' /home/willy/cvs/glibc-build/elf/dl-allobjs.os /home/willy/cvs/glibc-build/libc_pic.a -lgcc '-Wl,-)'
/home/willy/cvs/glibc-build/libc_pic.a(init-first.os): In function `init':
/home/willy/cvs/glibc-merge/csu/../sysdeps/unix/sysv/linux/init-first.c:59: multiple definition of `__libc_multiple_libcs'
/home/willy/cvs/glibc-build/elf/dl-allobjs.os:/home/willy/cvs/glibc-merge/elf/../sysdeps/generic/dl-cache.c:149: first defined here
collect2: ld returned 1 exit status

-- 
Revolutions do not require corporate support.