SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is likely a dumb question, but hey what's one more
I've elected to temporarily stay on the 5.4.84 kernel due to stability issues with 5.10
I do periodically try the updated kernels but so far usually end up dropping back down after a day or two
Anyway my question is this:
Using the 5.4.84 kernel, should I be upgrading to the current kernel-headers?
(kernel-headers-5.10.17-x86-1.txz) or should I be using 5.4.84 kernel-headers
This is what I would do in your situation. I would use the kernel-headers-5.4.84 package and stop upgrading kernel-headers from -current. For two reasons. First your are using the 5.4 series kernel, not the 5.10 series. Second simply because the kernel-headers version number matched the kernel you plan to use.
The VirtualBox error message from you first post was referring to building kernel modules and for that it needs the kernel source files. The kernel source tree headers only should suffice, but as I previously stated, Slackware doesn't provide you with such a package. The kernel headers Slackware provides are the collection provided by the kernel to be used by the toolchain (compiler), and that's where the original term "kernel headers" comes from: https://www.kernel.org/doc/Documenta...rs_install.txt
Therefore, upgrade kernel-headers only in combination with glibc.
Yeah, this is a confusing situation. I wonder if there's any reason not to merge the kernel-headers Slackware package into the glibc Slackware package.
The kernel-headers needing to be matched to glibc seems to be a relic of older times when the kernel was more volatile. Pat has stated that he's been upgrading the headers for years without matching them to glibc without issue.
Quote:
Originally Posted by volkerdi
I always upgrade the kernel-headers package here. In theory, it could cause issues, but I've not run into any doing this for many years.
Quote:
Originally Posted by volkerdi
My recollection is that the warning was issued either as the kernel was going from 2.2 to 2.4, or from 2.4 to 2.6, and was a good warning then. Every kernel since 2.6 has basically followed a similar structure and I've encountered no incompatibilities using the kernel-headers from whatever kernel is installed, regardless of whether that's what glibc was compiled against.
That being said, I'd probably just stick with the kernel headers package of the kernel version you have installed.
I wonder if there's any reason not to merge the kernel-headers Slackware package into the glibc Slackware package.
Many distro do it that way, and it would be my preference.
Newer kernels can run with older headers and glibc built against those headers. This works because of Linus' rule #1 of kernel development: "We don't break userspace".
Older kernel with newer headers and glibc built against them could potentially hit incompatibilities. In practice you might get away with it, but it's best avoided.
I wouldn't feel comfortable running 5.10 headers and glibc, on top of a 5.4 kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.