LinuxQuestions.org
Help answer threads with 0 replies.
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 04-01-2006, 07:01 PM   #1
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Rep: Reputation: 30
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.
 
Old 04-01-2006, 07:07 PM   #2
Brian1
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: Reputation: 65
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
 
Old 04-01-2006, 08:25 PM   #3
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 927

Rep: Reputation: 716Reputation: 716Reputation: 716Reputation: 716Reputation: 716Reputation: 716Reputation: 716
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.
 
Old 04-02-2006, 07:52 AM   #4
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
Ah i see...

I thought that was the case, then i asked in #madwifi and was told i need the packages anyway. Cool.

Thanks
 
Old 04-03-2006, 08:20 AM   #5
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
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.
 
Old 04-03-2006, 10:24 AM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
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.
 
Old 04-03-2006, 02:27 PM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119
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
 
Old 04-03-2006, 03:24 PM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Are kernel headers automatically moved into /usr/include after successful kernel compilation or do they stay in /usr/src/linux-kernel-version/include?
 
Old 04-03-2006, 04:09 PM   #9
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
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/.
 
Old 04-03-2006, 04:52 PM   #10
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Because everything was already there.
 
Old 04-07-2006, 04:01 PM   #11
zariweb
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
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?
 
Old 04-07-2006, 04:08 PM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119
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
 
Old 04-07-2006, 04:35 PM   #13
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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.
 
Old 04-07-2006, 07:10 PM   #14
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
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
 
Old 04-08-2006, 06:39 AM   #15
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
I asked just for educational purpose (to understand how everything works).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
need kernel-source/headers Foress_89 Linux - Hardware 2 10-04-2005 07:22 AM
do i need kernel source or headers zuessh Debian 9 08-20-2005 03:12 PM
have kernel source, want headers stabu Linux - Newbie 3 06-18-2005 05:17 PM
Kernel source headers? oasisbhrnw99 Linux - Newbie 20 07-21-2004 06:00 AM
Kernel Source and Headers Seventh_Warrior Linux - Software 8 04-10-2004 03:59 AM

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

All times are GMT -5. The time now is 11:07 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