Solved

compile glibc 2.0: what are the object files

Posted on 2012-04-06
4
594 Views
Last Modified: 2012-04-13
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
Comment
Question by:Victor Kimura
  • 2
  • 2
4 Comments
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 500 total points
ID: 37819192
The configure & make will place the object files in the build directory.
0
 

Author Comment

by:Victor Kimura
ID: 37821396
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
 
LVL 40

Accepted Solution

by:
jlevie earned 500 total points
ID: 37821510
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
 

Author Closing Comment

by:Victor Kimura
ID: 37845326
Hi jlevie, TY!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now