Solved

compile glibc 2.0: what are the object files

Posted on 2012-04-06
4
610 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
windows 7 starter missing password 21 99
CENTOS DHCP Server / PXE/TFTP 14 216
Redhat upgrade 1 48
How to swap or extend CentOS partition 11 30
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

733 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