Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

glibc compile error 2

Status
Not open for further replies.

XofCDe3rd

Technical User
Nov 9, 2003
120
Hello,

I am trying to compile glibc-2.3.5 on a red hat 8.0 box.....

Following instructions on a how to which I picked up it should be straight foward:

I managed to compile binutils,coreutils,tar n bash wit no hicups but it is just the compiling of glibc itself.

I picked up glibc plus its coressponding linuxthreads addon from ftp.gnu.org....from the instructions I see it unpacks glibc-version then copy and unpack glibc-linuxthreads-version into the glibc-version dir.

when is run a configure it sez
configure error: you must configure in a seperate build directory.

Any one able to help

Oh instead of going through all this hassel I could have just installed Fedora Core 4 and it COULD! have all the updates in it.....but wot will I learn from it.

linux-newbie

Seeking Solice in a true operating system.
 
I assume you unpacked it in /usr/src/glibc.
Now you create /usr/build/glibc.

In /usr/build/glibc you issue the command:
Code:
make -f ../../src/glibc

make a 'make clean' in the src/glibc - directory first.



seeking a job as java-programmer in Berlin:
 
Before configuring and making stuff, it helps to read the included README and and INSTALL files for your pacakge. This is especially true for a package that is to be the core of the operating system, such as glibc.

The glibc README doesn't have much info, but the INSTALL and FAQ are good to read. They're a bit lengthy, but you should at least skim them. If you had, you'd know to build glibc in a directory other than the one containing the sources.

Your error message also tells you the same thing:
you must configure in a seperate build directory.


The command in the previous post is incorrect since you have to configure before running make. Read the INSTALL file for instructions.


I managed to compile binutils,coreutils,tar n bash wit no hicups but it is just the compiling of glibc itself.
Sounds like you're trying to build a complete system. If you build things (especially glibc, binutils, and gcc) in the wrong order or in the wrong combinations, they won't work together.

You may want to check out a site like or to see how they go about the same task.
 
Heh heh.....yep ChipperMDW I know I am using a system that is not supported anymore(RH8)...

But thats wot make this fun....

thank you both for your help and ta for the links they have come in very handy

thanks and thanks again

linux newbie
 
I remembered something about the last time I compiled glibc that might save you some trouble:

The newest glibc releases have issues compiling on pre 2.6 kernels. I don't remember the exact cause, and it may be only if you use NPTL.

Anyway, if you're still using the kernel that came with your Red Hat, be prepared to build a 2.6 kernel and boot into Red Hat with it just so you can build glibc.
 
Thank you very much!!!!.....this will come in handy

so I should compile the 2.6 kernel first??? I will anyway just to save the crying game....

 
I would. Just so it's handy if you run into the same problem I did.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top