Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-27-2006, 03:44 AM
|
#1
|
Member
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86
Rep:
|
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 08:12 PM.
|
|
|
06-27-2006, 04:00 AM
|
#2
|
Member
Registered: Jul 2003
Location: dhaka
Distribution: Slackware 11 (fixed), MEPIS
Posts: 241
Rep:
|
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.
|
|
|
06-27-2006, 04:31 AM
|
#3
|
Member
Registered: Oct 2004
Distribution: slamd64-current, slackware-current, clfs 6.1, arch-current, ubuntu dapper
Posts: 144
Rep:
|
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
|
|
|
06-27-2006, 08:17 AM
|
#4
|
LQ Newbie
Registered: May 2006
Distribution: slackware linux
Posts: 28
Rep:
|
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
|
|
|
06-27-2006, 10:14 AM
|
#5
|
Member
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249
Rep:
|
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.
|
|
|
06-27-2006, 10:35 AM
|
#6
|
Member
Registered: May 2006
Location: Netherlands
Distribution: Slackware64
Posts: 66
Rep:
|
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.
|
|
|
06-27-2006, 10:41 AM
|
#7
|
Member
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249
Rep:
|
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.
|
|
|
06-27-2006, 03:10 PM
|
#9
|
LQ Newbie
Registered: May 2006
Distribution: slackware linux
Posts: 28
Rep:
|
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
|
|
|
06-27-2006, 08:11 PM
|
#10
|
Member
Registered: Jun 2005
Distribution: Slackware 14.0
Posts: 86
Original Poster
Rep:
|
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!
|
|
|
06-28-2006, 06:47 AM
|
#11
|
Member
Registered: May 2006
Location: Netherlands
Distribution: Slackware64
Posts: 66
Rep:
|
Gbonvehi, thanks for the links on previous discussions about kernel headers!
Really illuminating!
|
|
|
All times are GMT -5. The time now is 04:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|