LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 02-23-2012, 12:52 PM   #1
igor012
Member
 
Registered: Feb 2010
Posts: 87

Rep: Reputation: 2
kernel headers are missing


Hello,
I have compiled my kernel (3.1.2) from source and it's working well. But recently i needed to install some drivers and they're requiring my kernel header files. The thing is they are nowhere and I don't know how to get them.

I have tried from source folder make headers_install INSTALL_HDR_PATH=/tmp/header but it return me
Code:
  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

  HOSTCC  scripts/basic/fixdep

In file included from /usr/include/bits/posix1_lim.h:157:0,
                 from /usr/include/limits.h:145,           
                 from /usr/lib64/gcc/x86_64-suse-linux/4.6/include-fixed/limits.h:169,
                 from /usr/lib64/gcc/x86_64-suse-linux/4.6/include-fixed/syslimits.h:7,
                 from /usr/lib64/gcc/x86_64-suse-linux/4.6/include-fixed/limits.h:34,  
                 from scripts/basic/fixdep.c:114:                                      
/usr/include/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.                                                                    
make[1]: *** [scripts/basic/fixdep] Error 1                                                
make: *** [scripts_basic] Error 2
I am a bit confused now. Can someone help me ?

Thank you
 
Old 02-23-2012, 01:06 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,219

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
What distro are you using the kernel headers shoud be available thru it's package Manager.
Sorry you're using suse
http://forums.opensuse.org/english/g...ders-suse.html

Last edited by EDDY1; 02-23-2012 at 01:08 PM.
 
Old 02-23-2012, 03:11 PM   #3
igor012
Member
 
Registered: Feb 2010
Posts: 87

Original Poster
Rep: Reputation: 2
Am i not supposed to create them (the headers)?
 
Old 02-23-2012, 03:22 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,219

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
The kernel headers allow you to build drivers or recompile, they help you in creating
 
Old 02-23-2012, 05:49 PM   #5
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,455

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
The "kernel headers" are a portion of the source-code of the Linux kernel that you are running: specifically, the font=courier]*.h[/font] files.

You will find that your system has two packages available, both of them probably optional: the kernel headers, and the full kernel source.

Software that needs to have up-to-date definitions of any kernel-related constant or data structure, e.g. to properly make a system call of some sort, will need the header-file information. I install it routinely.
 
Old 02-24-2012, 08:44 AM   #6
igor012
Member
 
Registered: Feb 2010
Posts: 87

Original Poster
Rep: Reputation: 2
I have finally solved my problem. I installed more recent drivers... And no errors

It's seems to be a problem with 3.1.x kernel and old nvidia drivers.
 
  


Reply

Tags
compile, headers, kernel 3


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
[SOLVED] Missing kernel headers for Backtrack 3 frank81 Linux - Software 7 03-28-2014 09:29 AM
Missing kernel headers s.joseph Linux - Embedded & Single-board computer 5 11-19-2011 12:41 PM
Slackware64-current missing kernel headers? UpAndUp Slackware 2 08-26-2009 08:08 PM
Am I missing some stuff in /build/ ? Kernel Headers?!?!? yttrium88 Linux - Newbie 1 10-28-2006 09:40 PM
Missing Kernel Headers utku Debian 16 02-09-2005 03:20 AM


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