SlackwareThis 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.
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?
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,697
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.
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.
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.