Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-29-2004, 02:31 PM   #1
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Rep: Reputation: 30
kernel headers 2.4.x used when compiling 2.6.7??

I am kinda new to kernel configs ........ I have done it many times now because I am a bit anal when it comes to my computer. But My situation is this. Im just a bit confused

I installed slack 10 bare.i kernel just to get up and running. Downloaded 2.6.7 and when through the hole deal and got a few 2.6.7 kernels running. I finally got one I like with minimal errors so I did a pkgtool and removed all things having to do with 2.4.x the stock kernel with slack 10. All is well for a while untill I realize that my HDD DMA error is due to not having the right support in the kernel (i think....) so I go to recompile yet again of course with errors because I removed my kernel headers.

Building a 2.6.7 kernel with 2.4.x headers is this a bad idea???? Cause this is what I have done thus far

What are the headers for exactly?

Were does one find kernel headers for 2.6.7 in tgz format or any format for that matter.

A kick in the right direction would be great.
Old 06-29-2004, 02:44 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 5,388

Rep: Reputation: 408Reputation: 408Reputation: 408Reputation: 408Reputation: 408
No, you can compile kernel 2.6.7 with 2.4.x headers because it does not need it to compile. kernel-headers are standart files used by programs to compile. There are mainly .h C file in wich there are some definition for standart functions, constant and more.

I succeed to compile a 2.6 test module with kernel-header 2.4.x package installed. And I think some programs may fail to compile with kernel-header 2.6.xx.
Old 06-29-2004, 03:18 PM   #3
Registered: Jul 2003
Location: Oslo/Norway
Distribution: Slackware
Posts: 33

Rep: Reputation: 16
Kernel headers are included on cd2 as a package.

But before you use it read the warning file:

That say:

This package of 2.6.7 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.7. 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.26 kernel-headers package for now.

Good luck!



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
libraries/headers locations question (compiling) shilo Slackware 1 10-04-2005 12:01 PM
Cross-COmpiling with MinGW32 headers Adam15906 Linux - Software 2 09-16-2005 09:51 PM
Error Compiling Linux-2.4.26 Headers AFI_Flame Linux From Scratch 3 06-04-2004 04:30 PM
Compiling after new 2.6.6 headers Tuttle Slackware 5 06-03-2004 03:22 PM
Problem compiling apache 2.0, ssl headers and gcc may be keys. eblakely Red Hat 0 04-16-2004 02:12 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration