On Thursday 03 July 2003 12:06, r2 wrote: > > > >You need to declare the preprocessor #define's __KERNEL__, MODULE and > >MODVERSIONS. > > I did that and it gave me a kernel-version-mismatch error > Ok, so you have to check the version.h, your gcc finds. Do # gcc -M hello.c -o hello.d # grep -w version hello.d Inspect that file. It should contain something like #define UTS_RELEASE "2.4.19" #define LINUX_VERSION_CODE 132115 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) Compare the UTS_RELEASE against 'uname -r' - it MUST match. If not, do 'locate version.h' and check the results. if [ $? -ne 0 ], you may edit a new one. It could look like this: #define UTS_RELEASE "2.4.99" #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) #define LINUX_VERSION_CODE KERNEL_VERSION(2,4,99) HTH MS -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/