This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Help: Compile problem
- From: "Peter Cai" <newptcai at gmail dot com>
- To: libc-help <libc-help at sourceware dot org>
- Date: Tue, 9 Sep 2008 13:21:05 +0800
- Subject: Help: Compile problem
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=AXr4KdOO69ml0n2CHWpgFNmjAOKiaqtrwU2AD2IuQ1w=; b=EIGKIg4SJYT0Kf1qtpln1BoUv+h8JN6idC4dhFyTGQH6/962lz5nNxLzQ+iE71d7+Z XdMBzJVxhocmwnxB8Y7qrKnF8Jx9IhdiRB9u8ynizReVC7EblGx53XQogeKS4Cc5DXmy 9ciUA6dEQ4vAv+ALf/n8CfBSdte1KfPG9dguA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=igYOA4g3Y8YSSkNjnFntZf1bQibqSJplMjwKAXwULyF3WutR76zWUJhWSzEjGb45ld 86vOTzIrxBDagrloOenM2uzBoSe/Du5ARzKP2ToM4KQvdEsRPLZIKK7ssWOadxxGRcEz GUbuLYJqEIfVqtpJfzx/w6SL9aIgfRO3g6Aeg=
This is the error message.
: /root/tmp/glibc-build/libc_nonshared.a
gcc -nostdlib -nostartfiles -r -o /root/tmp/glibc-build/libc_pic.os \
-Wl,-d -Wl,--whole-archive /root/tmp/glibc-build/libc_pic.a
gcc -shared -Wl,-O1 \
-nostdlib -nostartfiles \
-Wl,-dynamic-linker=/lib/ld-linux.so.2
-Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both \
-Wl,--verbose 2>&1 | \
sed > /root/tmp/glibc-build/shlib.ldsT \
-e '/^=========/,/^=========/!d;/^=========/d' \
-e 's/^.*\.gnu\.hash[ ]*:.*$/ .note.ABI-tag : {
*(.note.ABI-tag) } &/' -e '/^[ ]*\.hash[ ]*:.*$/{h;d;}' -e
'/DATA_SEGMENT_ALIGN/{H;g}' \
-e 's/^.*\*(\.dynbss).*$/& \
PROVIDE(__start___libc_freeres_ptrs = .); \
*(__libc_freeres_ptrs) \
PROVIDE(__stop___libc_freeres_ptrs = .);/'\
-e 's@^.*\*(\.jcr).*$@& \
PROVIDE(__start___libc_subfreeres = .);\
__libc_subfreeres : { *(__libc_subfreeres) }\
PROVIDE(__stop___libc_subfreeres = .);\
PROVIDE(__start___libc_atexit = .);\
__libc_atexit : { *(__libc_atexit) }\
PROVIDE(__stop___libc_atexit = .);\
PROVIDE(__start___libc_thread_subfreeres = .);\
__libc_thread_subfreeres : { *(__libc_thread_subfreeres) }\
PROVIDE(__stop___libc_thread_subfreeres = .);\
/DISCARD/ : { *(.gnu.glibc-stub.*) }@'
mv -f /root/tmp/glibc-build/shlib.ldsT /root/tmp/glibc-build/shlib.lds
gcc -shared -static-libgcc -Wl,-O1 -Wl,-z,defs
-Wl,-dynamic-linker=/lib/ld-linux.so.2 -B/root/tmp/glibc-build/csu/
-Wl,--version-script=/root/tmp/glibc-build/libc.map
-Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro
-Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main
-L/root/tmp/glibc-build -L/root/tmp/glibc-build/math
-L/root/tmp/glibc-build/elf -L/root/tmp/glibc-build/dlfcn
-L/root/tmp/glibc-build/nss -L/root/tmp/glibc-build/nis
-L/root/tmp/glibc-build/rt -L/root/tmp/glibc-build/resolv
-L/root/tmp/glibc-build/crypt -L/root/tmp/glibc-build/nptl
-Wl,-rpath-link=/root/tmp/glibc-build:/root/tmp/glibc-build/math:/root/tmp/glibc-build/elf:/root/tmp/glibc-build/dlfcn:/root/tmp/glibc-build/nss:/root/tmp/glibc-build/nis:/root/tmp/glibc-build/rt:/root/tmp/glibc-build/resolv:/root/tmp/glibc-build/crypt:/root/tmp/glibc-build/nptl
-o /root/tmp/glibc-build/libc.so -T /root/tmp/glibc-build/shlib.lds
/root/tmp/glibc-build/csu/abi-note.o
/root/tmp/glibc-build/elf/soinit.os /root/tmp/glibc-build/libc_pic.os
/root/tmp/glibc-build/elf/sofini.os
/root/tmp/glibc-build/elf/interp.os /root/tmp/glibc-build/elf/ld.so
-lgcc
/root/tmp/glibc-build/libc_pic.os: In function `__libc_fork':
/root/tmp/glibc-2.7/posix/../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:76:
undefined reference to `__sync_bool_compare_and_swap_4'
/root/tmp/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':
/root/tmp/glibc-2.7/nscd/nscd-client.h:320: undefined reference to
`__sync_fetch_and_add_4'
/root/tmp/glibc-build/libc_pic.os: In function `nscd_getpw_r':
/root/tmp/glibc-2.7/nscd/nscd_getpw_r.c:232: undefined reference to
`__sync_fetch_and_add_4'
/root/tmp/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':
/root/tmp/glibc-2.7/nscd/nscd-client.h:320: undefined reference to
`__sync_fetch_and_add_4'
/root/tmp/glibc-build/libc_pic.os: In function `nscd_getgr_r':
/root/tmp/glibc-2.7/nscd/nscd_getgr_r.c:321: undefined reference to
`__sync_fetch_and_add_4'
/root/tmp/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':
/root/tmp/glibc-2.7/nscd/nscd-client.h:320: undefined reference to
`__sync_fetch_and_add_4'
/root/tmp/glibc-build/libc_pic.os:/root/tmp/glibc-2.7/nscd/nscd_gethst_r.c:400:
more undefined references to `__sync_fetch_and_add_4' follow
/root/tmp/glibc-build/libc_pic.os: In function `__nscd_get_map_ref':
/root/tmp/glibc-2.7/nscd/nscd_helper.c:404: undefined reference to
`__sync_val_compare_and_swap_4'
/root/tmp/glibc-build/libc_pic.os: In function `*__GI___libc_freeres':
/root/tmp/glibc-2.7/malloc/set-freeres.c:39: undefined reference to
`__sync_bool_compare_and_swap_4'
collect2: ld èå 1
make[1]: *** [/root/tmp/glibc-build/libc.so] éè 1
make[1]: Leaving directory `/root/tmp/glibc-2.7'
make: *** [all] éè 2
--
çååèåèåååäæåççïåéåäæçåçïåçåäææääèçïæçççïäæååæåçæéèèïåääèåääçéäææçççäæïèæåæääçèåæåäæèçæäåæã