Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-28-2006, 01:26 PM   #1
LQ Newbie
Registered: Nov 2006
Distribution: Debian Etch
Posts: 22

Rep: Reputation: 15
Updating kernel headers /usr/include/linux


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, 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?

Old 11-28-2006, 01:40 PM   #2
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 176

Rep: Reputation: 50
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.
Old 11-28-2006, 01:42 PM   #3
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
it is recommended to keep the kernel headers
of the kernel glibc was compiled against...
which would be if you are up to date
Old 11-28-2006, 01:44 PM   #4
LQ Newbie
Registered: Nov 2006
Distribution: Debian Etch
Posts: 22

Original Poster
Rep: Reputation: 15
Thank you very much, both of you. I'll leave 'em alone.

Old 11-30-2006, 07:31 AM   #5
Senior Member
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,146
Blog Entries: 5

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
On the 2nd install CD, you'll find this file: extra/linux-

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

-I/usr/include/nptl -L/usr/lib/nptl

Good luck!

It says it all


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel includes at /usr/src/linux/include do not match current kernel. blanny Red Hat 1 03-09-2006 08:53 AM
updating kernel, no '/usr/src/linux' directory? rubbercash SUSE / openSUSE 2 04-30-2005 02:00 PM
/usr/include/linux revsteban Debian 1 02-22-2005 11:41 PM
/usr/include/linux contains? alaios Linux - General 4 11-11-2004 11:34 PM
location of kernel /usr/src/linux/include ??????? Lord Lance Mandriva 7 12-13-2003 08:41 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration