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 12-14-2003, 05:40 PM   #1
mep]-[isto
Member
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 61

Rep: Reputation: 15
what are headers?


this might sound odd and probably ridiculous to most people, but what exactly are headers? i see to compile the kernel i need kernel headers, why is this? and why seperate them from the source code packages if i need them to compile (as after all, all your gonna do with source is possibly alter then compile..right?)

well i suppose you mght edit then send to someone, i dont know but basically im just curoius as to what headers actually are as ive seen them in multiple packages, and it seems like any package that needs compiling needs its headers.

cheers!
 
Old 12-14-2003, 05:49 PM   #2
randomblast
Member
 
Registered: Aug 2003
Location: Manchester, England, UK, The World....
Distribution: Gentoo/SuSE 9.0
Posts: 291

Rep: Reputation: 30
headers are files, sometimes called includes, that contain code that's re-used and then used in other pages of code.
i think the reason you're missing kernel headers is because you've downloaded the patch, but don't have the source code for the kernel you're running now installed on you system.
just get the full version of the kernel.

unless of course this isn't your problem.
 
Old 12-14-2003, 05:56 PM   #3
mep]-[isto
Member
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 61

Original Poster
Rep: Reputation: 15
im not sure why they didnt come with the code, its from slack 9.1 packages, they are seperate and kernel is broken down into modules, ide, source and headers. got it all fixed now though (was having a make dep problem), but was just wondering what the headers were as im curious...

no good knowing how to do something if you dont know what it is your right? not if you want to learn :P

cheers m8 for the advice
 
Old 12-14-2003, 06:09 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
It depends on what you installed ...

The kernel's headers (~6Mb) are seperately available
because they're required for several normal
programs to compile without having a need to
have the enitre kernel source installed (~ 187Mb)


The binary kernel lives in
<cdrom>/slackware/a/kernel-*

The kernel headers live in
<cdrom>/slackware/d/kernel-*

The kernel source lives in
<cdrom>/slackware/k/kernel-*



Cheers,
Tink
 
Old 12-14-2003, 06:14 PM   #5
mep]-[isto
Member
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 61

Original Poster
Rep: Reputation: 15
ahh right, cheers tink. im presuming then thats why there are also other packages with headers seperately?
 
Old 12-14-2003, 06:21 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Let's say that if a program you are about to compile
has dependencies for other libraries, you'd need to
install the package that provides that library (and it's
headers) first. Usually a program wouldn't have it's
own headers in a seperate package. (Note that the
kernel source already includes the headers, that is,
if you install the kernel source you don't need to
install the headers as well).



Cheers,
Tink
 
Old 12-14-2003, 06:25 PM   #7
mep]-[isto
Member
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 61

Original Poster
Rep: Reputation: 15
really? thats odd, i have the kernel source yet i need the headers? well im sure i had the source anyway. installed from slack 9.1 cd's....thats the full source right? (well im pretty sure it is, says so in the slack package browser)

so to check, to run make dep u reckon id only need the kernel source?
 
Old 12-14-2003, 06:26 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Yep :}

But if you don't have ANY .config file in the
source directory "make dep" will fail.


Cheers,
Tink
 
  


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
headers stabu Linux - Newbie 3 06-16-2005 05:47 PM
How to get kernel headers? pingu Linux - Software 5 11-25-2004 04:08 AM
mdk 10 headers horatiu_v Linux - Newbie 3 10-06-2004 09:10 AM
kernel-headers warmongr Red Hat 6 03-19-2004 12:34 PM
kernel-headers for 2.6 uday Slackware 2 02-14-2004 11:03 AM


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