Home > Archive > Linux/Unix > December 2003 > kernel mismatch err





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author kernel mismatch err
sourav

2003-12-22, 1:45 pm

I have written a sample module and compiled with

# gcc -c module.c

I'm using Redhat9, kernel 2.4.20-8 ,gcc-3.2.2-5



but however when I'm trying to load the module using

#insmod ./module.o

but recving err ..


kernel-module version mismatch
./module.o was compiled for kernel 2.4.20
while this kernel is version 2.4.20-8


how could I resolve this problem ??


Thanks
Boulware5

2003-12-22, 3:37 pm

If the module was compiled under a different kernel than the current one, insmod will report the version mismatch and fail to load the module.

You can force it to load with insmod -f but I'm not so sure that will work. If not, looks like you will have to recompile the kernel.
sourav

2003-12-23, 12:18 am

thnkx Boulware5

could u let me know how to check compilation is done under current kernel or different krnl ??
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net