LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 11-11-2003, 12:08 PM   #1
qwijibow
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
file.

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 ????

thankyou.

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

thankyou.
 
Old 11-11-2003, 12:35 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
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.

Håkan
 
Old 11-11-2003, 12:53 PM   #3
qwijibow
Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
ahh, Thankyou !
 
  


Reply


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


All times are GMT -5. The time now is 09:47 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration