Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6 kernel installed, but /usr/include/linux/* is from 2.4?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ehsharp
n00b
n00b


Joined: 01 Mar 2005
Posts: 1

PostPosted: Tue Mar 01, 2005 3:23 pm    Post subject: 2.6 kernel installed, but /usr/include/linux/* is from 2.4? Reply with quote

During the install, I chose a 2.6 kernel.

uname -a

Code:
Linux gimp 2.6.10-gentoo-r6 #3 Fri Feb 18 10:25:47 AST 2005 i686 Celeron (Coppermine) GenuineIntel GNU/Linux


Yet, when I did an emerge --update --deep --ask world this morning, I was told :

Code:
[ebuild     U ] sys-kernel/linux-headers-2.4.22-r1 [2.4.21-r1]


And upon further investigation, using equery b /usr/include/linux/kernel.h

Code:
sys-kernel/linux-headers-2.4.21-r1 (/usr/include/linux/kernel.h)


Now, I am a bit confused here. Shouldn't future applications be compiling against my 2.6 kernel? I am considering emerge --unmerge linux-headers, and then soft linking /usr/source/linux/include/linux /usr/include/linux.

So, what exactly is going on here; why do I have 2 versions of the kernel headers floating around? I'd like to only have to deal with the 2.6 kernel, which is what I chose when I originally installed.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2969

PostPosted: Tue Mar 01, 2005 3:27 pm    Post subject: Reply with quote

Just emerge -C linux-headers and emerge linux26-headers.

Do not mess with symlinks between /usr/src/linux/* and /usr/include/linux, unless you have a habit of breaking your system. ;)

If you are like most people, there is no need to insist on having everything compile against linux 2.6 headers.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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