Solved

compile glibc 2.0: what are the object files

Posted on 2012-04-06
4
603 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't see Ubuntu desktop on KVM switch unless I reboot the PC 22 58
Use CRON to save a copy of an open file 1 39
expectj telnet failing 5 35
AWS ELB 5 76
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…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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.

785 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