On Tue, Mar 13, 2001 at 05:48:13PM -0500, Andrew D Dixon wrote:
> Hi All,
> I'm writing my first module and when I try to run it I get this error:
>
> #insmod hello.o
> hello.o: kernel-module version mismatch
> hello.o was compiled for kernel version 2.2.15
> while this kernel is version 2.2.18pre21.
>
> I believe that I need to upgrade linux/module.h and I was wondering what the
> preferred method of doing this was.
/usr/include/linux/module.h correctly refers to the kernel that the
libraries were built against.
if you know where your current kernel headers are, you can include the
path to them with the -I flag
gcc -c hello.c -I/usr/src/linux/include
-john
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]