LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


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

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


Hi.

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?


Thanks,
Mike
 
Old 11-28-2006, 12:40 PM   #2
Hendronicus
Member
 
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, 12:42 PM   #3
kodon
Member
 
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 2.4.33.3 if you are up to date
 
Old 11-28-2006, 12:44 PM   #4
mhansen
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.


Thanks,
Mike
 
Old 11-30-2006, 06:31 AM   #5
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,159
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
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:

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

Good luck!

-P.
It says it all
 
  


Reply



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 07:53 AM
updating kernel, no '/usr/src/linux' directory? rubbercash SUSE / openSUSE 2 04-30-2005 01:00 PM
/usr/include/linux revsteban Debian 1 02-22-2005 10:41 PM
/usr/include/linux contains? alaios Linux - General 4 11-11-2004 10:34 PM
location of kernel /usr/src/linux/include ??????? Lord Lance Mandriva 7 12-13-2003 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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