加载模块的时候出现版本不匹配的问题

在redhat9x下边先了个 helloworld.c的module,编译通过之后insmod的时候提示说:
helloworld.o was compiled for kernel version 2.4.20
while this kernel is version 2.4.20-8.
后来受下面这段话的启发,而有所获:呵呵
make sure the result of 'uname -r'
is the same with the definition of UTS_RELEASE in
/usr/src/linux/include/linux/version.h.
If not, please modify the definition of UTS_RELEASE
in /usr/src/linux/include/linux/version.h


你可能感兴趣的:(加载模块的时候出现版本不匹配的问题)