LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 11:52 AM   #1
igor012
Member
 
Registered: Feb 2010
Posts: 89

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, 12:06 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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 12:08 PM.
 
Old 02-23-2012, 02:11 PM   #3
igor012
Member
 
Registered: Feb 2010
Posts: 89

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

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
The kernel headers allow you to build drivers or recompile, they help you in creating
 
Old 02-23-2012, 04:49 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
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, 07:44 AM   #6
igor012
Member
 
Registered: Feb 2010
Posts: 89

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



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

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

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