?
Solved

compile glibc 2.0: what are the object files

Posted on 2012-04-06
4
Medium Priority
?
633 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 2000 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
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…
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.
Suggested Courses
Course of the Month8 days, 21 hours left to enroll

764 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