Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 02-08-2009, 01:28 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
Linux from Scratch -> Glibc-2.5.1 error

Hello all,

I am building LFS for a college proyect & have been following the book v6.3, utilizing the livecd, I am also utilizing vmware workstation to build the LFS.

So I am a total linux newbie & have been following the book verbatim, I have encountered an issue when compiling the glibc-2.5.1 (this is step 5.6 on the book), the error is saying is:

"configure:error:GNU libc requires Kernel header files from linux 2.0.10or later to be installed before configuring. The kernel header files are found usually in /usr/include/asm and /usr/include/linux; make sure these directories use files from Linux 2.0.10 or later. This check uses <linux/version.h>, so make sure that file was build correctly when installing the kernel header files. to use the kernel headers not from /usr/include/linux, use the configure option --with-headers."

any ideas?
Old 02-08-2009, 02:00 PM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 15,915

Rep: Reputation: 3024Reputation: 3024Reputation: 3024Reputation: 3024Reputation: 3024Reputation: 3024Reputation: 3024Reputation: 3024Reputation: 3024Reputation: 3024Reputation: 3024
Welcome to LQ.

Suggest : Go back to 5.5.1 And take care that the
headers are installed correctly.

5.5.6. Kernel-headers are in /tools/include/ and
your setup should cause 'glibc' configure to find
them there.
../glibc-2.5.1/configure --prefix=/tools \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.0 --with-binutils=/tools/bin \
--without-gd --with-headers=/tools/include \
Good luck.

Last edited by knudfl; 02-08-2009 at 02:01 PM.
Old 02-08-2009, 05:22 PM   #3
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,191
Blog Entries: 4

Rep: Reputation: 464Reputation: 464Reputation: 464Reputation: 464Reputation: 464
Moved: This thread is more suitable in <Linux-Distributions --> Linux From Scratch> and has been moved accordingly to help your thread/question get the exposure it deserves.



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
Linux from Scratch 'make mrproper' error Sarist Linux From Scratch 7 10-15-2009 08:58 AM
hardened linux from scratch glibc build problem behmjoe Linux From Scratch 2 09-04-2005 03:06 PM
failed make check on:Linux from Scratch - Version SVN-20050524 - 6.11. Glibc-2.3.5 jery_wang2002 Linux From Scratch 3 06-02-2005 03:44 PM

All times are GMT -5. The time now is 03:12 AM.

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