Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


Closed Thread
  Search this Thread
Old 02-23-2010, 05:42 AM   #1
Registered: Feb 2010
Posts: 30

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


I am using Fedora 11 and recently I compiled kernel 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- 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- 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 12:48 AM.
Old 02-24-2010, 04:49 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,053

Rep: Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461

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

The letter ' I ' is an upper case i.

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

Rep: Reputation: 474Reputation: 474Reputation: 474Reputation: 474Reputation: 474
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:

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 12:28 PM
Kernel Compilation Prob -- VolGroup00 not found. iamnobody Linux - Kernel 1 11-18-2008 01:59 PM
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 03:45 AM
Kernel-header packages for 2.6.x kernel are not found in 'Testing' depositaries? Akhran Debian 2 04-03-2006 05:10 AM
OpenGL header file not found haruki_zaemon Linux - Software 1 08-18-2003 09:21 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration