| Linux - Kernel This forum is for all discussion relating to the Linux kernel. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-23-2012, 11:52 AM
|
#1
|
|
Member
Registered: Feb 2010
Posts: 78
Rep:
|
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
|
|
|
|
02-23-2012, 12:06 PM
|
#2
|
|
Senior Member
Registered: Mar 2010
Location: Oakland,Ca
Distribution: DebianSqueeze, winsxp, wins7, Debian wheezy, LFS 7.2
Posts: 4,130
|
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.
|
|
|
|
02-23-2012, 02:11 PM
|
#3
|
|
Member
Registered: Feb 2010
Posts: 78
Original Poster
Rep:
|
Am i not supposed to create them (the headers)?
|
|
|
|
02-23-2012, 02:22 PM
|
#4
|
|
Senior Member
Registered: Mar 2010
Location: Oakland,Ca
Distribution: DebianSqueeze, winsxp, wins7, Debian wheezy, LFS 7.2
Posts: 4,130
|
The kernel headers allow you to build drivers or recompile, they help you in creating
|
|
|
|
02-23-2012, 04:49 PM
|
#5
|
|
Senior Member
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 4,548
|
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.
|
|
|
|
02-24-2012, 07:44 AM
|
#6
|
|
Member
Registered: Feb 2010
Posts: 78
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:15 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|