Driver won't compile: no version.h

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
gilthanaz
Site Admin
Posts: 444
Joined: Fri Aug 29, 2003 9:29 pm
Contact:

Driver won't compile: no version.h

Post by gilthanaz »

[Problem]

We tried to compile the driver for the Highpoint Rocketraid 1640 into a 2.6.16.1 kernel. After decompressing and configuring the kernel, i did a make in the driver directory, feeding it the path to the new kernels source.

I got a lot of error messages, and it all started with "can't find version.h" in $kernel_source/include/linux/ - so, where is that damn file?
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

generated header files

Post by ^rooker »

[SOLUTION]

"include/linux/version.h" is generated during the first "make" of the kernel source - And I assume lots of other headers, too so remember kids:
Never compile something based on a kernel that hasn't been compiled, yet!

Note: I'm not the smart guy who solved this - Gil solved that one, but he forgot to post his results. :)
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply