译出来的*.o文件在用insmod命令插入的时候,总是报错,错误有两种:
一:
[root@SUNOS5 root]# insmod firewall.o
firewall.o: kernel-module version mismatch
firewall.o was compiled for kernel version 2.4.20
while this kernel is version 2.4.20-8smp.
二:
[root@SUNOS5 root]# insmod hello.o
hello.o: couldn't find the kernel version the module was compiled for
no, u are using redhat kernel, u install from rpm but the kernel source version is mismatch with the running kernel. so u can insmod -f if u are lazy to recompile a kenrel and run that new kernel