This is the mail archive of the libc-help@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]

newbie trying to compile libc 2.9 latest


Hell,
I'm trying to compile libc, and seem to be running into
some obstacles:
(heres where I'm at)

/mnt/glib/glibc-build/libc_pic.os: In function `__libc_fork':
/mnt/glib/glibc-20090202/posix/../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:79:
undefined reference to `__sync_bool_compare_and_swap_4'
/mnt/glib/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':
/mnt/glib/glibc-20090202/nscd/nscd-client.h:320: undefined reference
to `__sync_fetch_and_add_4'
/mnt/glib/glibc-build/libc_pic.os: In function `nscd_getpw_r':
/mnt/glib/glibc-20090202/nscd/nscd_getpw_r.c:232: undefined reference
to `__sync_fetch_and_add_4'
/mnt/glib/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':
/mnt/glib/glibc-20090202/nscd/nscd-client.h:320: undefined reference
to `__sync_fetch_and_add_4'
/mnt/glib/glibc-build/libc_pic.os: In function `nscd_getgr_r':
/mnt/glib/glibc-20090202/nscd/nscd_getgr_r.c:321: undefined reference
to `__sync_fetch_and_add_4'
/mnt/glib/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':
/mnt/glib/glibc-20090202/nscd/nscd-client.h:320: undefined reference
to `__sync_fetch_and_add_4'
/mnt/glib/glibc-build/libc_pic.os:/mnt/glib/glibc-20090202/nscd/nscd_gethst_r.c:413:
more undefined references to `__sync_fetch_and_add_4' follow
/mnt/glib/glibc-build/libc_pic.os: In function `__nscd_get_map_ref':
/mnt/glib/glibc-20090202/nscd/nscd_helper.c:431: undefined reference
to `__sync_val_compare_and_swap_4'
/mnt/glib/glibc-build/libc_pic.os: In function `*__GI___libc_freeres':
/mnt/glib/glibc-20090202/malloc/set-freeres.c:39: undefined reference
to `__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status
make[1]: *** [/mnt/glib/glibc-build/libc.so] Error 1
make[1]: Leaving directory `/mnt/glib/glibc-20090202'
make: *** [all] Error 2

here is my command line:
sudo /mnt/glib/glibc-20090202/configure  --prefix=/usr
CC=/usr/local/bin/i686-pc-linux-gnu-gcc-4.4.0 --enable-add-ons
(I know I need more, but not sure what to use);

details:
I'm using a livecd(ubuntu intrepid)
and then mounting /dev/sda1 to /mnt
which will be used for a new system(libc is for the new system);

any info would be appreciated.

regards;
-- 
Justin P. Mattock


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