Re: problems when building a kernel module 'out of the box'

2003-11-20 Thread Mike at VirginNet
Hi Colin, > > The seemingly obvious would be to change this to :- > > > > gcc -D__KERNEL__ -DMODULE -DMODVERSIONS -include /usr/src/kernel-headers-2.4.18-bf2.4/include/linux/modversions.h -Wall -Wstr ict-prototypes -O2 -m486 -c modulename.c -I/usr/src/kernel-source-2.4.18-bf2.4/include > > > >

Re: problems when building a kernel module 'out of the box'

2003-11-20 Thread Colin Watson
On Thu, Nov 20, 2003 at 02:47:19PM -, Mike at VirginNet wrote: > When I try to install a newly built module, I get the following error :- > > modulename.o: kernel-module version mismatch > modulename.o was compiled for kernel version 2.4.18 > while this kernel is version 2.