LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-27-2006, 02:44 AM   #1
derrekito
Member
 
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86

Rep: Reputation: 15
Install Kernel Headers


I have been looking around for a way to install Kernel headers and either it doesnt work or they refer to commands for debian (apt-get install), so how can I install a kernel header in a freshly built kernel?
FIXED thank you all!

Last edited by derrekito; 06-27-2006 at 07:12 PM.
 
Old 06-27-2006, 03:00 AM   #2
krussell
Member
 
Registered: Jul 2003
Location: dhaka
Distribution: Slackware 11 (fixed), MEPIS
Posts: 241

Rep: Reputation: 30
hello
well, the kernel headers file for kernel 2.6 in slackware 10.2 disk don't work for issues related to gcc compilier version. i remember after installing them ALSA was off. i suggest that you don't install the headers file, the old ones will do fine for kernel upgrade and compilation.
 
Old 06-27-2006, 03:31 AM   #3
Youri
Member
 
Registered: Oct 2004
Distribution: slamd64-current, slackware-current, clfs 6.1, arch-current, ubuntu dapper
Posts: 144

Rep: Reputation: 15
isnt the gcc compiler just pointing to the kernel source in /usr/src/linux in slackware?so if you followed the "this is how i do it all" topic ya dont need to extra install the headers
 
Old 06-27-2006, 07:17 AM   #4
the_real_absinthe
LQ Newbie
 
Registered: May 2006
Distribution: slackware linux
Posts: 28

Rep: Reputation: 15
as I know the only issue with kernel headers is that you can't use kernel header versions different from the one used to compile glibc: pat compiles glibc against both headers of 2.4.x and 2.6.x shipped with slack. also the given header version is usable with every kernel older as or more than headers (you can use headers of 2.4.31 to compile every kernel of 2.4 series till the 2.4.31!).
instead is not sure that a newer kernel will work (you must try).

Personally I've installed *.c files and headers of 2.6.13 and I've compiled it with the gcc shipped with slack 10.2 and all went right! no problem with glibc or alsa... (I've just used alsa drivers avaible inside the kernel source).

my 2 cents,
M
 
Old 06-27-2006, 09:14 AM   #5
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
The 2.4.31 headers installed in /usr/include (and sub-directories) are the ones to use in Slackware 10.2 for building 2.6 kernels. There is a warning file in the package which explains this.
 
Old 06-27-2006, 09:35 AM   #6
akus
Member
 
Registered: May 2006
Location: Netherlands
Distribution: Slackware64
Posts: 66

Rep: Reputation: 38
Quote:
Originally Posted by Toods
The 2.4.31 headers installed in /usr/include (and sub-directories) are the ones to use in Slackware 10.2 for building 2.6 kernels. There is a warning file in the package which explains this.
Please, could you tell:
1) If I compiled 2.6 kernel, and installed it, will 2.4.31 headers stay
where they were? Installing new kernel doesn't install new kernel headers ?

2) Why do I need 2.4.31 headers to compile 2.6 kernel? I though that kernel source contains headers too, which will be then used.
 
Old 06-27-2006, 09:41 AM   #7
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
Quote:
Originally Posted by akus
Please, could you tell:
1) If I compiled 2.6 kernel, and installed it, will 2.4.31 headers stay
where they were? Installing new kernel doesn't install new kernel headers ?
If you unpack a new kernel source either from the Slackware site or from www.kernel.org, your 2.4.31 headers in /usr/include will remain intact and untouched.
Quote:
2) Why do I need 2.4.31 headers to compile 2.6 kernel? I though that kernel source contains headers too, which will be then used.
I cannot personally explain this, but it has been explained in many places on this forum. If you really need to know, then do some forum searching.
 
Old 06-27-2006, 11:35 AM   #8
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
You don't need 2.4 kernel headers to compile 2.6 kernel (2.6 will use it own headers), but to compile programs.

Some posts about this: http://www.linuxquestions.org/questi...76#post1721076
A more detailed one: http://www.linuxquestions.org/questi...61#post1723561
 
Old 06-27-2006, 02:10 PM   #9
the_real_absinthe
LQ Newbie
 
Registered: May 2006
Distribution: slackware linux
Posts: 28

Rep: Reputation: 15
Quote:
Originally Posted by Toods
The 2.4.31 headers installed in /usr/include (and sub-directories) are the ones to use in Slackware 10.2 for building 2.6 kernels. There is a warning file in the package which explains this.
yes: you are completely right, but reading an old post of linus seems that the only trouble is the version used to compile glibc.. and it seems that pat uses both 2.4 and 2.6... so I really don't understend completely this warning... can you explain the thing better?

M
 
Old 06-27-2006, 07:11 PM   #10
derrekito
Member
 
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86

Original Poster
Rep: Reputation: 15
Well I dunno whats going on in this thread... but hey I fixed the problem, turns out the program was spitting out an error due to a bug wasn't actually having to do with the headers (turns out I had them already ), thanks a bunch though!
 
Old 06-28-2006, 05:47 AM   #11
akus
Member
 
Registered: May 2006
Location: Netherlands
Distribution: Slackware64
Posts: 66

Rep: Reputation: 38
Gbonvehi, thanks for the links on previous discussions about kernel headers!
Really illuminating!
 
  


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
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
install script can not find kernel-headers abtimoteo Linux - Laptop and Netbook 1 05-01-2005 03:29 AM
nVidia Driver won't install because Kernel Headers are missing...Whats that me then? Stevetgn Linux - Newbie 3 08-24-2003 08:27 PM
How to install kernel headers for redhat 9.0? Tommi Linux - General 5 07-02-2003 07:15 AM
How do I install kernel headers jsurgeson Linux - Newbie 4 03-27-2002 05:01 AM

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

All times are GMT -5. The time now is 01:00 AM.

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