Linux

Wednesday, June 22, 2005

modversions.h problem

I was downloading the kernel headers and copying it to /usr/src/..... and using that include directory for compiling the kernel module which turned out to be the wrong way and the best method is to include the one in /lib/modules/'uname -r'/build

There was no modversions.h as specified in .Indeed it was in config/modversions.h and corrected the include method like below that worked out !!

#ifdef CONFIG_MODVERSIONS
#define MODVERSIONS
#include < config/modversions.h >
#endif


Related Links:
[1] http://www.skynet.ie/~mark/home/kernel/symbols.html


1 Comments:

Blogger Sudhar said...

I guess that /usr/src can be used if it is a configured kernel source tree and that is the intended kernel version where the module is to be run!

June 24, 2005 9:03 AM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home