Page 1 of 1

Driver won't compile: no version.h

Posted: Tue Apr 04, 2006 10:47 pm
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?

generated header files

Posted: Wed Apr 05, 2006 12:30 pm
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. :)