glibc build problem

rpyne at kinfolk.org rpyne at kinfolk.org
Fri Jan 30 21:32:41 CET 2009


gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-
linker=/lib/ld-linux.so.2  -B/usr/src/glibc-2.7/glibcroot/csu/  -Wl,--
version-script=/usr/src/glibc-2.7/glibcroot/libc.map -Wl,-
soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -
nostdlib -nostartfiles -e __libc_main -L/usr/src/glibc-2.7/glibcroot -
L/usr/src/glibc-2.7/glibcroot/math -L/usr/src/glibc-2.7/glibcroot/elf 
-L/usr/src/glibc-2.7/glibcroot/dlfcn -L/usr/src/glibc-
2.7/glibcroot/nss -L/usr/src/glibc-2.7/glibcroot/nis -L/usr/src/glibc-
2.7/glibcroot/rt -L/usr/src/glibc-2.7/glibcroot/resolv -
L/usr/src/glibc-2.7/glibcroot/crypt -L/usr/src/glibc-
2.7/glibcroot/nptl -Wl,-rpath-link=/usr/src/glibc-
2.7/glibcroot:/usr/src/glibc-2.7/glibcroot/math:/usr/src/glibc-
2.7/glibcroot/elf:/usr/src/glibc-2.7/glibcroot/dlfcn:/usr/src/glibc-
2.7/glibcroot/nss:/usr/src/glibc-2.7/glibcroot/nis:/usr/src/glibc-
2.7/glibcroot/rt:/usr/src/glibc-2.7/glibcroot/resolv:/usr/src/glibc-
2.7/glibcroot/crypt:/usr/src/glibc-2.7/glibcroot/nptl -o 
/usr/src/glibc-2.7/glibcroot/libc.so -T /usr/src/glibc-
2.7/glibcroot/shlib.lds /usr/src/glibc-2.7/glibcroot/csu/abi-note.o 
/usr/src/glibc-2.7/glibcroot/elf/soinit.os /usr/src/glibc-
2.7/glibcroot/libc_pic.os /usr/src/glibc-2.7/glibcroot/elf/sofini.os 
/usr/src/glibc-2.7/glibcroot/elf/interp.os /usr/src/glibc-
2.7/glibcroot/elf/ld.so -lgcc
/usr/src/glibc-2.7/glibcroot/libc_pic.os: In function `__libc_fork':
/usr/src/glibc-
2.7/posix/../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:76: 
undefined reference to `__sync_bool_compare_and_swap_4'
/usr/src/glibc-2.7/glibcroot/libc_pic.os: In function 
`__nscd_drop_map_ref':
/usr/src/glibc-2.7/nscd/nscd-client.h:320: undefined reference to 
`__sync_fetch_and_add_4'
/usr/src/glibc-2.7/glibcroot/libc_pic.os: In function `nscd_getpw_r':
/usr/src/glibc-2.7/nscd/nscd_getpw_r.c:232: undefined reference to 
`__sync_fetch_and_add_4'
/usr/src/glibc-2.7/glibcroot/libc_pic.os: In function 
`__nscd_drop_map_ref':
/usr/src/glibc-2.7/nscd/nscd-client.h:320: undefined reference to 
`__sync_fetch_and_add_4'
/usr/src/glibc-2.7/glibcroot/libc_pic.os: In function `nscd_getgr_r':
/usr/src/glibc-2.7/nscd/nscd_getgr_r.c:321: undefined reference to 
`__sync_fetch_and_add_4'
/usr/src/glibc-2.7/glibcroot/libc_pic.os: In function 
`__nscd_drop_map_ref':
/usr/src/glibc-2.7/nscd/nscd-client.h:320: undefined reference to 
`__sync_fetch_and_add_4'
/usr/src/glibc-2.7/glibcroot/libc_pic.os:/usr/src/glibc-
2.7/nscd/nscd_gethst_r.c:400: more undefined references to 
`__sync_fetch_and_add_4' follow
/usr/src/glibc-2.7/glibcroot/libc_pic.os: In function 
`__nscd_get_map_ref':
/usr/src/glibc-2.7/nscd/nscd_helper.c:404: undefined reference to 
`__sync_val_compare_and_swap_4'
/usr/src/glibc-2.7/glibcroot/libc_pic.os: In function 
`*__GI___libc_freeres':
/usr/src/glibc-2.7/malloc/set-freeres.c:39: undefined reference to 
`__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status
make[1]: *** [/usr/src/glibc-2.7/glibcroot/libc.so] Error 1
make[1]: Leaving directory `/usr/src/glibc-2.7'
make: *** [all] Error 2



More information about the Lunar mailing list