[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 652
  • Last Modified:

compile glibc 2.0: what are the object files

Hi,

I'm trying to compile glibc 2.0. In the documents it states:
"...The GNU C Library cannot be compiled in the source directory.  You must
build it in a separate build directory.  For example, if you have
unpacked the GNU C Library sources in `/src/gnu/glibc-VERSION', create
a directory `/src/gnu/glibc-build' to put the object files in.  This
allows removing the whole build directory in case an error occurs,
which is the safest way to get a fresh start and should always be done.

   From your object directory, run the shell script `configure' located
at the top level of the source tree.  In the scenario above, you'd type

     $ ../glibc-VERSION/configure ARGS..."

So it says "create
a directory `/src/gnu/glibc-build' to put the object files in".

But what object files do I place in glibc-build?

I downloaded the source from:
git clone git://sourceware.org/git/glibc.git

I'm on Centos 5.3.

Thank you,
Victor
0
Victor Kimura
Asked:
Victor Kimura
  • 2
  • 2
2 Solutions
 
jlevieCommented:
The configure & make will place the object files in the build directory.
0
 
Victor KimuraAuthor Commented:
Oh, so I just create the directory '/src/gnu/glibc-build' and run $ ../glibc-VERSION/configure ARGS..." and the object files will be created automatically, right?
0
 
jlevieCommented:
When you run "../glibc-VERSION/configure ARGS..." the build directory will be populated with what is necessary for you to be able to run "make", which in turn will make the object files.

Be very careful with glibc. The version meant for the OS is critical for correct operation of the system. You can use an earlier or later version, provided that you have it installed someplace where the the system as a whole can't find it. Then any applications that need to use this "wrong" version have to be built specifically to look there or you'll need to use a script wrapper and LD_LIBRARY_PATH.

You can use options to configure to direct your build to a specific location. /opt/glib2 comes to mind as a safe place.
0
 
Victor KimuraAuthor Commented:
Hi jlevie, TY!
0

Featured Post

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now