Hans-Joachim Baader writes: > Hi, > > > please recheck with the current libc6 / libc6-dev. > > I did that. No change. Then I tried the same program on a different > machine which has identical packages installed (including binutils and > everything that is relevant). On this machine there was no problem. > I checked for differences in /usr/bin, /usr/lib etc. but found none. > Even with strace I could not see much. There is only one difference: > On the second machine libc_nonshared.a is linked automatically. On the > first it is not, resulting in the unresolved symbols. But the libc.so > is identical.
huh? I cannot find libc_nonshared.a in the output of your logs ... > Here is the -v output of the successful case: > > Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs > gcc version 2.95.4 20011002 (Debian prerelease) > /usr/lib/gcc-lib/i386-linux/2.95.4/cpp0 -lang-c -v -D__GNUC__=2 > -D__GNUC_MINOR__=95 -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ > -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__OPTIMIZE__ > -Wall -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ strtod.c > /tmp/ccFKwoKS.i > GNU CPP version 2.95.4 20011002 (Debian prerelease) (i386 Linux/ELF) > #include "..." search starts here: > #include <...> search starts here: > /usr/local/include > /usr/lib/gcc-lib/i386-linux/2.95.4/include > /usr/include > End of search list. > The following default directories have been omitted from the search path: > /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3 > /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../i386-linux/include > End of omitted list. > /usr/lib/gcc-lib/i386-linux/2.95.4/cc1 /tmp/ccFKwoKS.i -quiet -dumpbase > strtod.c -O2 -Wall -version -o /tmp/ccGhFgsC.s > GNU C version 2.95.4 20011002 (Debian prerelease) (i386-linux) compiled by > GNU C version 2.95.4 20011002 (Debian prerelease). > as -V -Qy -o /tmp/ccnS43Sn.o /tmp/ccGhFgsC.s > GNU assembler version 2.14.90.0.6 (i386-linux) using BFD version 2.14.90.0.6 > 20030820 Debian GNU/Linux > /usr/lib/gcc-lib/i386-linux/2.95.4/collect2 -m elf_i386 -dynamic-linker > /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o > /usr/lib/gcc-lib/i386-linux/2.95.4/crtbegin.o > -L/usr/lib/gcc-lib/i386-linux/2.95.4 /tmp/ccnS43Sn.o -lgcc -lc -lgcc > /usr/lib/gcc-lib/i386-linux/2.95.4/crtend.o /usr/lib/crtn.o > > Compare with the unsuccessful case: > > Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs > gcc version 2.95.4 20011002 (Debian prerelease) > /usr/lib/gcc-lib/i386-linux/2.95.4/cpp0 -lang-c -v -D__GNUC__=2 > -D__GNUC_MINOR__=95 -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ > -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__OPTIMIZE__ > -Wall -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ strtod.c > /tmp/cc8szyJT.i > GNU CPP version 2.95.4 20011002 (Debian prerelease) (i386 Linux/ELF) > #include "..." search starts here: > #include <...> search starts here: > /usr/local/include > /usr/lib/gcc-lib/i386-linux/2.95.4/include > /usr/include > End of search list. > The following default directories have been omitted from the search path: > /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3 > /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../i386-linux/include > End of omitted list. > /usr/lib/gcc-lib/i386-linux/2.95.4/cc1 /tmp/cc8szyJT.i -quiet -dumpbase > strtod.c -O2 -Wall -version -o /tmp/ccqIj5VI.s > GNU C version 2.95.4 20011002 (Debian prerelease) (i386-linux) compiled by > GNU C version 2.95.4 20011002 (Debian prerelease). > as -V -Qy -o /tmp/cck1tbyE.o /tmp/ccqIj5VI.s > GNU assembler version 2.14.90.0.6 (i386-linux) using BFD version 2.14.90.0.6 > 20030820 Debian GNU/Linux > /usr/lib/gcc-lib/i386-linux/2.95.4/collect2 -m elf_i386 -dynamic-linker > /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o > /usr/lib/gcc-lib/i386-linux/2.95.4/crtbegin.o > -L/usr/lib/gcc-lib/i386-linux/2.95.4 /tmp/cck1tbyE.o -lgcc -lc -lgcc > /usr/lib/gcc-lib/i386-linux/2.95.4/crtend.o /usr/lib/crtn.o > /usr/lib/crt1.o(.text+0xc): In function `_start': > ../sysdeps/i386/elf/start.S:92: undefined reference to `__libc_csu_fini' > /usr/lib/crt1.o(.text+0x11):../sysdeps/i386/elf/start.S:93: undefined > reference to `__libc_csu_init' > collect2: ld returned 1 exit status > > Everything that seems relevant is identical. Maybe it's not a Debian > problem at all, but I currently have no idea where to search further. > > Thanks, > hjb > -- > Pro-Linux - Germany's largest volunteer Linux support site > http://www.pro-linux.de/ Public Key ID 0x3DDBDDEA