kernel-module version mismatch
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. Any help would be greatly appreciated. Thanks, Andy P.S. pleas cc me as I am not on the list. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
kernel-module version mismatch
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. Any help would be greatly appreciated. Thanks, Andy P.S. pleas cc me as I am not on the list. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: kernel-module version mismatch
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
Re: kernel-module version mismatch
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]