* Jim Meyering <[EMAIL PROTECTED]>: | > gcc -std=gnu99 -g -O2 -Wl,--as-needed -o cp cp.o copy.o cp-hash.o ../lib/libcoreutils.a ../lib/libcoreutils.a | > ../lib/libcoreutils.a(xstrndup.o): In function `xstrndup': | > /home/gzp/src/coreutils-6.2/lib/xstrndup.c:37: undefined reference to `rpl_strndup' | > collect2: ld returned 1 exit status | > make[2]: *** [cp] Error 1 | > make[2]: Leaving directory `/home/gzp/src/coreutils-6.2/src' | > make[1]: *** [all] Error 2 | > make[1]: Leaving directory `/home/gzp/src/coreutils-6.2/src' | > make: *** [all-recursive] Error 1
| Thanks for reporting that. | The above makes me think your tools have incomplete "weak_alias" support, | so that lib/strndup.o ends up with a definition for a function | named __strndup, rather than rpl_strndup. | Gabor, would you please tell us what compiler and libc/OS you're | using? [kernel] Linux gzp3 2.4.32 #1 Tue Mar 28 20:32:22 CEST 2006 i686 GNU/Linux [glibc] GNU C Library stable release version 2.2.5, by Roland McGrath et al. Compiled by GNU CC version 2.95.4 20010319 (prerelease). Compiled on a Linux 2.4.17 system on 2002-01-21. [gcc] gcc (GCC) 4.1.1 [binutils] GNU ld version 2.17.50.0.3 20060715