[klibc] link failure in snapshot 0.81
H. Peter Anvin
hpa at zytor.com
Thu Oct 16 10:06:41 PDT 2003
Rogelio M.Serrano Jr. wrote:
> Im using snapshot 0.81.
>
> make[1]: Entering directory `/home/rogelio/src/klibc-0.81/klibc'
> gcc -Wp,-MD,./.getenvtest.d -march=i386 -Os -falign-functions=0
> -falign-jumps=0 -falign-loops=0 -nostdinc -iwithprefix include
> -I../klibc -I../klibc/arch/i386/include -I../klibc/include/bits32
> -D__KLIBC__ -DBITSIZE=32 -I../klibc/include -I../linux/include -W -Wall
> -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline -c -o
> tests/getenvtest.o tests/getenvtest.c
> ld -o tests/getenvtest.shared -e main interp.o tests/getenvtest.o -R
> libc.so /usr/lib/gcc-lib/i386-linux/3.0.4/libgcc.a
> tests/getenvtest.o: In function `main':
> tests/getenvtest.o(.text+0xd): undefined reference to `environ'
> tests/getenvtest.o(.text+0x2f): undefined reference to `printf'
> tests/getenvtest.o(.text+0x50): undefined reference to `printf'
> tests/getenvtest.o(.text+0x64): undefined reference to `getenv'
> tests/getenvtest.o(.text+0x71): undefined reference to `printf'
> tests/getenvtest.o(.text+0x7d): undefined reference to `getenv'
> tests/getenvtest.o(.text+0x8a): undefined reference to `printf'
> tests/getenvtest.o(.text+0x96): undefined reference to `getenv'
> tests/getenvtest.o(.text+0xa3): undefined reference to `printf'
> tests/getenvtest.o(.text+0xaf): undefined reference to `getenv'
> tests/getenvtest.o(.text+0xbc): undefined reference to `printf'
> make[1]: *** [tests/getenvtest.shared] Error 1
> rm tests/getenvtest.o
> make[1]: Leaving directory `/home/rogelio/src/klibc-0.81/klibc'
> make: *** [all] Error 2
> rogelio at mobile:~/src/klibc-0.81$
>
What version of binutils are you using? Looks like they broke "ld -R"
again...
-hpa
More information about the klibc
mailing list