Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] recompile kernel after linux-headers update?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
T-Dawg
n00b
n00b


Joined: 12 Nov 2006
Posts: 51

PostPosted: Sun Dec 03, 2006 2:45 pm    Post subject: [solved] recompile kernel after linux-headers update? Reply with quote

I guess I'm a little unclear about linux-headers. I can understand the need to recompile the glibc after an update but should the kernel be recompiled as well? If so is it because glibc was recompiled against the new linux-headers or because of linux-headers itself. Am a bit confused.

Thanks in advance.


Last edited by T-Dawg on Sun Dec 03, 2006 3:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54850
Location: 56N 3W

PostPosted: Sun Dec 03, 2006 2:52 pm    Post subject: Reply with quote

T-Dawg,

The kernel provides its own headers, so there is no need to rebuild the kernel.
kernel-headers provides a stable set of headers for use by all packages that need to build against kernel headers.
This saves rebuilds because you have updated your kernel and thus got a new set of headers.

Binary distros often install kernel headers at /usr/src/linux. Gentoo can't do that, since the kernel of the day is there.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
T-Dawg
n00b
n00b


Joined: 12 Nov 2006
Posts: 51

PostPosted: Sun Dec 03, 2006 3:03 pm    Post subject: Reply with quote

ah got it. Thanks for the help :)
Back to top
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Sun Dec 03, 2006 3:25 pm    Post subject: Reply with quote

NeddySeagoon wrote:
This saves rebuilds because you have updated your kernel and thus got a new set of headers

But if linux and kernel headrs don't match, wouldn't this be a problem?

As a side question: are linux headers only needed during compile and link time, or also during run-time? thanks

Edit: for some reason, on Sundays I can't type anything that makes sense...


Last edited by batistuta on Sun Dec 03, 2006 3:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54850
Location: 56N 3W

PostPosted: Sun Dec 03, 2006 3:36 pm    Post subject: Reply with quote

batistuta,

Yes - if you build things against headers that don't match your kernel, thats a problem if they make kernel calls directly.
Hence 3rd party modules build against whats at the end of /usr/src/linux.

In general, headers do not change every kernel release.
Providing you build against compatible headers, they need not e identical to the headers in the kernel of the day.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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