This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug faq/10464] New: compile error


when i compiled glibc 2.10.1 on my system(redflag desktop 6 sp2,linux kernel 
2.6.30.3 or 2.6.27,gcc 4.4.1),it said error.the error message was:
gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-
linker=/rj/glibc/lib/ld-linux.so.2  -B/rjaz/glibcpz/csu/  -Wl,--version-
script=/rjaz/glibcpz/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-
z,relro -Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main -
L/rjaz/glibcpz -L/rjaz/glibcpz/math -L/rjaz/glibcpz/elf -L/rjaz/glibcpz/dlfcn -
L/rjaz/glibcpz/nss -L/rjaz/glibcpz/nis -L/rjaz/glibcpz/rt -
L/rjaz/glibcpz/resolv -L/rjaz/glibcpz/crypt -L/rjaz/glibcpz/nptl -Wl,-rpath-
link=/rjaz/glibcpz:/rjaz/glibcpz/math:/rjaz/glibcpz/elf:/rjaz/glibcpz/dlfcn:/rja
z/glibcpz/nss:/rjaz/glibcpz/nis:/rjaz/glibcpz/rt:/rjaz/glibcpz/resolv:/rjaz/glib
cpz/crypt:/rjaz/glibcpz/nptl -o /rjaz/glibcpz/libc.so -
T /rjaz/glibcpz/shlib.lds /rjaz/glibcpz/csu/abi-
note.o /rjaz/glibcpz/elf/soinit.os /rjaz/glibcpz/libc_pic.os /rjaz/glibcpz/elf/s
ofini.os /rjaz/glibcpz/elf/interp.os /rjaz/glibcpz/elf/ld.so -lgcc
/rjaz/glibcpz/libc_pic.os: In function `__libc_fork':
/rjaz/glibc-2.10.1/posix/../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:79: 
undefined reference to `__sync_bool_compare_and_swap_4'
/rjaz/glibcpz/libc_pic.os: In function `__nscd_drop_map_ref':
/rjaz/glibc-2.10.1/nscd/nscd-client.h:320: undefined reference to 
`__sync_fetch_and_add_4'
/rjaz/glibcpz/libc_pic.os: In function `nscd_getpw_r':
/rjaz/glibc-2.10.1/nscd/nscd_getpw_r.c:232: undefined reference to 
`__sync_fetch_and_add_4'
/rjaz/glibcpz/libc_pic.os: In function `__nscd_drop_map_ref':
/rjaz/glibc-2.10.1/nscd/nscd-client.h:320: undefined reference to 
`__sync_fetch_and_add_4'
/rjaz/glibcpz/libc_pic.os: In function `nscd_getgr_r':
/rjaz/glibc-2.10.1/nscd/nscd_getgr_r.c:321: undefined reference to 
`__sync_fetch_and_add_4'
/rjaz/glibcpz/libc_pic.os: In function `__nscd_drop_map_ref':
/rjaz/glibc-2.10.1/nscd/nscd-client.h:320: undefined reference to 
`__sync_fetch_and_add_4'
/rjaz/glibcpz/libc_pic.os:/rjaz/glibc-2.10.1/nscd/nscd_gethst_r.c:413: more 
undefined references to `__sync_fetch_and_add_4' follow
/rjaz/glibcpz/libc_pic.os: In function `__nscd_get_map_ref':
/rjaz/glibc-2.10.1/nscd/nscd_helper.c:432: undefined reference to 
`__sync_val_compare_and_swap_4'
/rjaz/glibcpz/libc_pic.os: In function `*__GI___libc_freeres':
/rjaz/glibc-2.10.1/malloc/set-freeres.c:39: undefined reference to 
`__sync_bool_compare_and_swap_4'
collect2: ld return 1
make[1]: *** [/rjaz/glibcpz/libc.so] error 1
make[1]: Leaving directory `/rjaz/glibc-2.10.1'
make: *** [all] error 2

-- 
           Summary: compile error
           Product: glibc
           Version: 2.10
            Status: NEW
          Severity: normal
          Priority: P2
         Component: faq
        AssignedTo: aj at suse dot de
        ReportedBy: yangshaoxing at 163 dot com
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: redflag desktop 6 sp2,linux kernel 2.6.30.3 or
                    2.6.27,gcc 4.4.1
  GCC host triplet: redflag desktop 6 sp2,linux kernel 2.6.30.3 or
                    2.6.27,gcc 4.4.1
GCC target triplet: redflag desktop 6 sp2,linux kernel 2.6.30.3 or
                    2.6.27,gcc 4.4.1


http://sourceware.org/bugzilla/show_bug.cgi?id=10464

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]