LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-02-2005, 07:49 PM   #1
Krappy
LQ Newbie
 
Registered: Oct 2002
Location: Australia
Distribution: Debian (how much I love apt-get install...)
Posts: 14

Rep: Reputation: 0
kernel headers?


Hi everyone,
I am building a lfs machine using instructions in the book version 6.0.
One thing that puzzles me is that you have two kinds of "kernel headers": one from the linux-libc-headers package (I used linux-libc-headers-2.6.8.1/include/linux and linux-libc-headers-2.6.8.1/include/asm-i386), and another extracted from the linux kernel archive (I used linux-2.6.8.1/include/{asm-i386 | asm-generic | linux} folders).

What are the differences between these headers? Why is it necessary to use both sets? I have a look inside the folders and many file names (*.h) are the same.

Could someone with the knowledge give me some leads? I'd be very grateful.

Thanks a lot,
Krappy
 
Old 05-03-2005, 02:52 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
The linux-libc headers are the ones that your glibc are built against. These should not be changed unless you want to rebuild glibc. The headers that come with the kernel source are used to build modules and the like, and as such, they must change to match your kernel.

PS: this isn't just with LFS, all distros are like this
 
Old 05-04-2005, 07:27 PM   #3
Krappy
LQ Newbie
 
Registered: Oct 2002
Location: Australia
Distribution: Debian (how much I love apt-get install...)
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks bulliver
 
  


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
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
Difference between kernel-headers kernel-source twinkers Debian 2 06-18-2005 11:20 AM
send packets with kernel routing and without kernel messing with headers bassdemon Programming 5 02-08-2005 06:29 PM
where can I get kernel-headers for 2.6.7? darkleaf Linux - Software 2 06-30-2004 04:13 PM
kernel-headers linuxham Linux - Software 4 11-24-2003 03:18 PM

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

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