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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-23-2009, 09:19 AM
|
#1
|
LQ Newbie
Registered: Feb 2009
Posts: 1
Rep:
|
Trouble installing glibc-2.7 on Fedora 2.6.21-1.3194
I am installing glibc on my Fedora box. I have downloaded and untarred the glibc-2.7 tarball, untarred, created a compile subdirectory and run ../configure --prefix=/usr.
I get no error messages from the above.
When I run make however, I get stopped near the end (I assume) of the compile with the error:
"undefined reference _sync_fetch_and_add_4"
"undefined reference _sync_val_compare_and_swap_4"
"undefined reference _sync_bool_compare_and_swap_4"
I'm presuming that I needed to download another library to build. Which one? Or is that not the problem?
|
|
|
02-25-2009, 01:59 PM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
Welcome to LQ.
'glibc' is your system ( together with the kernel )
Changing it will probably make everything unusable. For ever.
http://www.gnu.org/software/libc/resources.html
Quote:
Building glibc is quite tricky and has a number of pitfalls, not the least
of which include :
* Never install over a live system. The connection between the individual
parts of the glibc shared libraries is special. The libc.so shared library
uses private interfaces in ld.so and vice versa. On a live system with
dynamically linked applications if a new libc.so replaces an old one with a
different internal ABI your system will be broken. libpthread.so, libm.so, and
librt.so have similar problems. At a minimum, install into a separate chroot
environment.
* There is a high possibility you will end up creating a different public
ABI. If you were to begin distributing binaries they would at a minimum not
work, and at best create a lot of confusion.
If you find yourself needing to build a customised version of glibc, you are
best to use the framework offered by your distribution (i.e. the rpm or deb
package build facilities).
|
|
|
|
02-26-2009, 05:09 AM
|
#3
|
Member
Registered: Nov 2006
Location: Jalandhar, India
Distribution: openSuSE 11.0, Granular 1.0, Mandriva One 2009, Fedora 11
Posts: 60
Rep:
|
Try installing glibc on your system (if not already installed) using the command:
Code:
sudo yum install glibc
|
|
|
02-26-2009, 11:19 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
*
anurag_bhd : 'glibc' is always installed, glibc is your system .....
|
|
|
02-26-2009, 08:24 PM
|
#5
|
Member
Registered: Nov 2006
Location: Jalandhar, India
Distribution: openSuSE 11.0, Granular 1.0, Mandriva One 2009, Fedora 11
Posts: 60
Rep:
|
Quote:
Originally Posted by knudfl
*
anurag_bhd : 'glibc' is always installed, glibc is your system .....
|
Oops... I meant glibc-devel. Thanks for pointing out, anyway.
Code:
sudo yum install glibc-devel
Last edited by anurag_bhd; 02-26-2009 at 08:26 PM.
|
|
|
04-20-2009, 05:02 PM
|
#6
|
Member
Registered: Aug 2003
Location: USA
Distribution: several Mandrakes
Posts: 34
Rep:
|
The fix for your build problem
I learned by private correspondence that the build problem you describe was fixed by adding to my configuration the specification CFLAGS=" -march=i686 -O2" It is necessary to specify the architecture (whatever yours is) in configuring recent versions of glibc. As I recall, it's needed for versions 2.6 and later. I think you also need to specify a level of optimization in the CFLAGS. At least it doesn't hurt to use -O2, the gcc default. All the other comments in response to your question seem to be irrelevant.
Please note, your reported problem is in building glibc, not installing it. There are other problems with switching out basic system software and keeping things working. Commands like cd failed with errors after I tried installing on a test system. Don't install until you really really know how to do it. Good luck.
Quote:
Originally Posted by im4linux
I am installing glibc on my Fedora box. I have downloaded and untarred the glibc-2.7 tarball, untarred, created a compile subdirectory and run ../configure --prefix=/usr.
I get no error messages from the above.
When I run make however, I get stopped near the end (I assume) of the compile with the error:
"undefined reference _sync_fetch_and_add_4"
"undefined reference _sync_val_compare_and_swap_4"
"undefined reference _sync_bool_compare_and_swap_4"
I'm presuming that I needed to download another library to build. Which one? Or is that not the problem?
|
Last edited by Garlictoast; 04-20-2009 at 05:08 PM.
Reason: clarification
|
|
|
All times are GMT -5. The time now is 11:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|