View previous topic :: View next topic |
Author |
Message |
PieterB Apprentice
Joined: 19 Jan 2004 Posts: 158 Location: Aalter, Belgium
|
Posted: Wed Jan 28, 2004 5:04 pm Post subject: I've done something stupid - removing kernel-headers.... |
|
|
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?
error:
"C preprocessor "/lib/cpp" fails sanity check" _________________ LinuxUser: #310384 |
|
Back to top |
|
|
PieterB Apprentice
Joined: 19 Jan 2004 Posts: 158 Location: Aalter, Belgium
|
Posted: Wed Jan 28, 2004 5:14 pm Post subject: |
|
|
I think emerge linux-headers should help ....
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 |
|
|
tuxian l33t
Joined: 26 Jan 2004 Posts: 766 Location: Austria
|
Posted: Sat Feb 07, 2004 3:08 am Post subject: |
|
|
I exactly did the same.
but emerge kernel-headers solved the problem |
|
Back to top |
|
|
mahir l33t
Joined: 05 Dec 2003 Posts: 725 Location: London
|
Posted: Sat Feb 07, 2004 3:16 am Post subject: erm |
|
|
what about ctrl+alt+Delte
na joke. lol
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 |
|
|
tuxian l33t
Joined: 26 Jan 2004 Posts: 766 Location: Austria
|
Posted: Sat Feb 07, 2004 3:26 am Post subject: Re: erm |
|
|
mahir wrote: | what about ctrl+alt+Delte
na joke. lol
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 |
|
|
PieterB Apprentice
Joined: 19 Jan 2004 Posts: 158 Location: Aalter, Belgium
|
Posted: Sat Feb 07, 2004 7:45 am Post subject: |
|
|
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 |
|
|
slartibartfasz Veteran
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Sat Feb 07, 2004 11:15 am Post subject: |
|
|
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 |
|
|
|