Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What are linux-headers for?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Hara
Apprentice
Apprentice


Joined: 25 Jan 2004
Posts: 162

PostPosted: Mon Dec 20, 2004 4:29 am    Post subject: What are linux-headers for? Reply with quote

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
View user's profile Send private message
wmgoree
Apprentice
Apprentice


Joined: 08 Aug 2003
Posts: 246
Location: Alexandria, VA

PostPosted: Mon Dec 20, 2004 5:02 am    Post subject: What Linux headers are for Reply with quote

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
View user's profile Send private message
Hara
Apprentice
Apprentice


Joined: 25 Jan 2004
Posts: 162

PostPosted: Mon Dec 20, 2004 5:29 am    Post subject: Reply with quote

That was perfect!

Thanks a lot!
_________________
Hara

(Mandrake->Slackware->LFS(Never Finished)->Gentoo)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum