LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-04-2004, 01:50 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
glibc page 68


Hi i am tryingto understand where to compile this packet.
I read from the manual :... "you must cd into the glibc-2.3.2 directory and unpack Glibc-linuxthreads in that directory, not the direcoty you usually unpack all the sources"

So i must create a new directory with name glibc-2.3.2 at the same level with my sources directory?

f
 
Old 05-05-2004, 06:32 AM   #2
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Rep: Reputation: 15
Hi,

No, what the manual says to you is you have to unpack first the glibc package and then copy the glibc-linuxthreads-2.3.2.tar.gz/bz2 in the glibc-2.3.2 directory and then you enter the directoyry, unpack the linuxthreads package, delete it (just for not wasting disk space having a package in two different locations) and you're done... you'll find yourself with the glibc 2.3.2 source tree plus linuxthreads... that's what the manual tries to say to you...

Hope this helps you

Julio
 
Old 05-05-2004, 06:40 AM   #3
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Rep: Reputation: 15
Oops, forgotten something important...

If you want to compile Glibc, and if you're using, of course, the LFS book (regardless of the version) you must compile it in a separate directory from the sources...

So after you're done with the linuxthreads add-on procedure you find yourself in the directory level $LFS/sources/glibc-2.3.2 (that's /mnt/lfs/sources/glibc-2.3.2 or the name you choose to use, in my case was dolphin)

then, you must create a directory for compiling glibc (in my case, I just followed the book instructions), so you can do the following (command line prompt adjusted for my case):

dolphin@linuxbox[glibc-2.3.2] mkdir ../glibc-build
dolphin@linuxbox[glibc-2.3.2] cd ../glibc-build

and then you can continue with the book:

dolphin@linuxbox[glibc-build] ../glibc-2.3.2/configure --prefix=/tools ... and so on

Hope this helps

Julio
 
Old 05-05-2004, 07:24 AM   #4
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
thx

dolphin@linuxbox[glibc-2.3.2] mkdir ../glibc-buil
dolphin@linuxbox[glibc-2.3.2] cd ../glibc-build

thx...do u think if it is a problem to create the libc-build directory at the ../../glibc
(The directory willbe created at the same level with sources dir...)
 
Old 05-05-2004, 08:44 AM   #5
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Rep: Reputation: 15
Hi,

I'm not really sure, what the book suggest us is to build glibc outside the source tree, so as the book suggests I have my packages at $LFS/sources (in my case, $DOLPHIN/sources) and in that directory is where i create the glibc-build directory... just to follow the book instructions...

Julio
 
Old 05-05-2004, 10:10 AM   #6
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
so

So everything must be compiled in the $LFS/sources dir?
 
Old 05-05-2004, 11:05 AM   #7
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Rep: Reputation: 15
Well, as I followed the steps given by the book and following them takes you to the $LFS/sources directory to unpack the packages, i could say 'yes', but I suppose you could compile the packages in another directory, although I'm not sure and don't take what I've said right now as completely true. In my personal experience, it worked very well for me that way, that's making the directories in the $LFS/sources directory, so if i have to compile glibc i'll have a directory called glibc-build whose absolute location it's going to be $LFS/sources/glibc-build and so on...

That schema (that's the one suggested by the book) worked fine for me, with other kind of packages like bison, flex, perl, you don't have to make a separate directory, you just compile them in the directories they respectively create when you unpack them

Julio
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 07:26 AM
ncsd, glibc, and glibc-common conflicts during LAMP install beaker911 Linux - Software 0 12-30-2004 02:31 PM
glibc 2.3.2 => glibc 2.3.3 causes bash & syslog issues natetheros Red Hat 1 09-27-2004 01:35 AM
RH & HP4050N PCL - page, pause, page, pause, page andguent Linux - Hardware 0 11-10-2003 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration