LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-07-2009, 03:22 AM   #1
SebX86
LQ Newbie
 
Registered: Feb 2009
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
Custom Kernel Headers problem


Hi everybody,

I want to try the 802.15.4 support in a git version of the Linux Kernel. I use UML, this works well but I suppose the kernel headers are in the include directory of the tree. I can't compile the 802.15.4 userspace tools, configure doesn't find .h files...

It's an Ubuntu 9.04. Where do I need to put the includes to make it work ???

Many thanks
 
Old 09-08-2009, 03:55 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Buster (Fluxbox WM)
Posts: 1,390
Blog Entries: 52

Rep: Reputation: 359Reputation: 359Reputation: 359Reputation: 359
Typically the headers would go in /usr/src, with the appropriate version such as 'linux-headers-2.6.26-2-686'. You would then make a symbolic link called 'linux' that points to this directory.
 
Old 09-08-2009, 04:58 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
The system kernel headers are in /usr/include/linux/
and /usr/include/asm , /usr/include/asm-generic ,
/usr/include/drm/ , provided by the package 'linux-libc-dev'
.....

If you want to use /usr/src/// headers , examples :
./configure CC="gcc -I/usr/src/linux-headers-2.6.28-11/include/"
make CC="gcc -I/usr/src/linux-headers-2.6.28-11/include/"
( -I is an upper case i.)

... or ..
./configure \
CC="gcc -I/usr/src/linux-headers-2.6.28-11/include/ -I/usr/include/"
.. to use both path's.
.....

Last edited by knudfl; 09-08-2009 at 05:00 AM.
 
  


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
Creating custom headers to match a custom kernel utanja Debian 2 06-08-2007 03:15 PM
Custom kernel + old headers ? merchtemeagle Slackware 4 11-07-2006 10:29 AM
kernel-headers and custom compiled kernels jaakkop Slackware 2 11-22-2005 11:21 AM
Kernel Headers Problem Daejavu Ubuntu 1 10-01-2005 06:18 AM
Sending mail from shell: how to define custom headers? ricky_ds Linux - Software 3 06-22-2005 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:06 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
Open Source Consulting | Domain Registration