LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-01-2009, 06:56 AM   #1
tanmoy_tiger
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
Red face problem in installing glibc 2.7


i am using opensuse 10.2.i want to install glibc-2.7 with add-ons port,libidn,nptl but during make i get following error:
glibc-2.7/compile/nptl -o /root/glibc-2.7/compile/libc.so -T /root/glibc-2.7/compile/shlib.lds /root/glibc-2.7/compile/csu/abi-note.o /root/glibc-2.7/compile/elf/soinit.os /root/glibc-2.7/compile/libc_pic.os /root/glibc-2.7/compile/elf/sofini.os /root/glibc-2.7/compile/elf/interp.os /root/glibc-2.7/compile/elf/ld.so -lgcc
/root/glibc-2.7/compile/libc_pic.os: In function `__libc_fork':
/root/glibc-2.7/posix/../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:76: undefined reference to `__sync_bool_compare_and_swap_4'
/root/glibc-2.7/compile/libc_pic.os: In function `__nscd_drop_map_ref':
/root/glibc-2.7/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'
/root/glibc-2.7/compile/libc_pic.os: In function `nscd_getpw_r':
/root/glibc-2.7/nscd/nscd_getpw_r.c:232: undefined reference to `__sync_fetch_and_add_4'
/root/glibc-2.7/compile/libc_pic.os: In function `__nscd_drop_map_ref':
/root/glibc-2.7/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'
/root/glibc-2.7/compile/libc_pic.os: In function `nscd_getgr_r':
/root/glibc-2.7/nscd/nscd_getgr_r.c:321: undefined reference to `__sync_fetch_and_add_4'
/root/glibc-2.7/compile/libc_pic.os: In function `__nscd_drop_map_ref':
/root/glibc-2.7/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'
/root/glibc-2.7/compile/libc_pic.os:/root/glibc-2.7/nscd/nscd_gethst_r.c:400: more undefined references to `__sync_fetch_and_add_4' follow
/root/glibc-2.7/compile/libc_pic.os: In function `__nscd_get_map_ref':
/root/glibc-2.7/nscd/nscd_helper.c:404: undefined reference to `__sync_val_compare_and_swap_4'
/root/glibc-2.7/compile/libc_pic.os: In function `*__GI___libc_freeres':
/root/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]: *** [/root/glibc-2.7/compile/libc.so] Error 1
make[1]: Leaving directory `/root/glibc-2.7'
make: *** [all] Error 2
linux-exhh:~/glibc-2.7/compile #

What should i do?mail me at tanmoy.justu@gmail.com
 
Old 01-02-2009, 04:17 PM   #2
jiobo
Member
 
Registered: Nov 2008
Posts: 180

Rep: Reputation: 36
Have you checked your build environment to see that you satisfy dependencies?
 
Old 04-20-2009, 05:22 PM   #3
Garlictoast
Member
 
Registered: Aug 2003
Location: USA
Distribution: several Mandrakes
Posts: 34

Rep: Reputation: 15
Try this

Your problem is with building, not installing. There are other problems with actually installing that I don't know how to solve yet. But you may be able to get a good build by adding CFLAGS=" -march=i386 -O2" to your configure command---or whatever architecture you have in the -march= specification. I think this has been required since glibc version 2.6. Omitting the architecture produces errors like those you posted, though I don't know for sure if this will solve your build problem


Quote:
Originally Posted by tanmoy_tiger View Post
i am using opensuse 10.2.i want to install glibc-2.7 with add-ons port,libidn,nptl but during make i get following error:
glibc-2.7/compile/nptl -o /root/glibc-2.7/compile/libc.so -T /root/glibc-2.7/compile/shlib.lds /root/glibc-2.7/compile/csu/abi-note.o /root/glibc-2.7/compile/elf/soinit.os /root/glibc-2.7/compile/libc_pic.os /root/glibc-2.7/compile/elf/sofini.os /root/glibc-2.7/compile/elf/interp.os /root/glibc-2.7/compile/elf/ld.so -lgcc
/root/glibc-2.7/compile/libc_pic.os: In function `__libc_fork':
/root/glibc-2.7/posix/../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:76: undefined reference to `__sync_bool_compare_and_swap_4'
/root/glibc-2.7/compile/libc_pic.os: In function `__nscd_drop_map_ref':
/root/glibc-2.7/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'
/root/glibc-2.7/compile/libc_pic.os: In function `nscd_getpw_r':
/root/glibc-2.7/nscd/nscd_getpw_r.c:232: undefined reference to `__sync_fetch_and_add_4'
/root/glibc-2.7/compile/libc_pic.os: In function `__nscd_drop_map_ref':
/root/glibc-2.7/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'
/root/glibc-2.7/compile/libc_pic.os: In function `nscd_getgr_r':
/root/glibc-2.7/nscd/nscd_getgr_r.c:321: undefined reference to `__sync_fetch_and_add_4'
/root/glibc-2.7/compile/libc_pic.os: In function `__nscd_drop_map_ref':
/root/glibc-2.7/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'
/root/glibc-2.7/compile/libc_pic.os:/root/glibc-2.7/nscd/nscd_gethst_r.c:400: more undefined references to `__sync_fetch_and_add_4' follow
/root/glibc-2.7/compile/libc_pic.os: In function `__nscd_get_map_ref':
/root/glibc-2.7/nscd/nscd_helper.c:404: undefined reference to `__sync_val_compare_and_swap_4'
/root/glibc-2.7/compile/libc_pic.os: In function `*__GI___libc_freeres':
/root/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]: *** [/root/glibc-2.7/compile/libc.so] Error 1
make[1]: Leaving directory `/root/glibc-2.7'
make: *** [all] Error 2
linux-exhh:~/glibc-2.7/compile #

What should i do?mail me at tanmoy.justu@gmail.com
 
Old 08-03-2011, 12:45 PM   #4
dewilso4
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
Good call, Garlictoast. However, glibc2.7 or later won't build with -march=i386, but setting -march=i486 or higher will allow the build to proceed. For my environment, I did the following:
Code:
./configure -prefix=/usr CFLAGS="-march=i686 -O2"
followed, of course, by
Code:
make && make install
 
  


Reply

Tags
glibc, installing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
problem installing glibc curt22 Linux From Scratch 1 06-15-2008 12:01 PM
Having Problem in Installing glibc 2.3.5 Big D@ddy Linux - Software 2 04-18-2005 03:05 AM
problem installing glibc in ch.6 davemar Linux From Scratch 3 03-23-2004 05:41 PM
Problem installing glibc...need help tarballed Linux - General 1 01-27-2003 11:42 PM


All times are GMT -5. The time now is 10:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration