Slackware, which kernel headers should be where?
I've never understood kernel headers well, and the few web explanations weren't great, so I need a few clarifications.
I understand that a compiled kernel provides headers to provide userspace access to kernel functions. Userspace libs (including glibc) and programs compiled against theses headers. Now I believe that the kernel headers that the userspace is compiled against should never change, and that if they are changed, this would necessitate recompiling every lib and binary on the system to be technically correct and safe. Correct? So in the case that I upgrade a distro by a version number (for example, slackware 14.0 to 14.1 via slackpkg), the kernel headers must be updated as well, because all of the prebuilt binaries will have been built against that new distro version kernel header package. Correct? If the above is true, this should mean that any custom software such as slackbuilds packages need to be recompiled. Correct? Also, if I understand correctly, if one builds a new kernel from source, the original older kernel headers should not change, correct? Out of curiosity, how does the linker know how to link system calls to a new and different installed kernel? I'm asking in part because I like to know how things work. More practically, I am upgrading my slackware 14.0 box to 14.1 using slackpkg. I want to make sure I treat the headers appropriately. I always run a custom kernel and like to know that I'm doing things correctly. |
Hello. This document by Eric Hameleers (member of the Slackware team) explains very well how the kernel headers are related to glibc, to the kernel itself and to the software included in a given release of the distribution.
Building a Linux Kernel from source: Slackware kernel-headers package If you are going from 14.0 to 14.1, the upgrade will include a new version of glibc which was compiled using newer kernel headers. For this reason you should upgrade the headers package as well. |
Moderator Response
Moved: This thread is more suitable in <Slackware> and has been moved accordingly to help your thread/question get the exposure it deserves.
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Quote:
Brian |
All times are GMT -5. The time now is 05:41 AM. |