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]

getopt change breaks ld


Hi,

this change:

         * posix/getopt.c (_getopt_internal): Don't recognize an option
         name as ambiguous if it's a prefix for more than one name but the
         other struct option values are identical.

breaks ld on PPC, with yesterdays glibc-cvs installed. Todays glibc build 
failed on me with this message:

gcc   -shared -Wl,-O1 -o 
/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/libc.so 
-Wl,-dynamic-linker=/lib/ld.so.1 -B/home/fsirl/rh70/gl
ibc/BUILD/glibc-2.1.93/build-ppc-linux/csu/ 
-Wl,--version-script=/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/libc.map 
-Wl,-soname=li
bc.so.6  -nostdlib -nostartfiles -e __libc_main -u __register_frame 
-L/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux -L/home/fsirl/rh70
/glibc/BUILD/glibc-2.1.93/build-ppc-linux/math 
-L/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/elf 
-L/home/fsirl/rh70/glibc/BUILD/glib
c-2.1.93/build-ppc-linux/dlfcn 
-L/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/nss 
-L/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-p
pc-linux/nis -L/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/rt 
-L/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/resolv -L/
home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/crypt 
-L/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/linuxthreads 
-Wl,-rpath
-link=/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux:/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/math:/home/fsirl/rh70/gl
ibc/BUILD/glibc-2.1.93/build-ppc-linux/elf:/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/dlfcn:/home/fsirl/rh70/glibc/BUILD/glibc-2.1.
93/build-ppc-linux/nss:/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/nis:/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/rt:
/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/resolv:/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/crypt:/home/fsirl/rh70/
glibc/BUILD/glibc-2.1.93/build-ppc-linux/linuxthreads -Wl,--whole-archive 
/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/elf/soinit.os
/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/libc_pic.os 
/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/elf/sofini.os /hom
e/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/elf/interp.os 
/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/elf/ld.so -Wl,--no-w
hole-archive -lgcc
/usr/bin/ld: cannot open __libc_main: No such file or directory
collect2: ld returned 1 exit status
gcc: file path prefix 
`/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/csu/' never used
make[1]: *** 
[/home/fsirl/rh70/glibc/BUILD/glibc-2.1.93/build-ppc-linux/libc.so] Error 1

Reverting the getopt patch fixes it. Now, is this a glibc problem or a 
binutils-2.10.0.24 problem?

Franz.


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