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? |
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:
|
Try installing glibc on your system (if not already installed) using the command:
Code:
sudo yum install glibc |
*
anurag_bhd : 'glibc' is always installed, glibc is your system ..... |
Quote:
Code:
sudo yum install glibc-devel |
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:
|
All times are GMT -5. The time now is 02:34 AM. |