LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Closed Thread
  Search this Thread
Old 02-23-2010, 06:42 AM   #1
ravishekhar.82
Member
 
Registered: Feb 2010
Posts: 30

Rep: Reputation: 15
Question Kernel Compilation ( Header file not found)


Hi,

I am using Fedora 11 and recently I compiled kernel 2.6.32.8. I was trying to make some change in the kernel and I have included #include<linux/mmzone.h. file . But when I tried to compile it gives "No such file or directory". I checked that this file is not in /usr/include/linux but it is there in /usr/src/linux-2.6.32.8/include/linux. I getting same error for some other header file too.
I have not idea what to do it to make. I do not want to give full path. Suggest what to do.

Okay let me put the question in this way.

When there is a header file say <linux/xyz.h> then how system finds the header file.

My problem is that this header file <linux/xyz.h> is not in original /usr/include/linux but it is present at /usr/src/linux-2.6.32.8/include/linux. I want header files to be taken from the new location too.

In which all files I have to make changes. Do I have to create certain rule for this.

Please suggest.

Last edited by ravishekhar.82; 02-24-2010 at 01:48 AM.
 
Old 02-24-2010, 05:49 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,758

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
*

make CC="gcc -I/usr/src/linux-2.6.32.8/include -I/usr/include"
Or : make CC="gcc -I/usr/src/linux-2.6.32.8/include"

The letter ' I ' is an upper case i.
.....

Last edited by knudfl; 02-24-2010 at 05:53 AM.
 
1 members found this post helpful.
Old 02-24-2010, 07:33 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Continue here: http://www.linuxquestions.org/questi...lation-790977/
 
  


Closed Thread


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
configure: error: Header file pcap.h not found; when tried installing ethereal networ ssangeetha Linux - Software 6 05-02-2013 01:28 PM
Kernel Compilation Prob -- VolGroup00 not found. iamnobody Linux - Kernel 1 11-18-2008 02:59 PM
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 04:45 AM
Kernel-header packages for 2.6.x kernel are not found in 'Testing' depositaries? Akhran Debian 2 04-03-2006 06:10 AM
OpenGL header file not found haruki_zaemon Linux - Software 1 08-18-2003 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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