LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-19-2003, 11:27 AM   #1
Imiro
LQ Newbie
 
Registered: Sep 2002
Distribution: Fedora core 4
Posts: 17

Rep: Reputation: 0
kernel headers


Hiya,

My system is RedHat 9 kernel-2.4.20-20.9 and I'm installing software that has to be compiled in order to make it work. The list of needed stuff:
--
rpm -q binutils
rpm -q cpp
rpm -q glibc-devel
rpm -q gcc
rpm -q kernel-headers
rpm -q kernel-source
--
kernel source I installed ok.
rpm -q kernel-headers says not installed.

Q1) What are kernel headers?

Q2) I'm not able to find the headers.rpm of the exact same version as kernel. Is it critical to find the match or could I use any 2.4-header version?

Q3) I'm a bit confused by the many kernel-source.rpm distributions, some with i386-i686 and others with athlon/intel written in them too. I have AMD 3000+ cpu, which i guess means it's i686. Is there a good rule of thumb here?
 
Old 09-19-2003, 03:28 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
Re: kernel headers

Quote:
Originally posted by Imiro

Q1) What are kernel headers?
Part of kernel files (.h). Thay're needed to compile many programs. Note here: kernel-source should work as well here. Kernel-headers package is a part of kernel-source (kernel-headers is much smaller). You should be able to handle this by symlinking include/ directory in your kernel source to /usr/include (or just symlink the kernel source to /usr/src/linux).

Quote:
Q2) I'm not able to find the headers.rpm of the exact same version as kernel. Is it critical to find the match or could I use any 2.4-header version?
Find closest maching package. For example, when you have 2.4.20-something kernel, all 2.4.20-something_else headers should be OK. But you shouldn't need them (see above).

Quote:
Q3) I'm a bit confused by the many kernel-source.rpm distributions, some with i386-i686 and others with athlon/intel written in them too. I have AMD 3000+ cpu, which i guess means it's i686. Is there a good rule of thumb here?
For Athlon, get *athlon or (if there's no *athlon) i686.
 
Old 09-19-2003, 07:46 PM   #3
Imiro
LQ Newbie
 
Registered: Sep 2002
Distribution: Fedora core 4
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for your reply Mara, it cleared things. I was just left wondering if you actually mean symlinking the contents of kernel-src/include to usr/include instead of the directory (resulting --> usr/include/include)? My money would be on the first option, but trying to be really carefull not to mess up

And what if there allready are files/dirs of same name; are they over-written and if so would it be ok?
 
Old 09-20-2003, 05:41 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
I meant the contents. It's even bette to copy it, in fact (because you may forget and delete /usr/src/linux).

If you have files of the same name, don't modify them. Headers for an older version usually work just fine (headers have list of functions, kernel variables etc, they don't change as often as other kenel files).
 
  


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
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
Difference between kernel-headers kernel-source twinkers Debian 2 06-18-2005 11:20 AM
send packets with kernel routing and without kernel messing with headers bassdemon Programming 5 02-08-2005 06:29 PM
Kernel Headers for 2.6 devinWhalen Mandriva 7 04-23-2004 09:35 AM
kernel-headers warmongr Red Hat 6 03-19-2004 11:34 AM


All times are GMT -5. The time now is 09:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration