LinuxQuestions.org
Visit Jeremy's Blog.
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 06-18-2005, 10:59 AM   #1
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
have kernel source, want headers


Some more questions regarding headers:

1. If I have the source of the kernel I'm using, is it possible to generate the header files? or are the header files by definiition in the source itself, .i.e. the ones ending in "h"?

2.When you are compiling a module, and it requests header files, does it choose all of them or a subset (depending on what the module needs). IS it part of the modules responsibility to find the header files it wants inside the kernel source code?
 
Old 06-18-2005, 11:33 AM   #2
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
If your using debian based distro just apt-get install kernel-headers-xxx

xxx is the debian kernel your running
 
Old 06-18-2005, 12:30 PM   #3
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Quote:
1. If I have the source of the kernel I'm using, is it possible to generate the header files? or are the header files by definiition in the source itself, .i.e. the ones ending in "h"?
You don't generate header files. It's code that the module needs to look at for it to compile.

Quote:
2.When you are compiling a module, and it requests header files, does it choose all of them or a subset (depending on what the module needs). IS it part of the modules responsibility to find the header files it wants inside the kernel source code?
It will look for the header files that it needs, not all of them. Sometimes when compiling, it will state that a header file is not found. This is the case where you actually need to google and find the package that provides the headers for the module to compile.

-twantrd
 
Old 06-18-2005, 04:17 PM   #4
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Original Poster
Rep: Reputation: 32
thanks for answers .. clarifies a little ..cheers/stab.
 
  


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 06:22 AM
do i need kernel source or headers zuessh Debian 9 08-20-2005 02:12 PM
Kernel source headers symlink rose_bud4201 Linux - Software 3 06-27-2005 07:40 PM
Kernel source headers? oasisbhrnw99 Linux - Newbie 20 07-21-2004 05:00 AM
Kernel Source and Headers Seventh_Warrior Linux - Software 8 04-10-2004 02:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:21 AM.

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