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.
|
|
|
04-01-2006, 07:01 PM
|
#1
|
Member
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270
Rep:
|
kernel 2.6.16.1 source/headers
Hi all,
Im gonna try to install madwifi, the howto says i need the source/headers packages installed for it to work. Im using the 2.6.16.1 kernel but i cant seem to find its source/headers packages anywhere. Does anyone know where i can get them from?
Any help greatly appreciated.
|
|
|
04-01-2006, 07:07 PM
|
#2
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
How did you do the 2.6.16.1 kernel? From a precompiled update source or from www.kernel.org
If from www.kernel.org and compiled it yourself it all should be there and ready.
If the first then I guess where you got it from has the source there.
Brian1
|
|
|
04-01-2006, 08:25 PM
|
#3
|
Member
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 927
|
To clarify: if you compiled yourself, then it will find the kernel sources automagically. /lib/modules/2.6.xx[.yy]/build and /lib/modules/2.6.xx[.yy]/source are symlinks to the build directory and source directory. Assuming you haven't deleted those directories, you'll be fine.
|
|
|
04-02-2006, 07:52 AM
|
#4
|
Member
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270
Original Poster
Rep:
|
Ah i see...
I thought that was the case, then i asked in #madwifi and was told i need the packages anyway. Cool.
Thanks
|
|
|
04-03-2006, 08:20 AM
|
#5
|
Member
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879
Rep:
|
If you got them from precompiled packages, it should not be a problem - I certainly did not experience any difficulties with Madwifi, once I had installed the 2.6.13 packages from CD2.
There are newer versions available on the package manager, of course.
|
|
|
04-03-2006, 10:24 AM
|
#6
|
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802
Rep:
|
FYI: kernel-headers and kernel-source are two separate packages. You may still need kernel-headers even if you built your own kernel
Code:
PACKAGE NAME: kernel-headers-2.4.31-i386-1.tgz
kernel-headers: kernel-headers (Linux kernel include files)
kernel-headers:
kernel-headers: These are the include files from the Linux kernel.
kernel-headers:
kernel-headers: You'll need these to compile most system software for Linux.
PACKAGE NAME: kernel-source-2.4.31-noarch-1.tgz
kernel-source: kernel-source (Linux kernel source)
kernel-source:
kernel-source: Source code for Linus Torvalds' Linux kernel.
kernel-source:
kernel-source: This is the complete and unmodified source code for the Linux kernel.
|
|
|
04-03-2006, 02:27 PM
|
#7
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Dave was referring to a 2.6 kernel and a matching kernel-headers package. Even when you install a 2.6 kernel (and/or kernel sources), take notice of this WARNING file in Slackware "testing". It basically advises against installing a kernel-headers package of the 2.6 series on top of the 2.4 kernel-headers that come by default with every Slackware install.
Don't confuse installing the kernel sources with the kernel headers. The sources go into /usr/src while the headers go into /usr/include.
Eric
|
|
|
04-03-2006, 03:24 PM
|
#8
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Are kernel headers automatically moved into /usr/include after successful kernel compilation or do they stay in /usr/src/linux-kernel-version/include?
|
|
|
04-03-2006, 04:09 PM
|
#9
|
Member
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270
Original Poster
Rep:
|
Thanks for all the replys.
Alien im not sure sorry.
Got madwifi working fine, I didnt need to install the headers/source packages for the 2.6.16.1, it used the /usr/src/linux-2.6.16.1/.
|
|
|
04-03-2006, 04:52 PM
|
#10
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Because everything was already there.
|
|
|
04-07-2006, 04:01 PM
|
#11
|
LQ Newbie
Registered: Dec 2005
Posts: 2
Rep:
|
Quote:
Originally Posted by Alien_Hominid
Are kernel headers automatically moved into /usr/include after successful kernel compilation or do they stay in /usr/src/linux-kernel-version/include?
|
Kernel headers are NOT automatically moved to /usr/include. You have to install them.
As /bin/bash said kernel sources and kernel headers are two different packages and so are installed independently. If you want to replace kernel headers then remove previous package and install the new one.
I've read in other forum that kernel headers should match the kernel wich was used to compile glibc, and NOT the installed kernel.
Can anyone confirm this?
|
|
|
04-07-2006, 04:08 PM
|
#12
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Quote:
Originally Posted by zariweb
I've read in other forum that kernel headers should match the kernel wich was used to compile glibc, and NOT the installed kernel.
Can anyone confirm this?
|
Apparently you did not read the WARNING link I posted up here. For completeness sake, I will paste the major part Pat Volkerding's statement on kernel header files from that WARNING file:
Code:
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.
Eric
|
|
|
04-07-2006, 04:35 PM
|
#13
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
So it is possible for me to compile the kernel, copy its headers to /usr/include and then recompile the glibc. Would it be OK?
BTW, I have read the link when you posted it.
|
|
|
04-07-2006, 07:10 PM
|
#14
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
Quote:
Originally Posted by Alien_Hominid
So it is possible for me to compile the kernel, copy its headers to /usr/include and then recompile the glibc. Would it be OK?
|
why would you want to do that ?
compiling glibc isn't a simple thing.
do you need those headers for a special case ?
egag
|
|
|
04-08-2006, 06:39 AM
|
#15
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
I asked just for educational purpose (to understand how everything works).
|
|
|
All times are GMT -5. The time now is 11:07 PM.
|
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
|
|