On Sun, 2005-09-11 at 11:29 +0700, Mulyadi Santosa wrote: > Hello > > > $gcc - c -W -Wstrcik-prototypes -Wmissing-prototypes -isystem > > /lib/modules/2.4.20/'uname -r'/bulid/include -O2 -DMODULE > > -D__KERNEL__${WARN} ${INCUDE} hello.c > > > > the program gets compiled without any error, > > > > but when i use the insmod i get the following error > > > > command: $ insomod ./hello.o > > error: > > ./hello.o: kernel -module verison mismatch > > ./hello.o was compiled for kernel version 2.4.20 > > while this kernel is version 2.4..20.-8 > > Compile your kernel source with the same kernel config as the currently > running one (redhat stock kernel). I believe you can find one on /boot, > usually named like config-2.4.20-19.9. Copy it to the kernel source as > ".config" and do make_oldconfig and make dep. Also re-adjust the > EXTRAVERSION on kernels's Makefile to match the output of "uname -r" this is such bad advice it's not funny ;) Don't do this! all that's needed is to fix the typo in the include line: -I /lib/modules/`uname -r`/build/include instead of what is there now. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/