Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I've done something stupid - removing kernel-headers....
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
PieterB
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 158
Location: Aalter, Belgium

PostPosted: Wed Jan 28, 2004 5:04 pm    Post subject: I've done something stupid - removing kernel-headers.... Reply with quote

Because my 'kernel-headers' are 2.4.21 and I use gentoo-dev-sources (2.6.1) I removed these.....

But now, emerge starts downloading buit does not build packages anymore :-( how can i restore my kernel-headers so I can compile again?
:oops:

error:
"C preprocessor "/lib/cpp" fails sanity check"
_________________
LinuxUser: #310384
Back to top
View user's profile Send private message
PieterB
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 158
Location: Aalter, Belgium

PostPosted: Wed Jan 28, 2004 5:14 pm    Post subject: Reply with quote

:oops:

I think emerge linux-headers should help .... :roll:

I will test it after a reboot... ;-)

So to all 'noobs': don't remove linux-headers! you'll need it ....
_________________
LinuxUser: #310384
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 766
Location: Austria

PostPosted: Sat Feb 07, 2004 3:08 am    Post subject: Reply with quote

I exactly did the same.
but emerge kernel-headers solved the problem
Back to top
View user's profile Send private message
mahir
l33t
l33t


Joined: 05 Dec 2003
Posts: 725
Location: London

PostPosted: Sat Feb 07, 2004 3:16 am    Post subject: erm Reply with quote

what about ctrl+alt+Delte

na joke. lol :D

erm
kernel headers?
how do u remove them?
i dnot get it..

arent they part of the kernel?
_________________
"wa ma tawfiqi illah billah"
Mahir Sayar
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 766
Location: Austria

PostPosted: Sat Feb 07, 2004 3:26 am    Post subject: Re: erm Reply with quote

mahir wrote:
what about ctrl+alt+Delte

na joke. lol :D

erm
kernel headers?
how do u remove them?
i dnot get it..

arent they part of the kernel?


No, i cannot imagine that they are part of the kernel.

it seems that gcc needs them and that they are independent of the kernel version.

the content of the kernel-headers are include-files (under /usr/include) need by gcc.
(i did emerge unmerge kernel-headers)
Back to top
View user's profile Send private message
PieterB
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 158
Location: Aalter, Belgium

PostPosted: Sat Feb 07, 2004 7:45 am    Post subject: Reply with quote

Indeed, kernel-headers are not part of the kernel.

Emerge needs them to compile the ebuilds, I understand now.
Some ebuilds don't compile correctly on the new 2.6-kernel and so on, and therefore gentoo is using '(kernel-)headers'. It's a good method to hold gentoo compliant.

Greetings Pieter
_________________
LinuxUser: #310384
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Sat Feb 07, 2004 11:15 am    Post subject: Reply with quote

kernel headers are the glue code that informs gcc about the abilities of the kernel - whenever u change them u *should* recompile glibc
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
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