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.
Is it necessary to upgrade the kernel headers (/usr/include/linux) when going from the 2.4 kernel to the 2.6? Silly me tried to remove the kernel-header-2.4 package (figured it was safe since I'm using 2.6.17.13), and, you guessed it, I couldn't compile the kernel/modules anymore.
I reinstalled the package and everything is fine, but I just can't remember ever having to manually upgrade the headers from my past experience (ok, I've been away a couple years -- maybe things changed, or I just forgot).
If I have to upgrade what is the best way to go about it?
No, you don't have to replace the headers when upgrading your kernel from 2.4 to 2.6.
In fact, this is a bad idea since all your system libs and programs are originally built with those headers. Changing headers won't make most of that stuff stop working but it will make compiling new programs fail in some very interesting ways. I've done this before I knew better. It sounds like you re-installed the headers just fine. I say leave them be.
On the 2nd install CD, you'll find this file: extra/linux-2.6.17.13/kernel-headers.WARNING
Quote:
This package of 2.6.x based /usr/include/linux and /usr/include/asm headers
is being provided by request for some people who need it in order to compile
ASDL modem drivers for 2.6.x. As a general rule, installing kernel headers
that are newer than the kernel glibc was compiled with *may* cause problems,
so unless you need these for a particular reason it's best to stick with the
2.4.x kernel-headers package for now.
Note -- if you compile with NPTL then you might want to use these headers,
and glibc's NPTL was compiled using 2.6 headers, so all should be well.
In that case, specify using NPTL libs and headers with these compile
options:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.