View previous topic :: View next topic |
Author |
Message |
Hara Apprentice
Joined: 25 Jan 2004 Posts: 162
|
Posted: Mon Dec 20, 2004 4:29 am Post subject: What are linux-headers for? |
|
|
This might be a newb questions but I'm getting bad search results...
Can anyone answer this easily?
I use the 2.6 kernel and am wondering if I should "emerge -C" it _________________ Hara
(Mandrake->Slackware->LFS(Never Finished)->Gentoo) |
|
Back to top |
|
|
wmgoree Apprentice
Joined: 08 Aug 2003 Posts: 246 Location: Alexandria, VA
|
Posted: Mon Dec 20, 2004 5:02 am Post subject: What Linux headers are for |
|
|
Linux headers are a bunch of files that get included when stuff is compiled. They define things like data types and macros so that your C library knows how to talk to your kernel. Do not mess with them without being careful.
Let me repeat that: DO NOT mess with your linux-headers without being careful. As counter-intuitive as it seems, it *doesn't* matter if your headers match your kernel (well, you wouldn't want Linux 1.1 headers with a 2.6 kernel or anything, but 2.4 or even 2.2 headers with a 2.6 kernel is fine and is in fact what Linus says he uses).
All that matters (and this matters A LOT) is that the headers you have in your system are the exact headers your C library was compiled against. If you just emerge -C linux-headers without replacing them with something else, NOTHING (at least, nothing important) will compile.
Any time you change your linux-headers (and that includes the linux26-headers, too), you need to re-emerge glibc immediately. Death and pestilence can follow if you don't.
Hope that made sense! _________________ vi? *snicker* it doesn't even include a mail reader... |
|
Back to top |
|
|
Hara Apprentice
Joined: 25 Jan 2004 Posts: 162
|
Posted: Mon Dec 20, 2004 5:29 am Post subject: |
|
|
That was perfect!
Thanks a lot! _________________ Hara
(Mandrake->Slackware->LFS(Never Finished)->Gentoo) |
|
Back to top |
|
|
|