Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

kernel-headers [Solved]

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
aCOSwt
Bodhisattva
Bodhisattva
Posts: 2537
Joined: Fri Oct 19, 2007 1:48 pm
Location: Hilbert space

kernel-headers [Solved]

  • Quote

Post by aCOSwt » Wed Feb 24, 2010 5:17 pm

Hello,

I must say I know nothing at all about what the kernel-headers package is made of.
And what it is needed for.
There must be something on the web about it but I did not manage to find it.

I just managed to find posts instructing to rebuild the glibc after upgrading. But they are quite old.

- Does this thing actually needs to be upgraded ? (on a system I am happy with, I mean),
- Is it normal that its version does not match kernel's one ?
- what are the things to do after upgrading ? Rebuild glibc ? rebuild kernel ?...

Well... I am a bit... lost. :?
Last edited by aCOSwt on Fri Feb 26, 2010 2:54 pm, edited 1 time in total.
Top
carcajou
Apprentice
Apprentice
User avatar
Posts: 256
Joined: Tue Jun 10, 2008 6:30 pm

Re: kernel-headers

  • Quote

Post by carcajou » Wed Feb 24, 2010 6:16 pm

aCOSwt wrote: - Does this thing actually needs to be upgraded ? (on a system I am happy with, I mean),
Since newer version is moved to stable branch it is quite safe to upgrade. You don't have to upgrade of course, I highly doubt you will ran into problems, but it is good idea since it is paineless.
- Is it normal that its version does not match kernel's one ?
Yes, AFAIK it always differs from kernel version except if you decide do build headers from your current kernel (never had need to do something like that).
- what are the things to do after upgrading ? Rebuild glibc ? rebuild kernel ?...
Just rebuild glibc and you are good to go. :wink:
Top
jkagen
n00b
n00b
Posts: 42
Joined: Tue Jul 29, 2008 2:01 am

  • Quote

Post by jkagen » Wed Feb 24, 2010 6:18 pm

If you are planning on updating your system in the future you'd better follow the recommendation.
Run
equery linux-headers d
to see which packages are depending on the linux-headers and should be rebuilt. The glibc is going to be
one of the packages.
As said in the previous answer, it is quite safe, though lengthy.
Then just run revdep-rebuild. You do not need to rebuild the kernel.
Top
carcajou
Apprentice
Apprentice
User avatar
Posts: 256
Joined: Tue Jun 10, 2008 6:30 pm

  • Quote

Post by carcajou » Wed Feb 24, 2010 6:29 pm

jkagen wrote: Run
equery linux-headers d
to see which packages are depending on the linux-headers and should be rebuilt. The glibc is going to be
one of the packages.
Is it really required to rebuild all packages that have dependency on linux-headers?

This is Portage output after headers upgrade:
Kernel headers are usually only used when recompiling your system libc, as
such, following the installation of newer headers, it is advised that you
re-merge your system libc.
Failure to do so will cause your system libc to not make use of newer
features present in the updated kernel headers.
It only mentions libc... :?
Top
jkagen
n00b
n00b
Posts: 42
Joined: Tue Jul 29, 2008 2:01 am

  • Quote

Post by jkagen » Wed Feb 24, 2010 6:41 pm

The most important is glibc. Going through equery is the way I did it
but I think rebuilding the glibc is fine enough.
After you rebuild it I would run revdep-rebuild, just to be sure that it works fine
Top
carcajou
Apprentice
Apprentice
User avatar
Posts: 256
Joined: Tue Jun 10, 2008 6:30 pm

  • Quote

Post by carcajou » Wed Feb 24, 2010 6:51 pm

Thank you for your answer, jkagen. It is probably good practice. I see there are lots of packages depending on linux-headers (including sysvinit, util-linux and baselayout), however I didn't notice anything strange after headers upgrade.
Top
jkagen
n00b
n00b
Posts: 42
Joined: Tue Jul 29, 2008 2:01 am

  • Quote

Post by jkagen » Wed Feb 24, 2010 6:58 pm

You're welcome. Good that the rebuild went without any problem.
Top
aCOSwt
Bodhisattva
Bodhisattva
Posts: 2537
Joined: Fri Oct 19, 2007 1:48 pm
Location: Hilbert space

  • Quote

Post by aCOSwt » Fri Feb 26, 2010 9:40 am

Thank you jkagen and kukibi for your help.

Your answers however drive me to even more questions... :?
jkagen wrote:
equery linux-headers d
to see which packages are depending on the linux-headers and should be rebuilt.
Believing in some typo error, I ran
equery depends -d kernel-headers

And obtained : No package found matching kernel-headers.
I then tried with linux-headers and actually obtained a list of packages amongst which the libc.

What are those linux-headers... In what does this relate to kernel-headers ?
Top
carcajou
Apprentice
Apprentice
User avatar
Posts: 256
Joined: Tue Jun 10, 2008 6:30 pm

  • Quote

Post by carcajou » Fri Feb 26, 2010 2:32 pm

Package name is linux-headers. There are no kernel-headers in Portage.

Code: Select all

equery d linux-headers
I'm not sure why it is named linux-headers instead of kernel-headers, but I think it has something to do with Gentoo/Alt (Gentoo on alternative platforms), practical reasons probably.
Top
aCOSwt
Bodhisattva
Bodhisattva
Posts: 2537
Joined: Fri Oct 19, 2007 1:48 pm
Location: Hilbert space

  • Quote

Post by aCOSwt » Fri Feb 26, 2010 2:53 pm

kukibl wrote:Package name is linux-headers. There are no kernel-headers in Portage.
My bad !
Great thanks for all your explanations kubiki
Top
jkagen
n00b
n00b
Posts: 42
Joined: Tue Jul 29, 2008 2:01 am

  • Quote

Post by jkagen » Fri Feb 26, 2010 10:15 pm

I guess there are headers files which you need during kernel and models compilation, they define structures and symbols.
Top
Post Reply

11 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic