LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-28-2009, 09:42 AM   #1
maxwellweb
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
Wink help to compile glibc6


this is my problem. first was with the ./configure --prefix=/tools (and the rest of the parameters) ...
gives the following error
Code:
checking for long double... yes
checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.
and searching I found this solution into the site


Well the ./Configure (all parameter) is successful
The first solution is
use the LD_LIBRARY_PATH=/
Code:
 LD_LIBRARY_PATH=$LFS/tools/lib ./glibc-2.3.6/configure --prefix=/usr --disable-profile --enable-add-ons --enable-kernel=2.6.0 --with-binutils=$LSF/tools/bin --without-gd --with-headers=$LFS/tools/include --without-selinux

good!

the next step is
make, follow the steps and this is my new problem


Code:
           from version.c:20:
../sysdeps/unix/sysv/linux/bits/socket.h:265: warning: C99 inline functions are not supported; using GNU89
In file included from version.c:33:
/media/lfs/sources/glibc-build/csu/version-info.h:2:1: warning: missing terminating " character
In file included from version.c:33:
/media/lfs/sources/glibc-build/csu/version-info.h:2: error: missing terminating " character
/media/lfs/sources/glibc-build/csu/version-info.h:3:1: warning: missing terminating " character
/media/lfs/sources/glibc-build/csu/version-info.h:3: error: missing terminating " character
/media/lfs/sources/glibc-build/csu/version-info.h:4: error: expected ',' or ';' before string constant
make[2]: *** [/media/lfs/sources/glibc-build/csu/version.o] Error 1
make[2]: Leaving directory `/media/lfs/sources/glibc-build/glibc-2.3.6/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/media/lfs/sources/glibc-build/glibc-2.3.6'

what is this error?
please if I can explain with some details would be very grateful


sorry for my English is translated google ..
thanks
 
Old 02-28-2009, 04:47 PM   #2
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
Um... unless I'm missing something, you seem to have several problems here. One is that you're using LFS 6.2, which in and of itself isn't bad, though it is about 2 and a half years old already; have you tried using the latest stable version, 6.4?

Besides that, though, the configure command you included in your post doesn't even match what's in the book and has a few typos/errors:
  • ./glibc-2.3.6/configure is missing a dot at the beginning; it should be ../glibc-2.3.6/configure and you should be running it from within a dedicated build directory, as the book states
  • --prefix=/usr should be --prefix=/tools if you're in Chapter 5, which you seem to be
  • besides misspelling the environment variable as "LSF" in --with-binutils=$LSF/tools/bin you don't actually need it there; assuming you set up the /tools symlink properly in Chapter 4.2, it should be --with-binutils=/tools/bin
  • the same goes for --with-headers=$LFS/tools/include which should be --with-headers=/tools/include

If I were you, I would start over, use LFS 6.4, and make sure you follow the commands listed in the book *exactly* as they are. Copy & pasting is the best way to go to avoid typos.
 
Old 02-28-2009, 06:56 PM   #3
maxwellweb
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Original Poster
Rep: Reputation: 0
thanks.
try again to follow the exact steps of the book ..
 
Old 03-01-2009, 04:00 PM   #4
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
Good luck; just ask if you need any more help. Also, I don't know if you know, but there are (some) translations of the LFS book available that might make the process of building the system easier for you. I'm not sure if there's an up-to-date translation available in your first language, but it's worth taking a look here, down towards the bottom of the page under "Translations."
 
  


Reply



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
[Compile kernel] How to compile/install the modules ? frenchn00b Linux - General 1 09-06-2009 03:18 PM
Installing Titan on FC10 (glibc6 g++ issues) mnorth Linux - Software 12 01-29-2009 07:02 AM
How to install ncurses 4.2 & glibc6 to be used by cmatrix Charles_In_Charge Linux - Software 1 10-20-2008 07:36 PM
glibc6 on slackware 10.2 martpen69 Linux - Software 6 04-19-2006 04:44 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM

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

All times are GMT -5. The time now is 08:27 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