Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-11-2003, 11:08 AM   #1
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
bad kernel tree ? version.h missing !!! 2.4.22

Hey boys and girls...

im trying to compile a driver for my kernel,
however, the makefile script looks inside the
path you give it for kernel source for a /include/linux/version.h

however in my /usr/src/linux-2.4.22/ directory, there is NO version.h file !
did i configure my kernel incorectly ?
should i NOT have make clean; make mrproper
after installing to save disk space ????

and since i KNOW ive got the correct directory, would if be safe to edit
the makefile so that it passes the source check, even though im missing this
version.h file ????


i donloaded the source as a tar.gx from, but am currently downloading a kernel-source rpm to in the hope that will contain a perfect source tree.

Old 11-11-2003, 11:35 AM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
version.h does not exist prior to building the kernel, so this file will not be there unless you have built the kernel. You should build the kernel first, reboot to the new kernel and then build the driver.

"make mrproper" does remove everything, so I don't do it after I have built the kernel. Rebuilding takes ages, and you can run into problems like these.

Old 11-11-2003, 11:53 AM   #3
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
ahh, Thankyou !


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
Family Tree Maker - version 9 for Linux phidor Linux - Software 6 09-25-2014 08:25 PM
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
the bible = the tree of the knowledge of good and evil () Jesus = the tree of life Michael111 General 2 04-14-2004 04:28 PM
What's so bad about the free version of RH? Konig Red Hat 1 01-20-2004 09:00 PM
Missing / Bad Version JDK 1.2 christer Linux - Software 2 10-16-2003 01:09 PM > Forums > Linux Forums > Linux - Software

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