Help: Compile problem

Peter Cai newptcai@gmail.com
Tue Sep 9 05:21:00 GMT 2008


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



--
科幻小说可能在哲学上是天真的,在道德上是简单的,在美学上是有些主观的,或粗糙的,但是就它最好的方面而言,它似乎触及了人类集体梦想的神经中枢,解放出我们人类这具机器中深藏的某些幻想。


More information about the Libc-help mailing list