为何我加载模块时会出现disagrees about version of symbol struct_module
我新装的FEDORA CORE5 ,然后参照LINUX设备驱动第三版里面的介绍编了个Hello World!模块,Makefile也是按照书上的写的,make -C /usr/src/linux M=/home/test modules 编译模块也没问题,编译完了以后hello.ko也生成了,但是insmod hello.ko就出现提示:
hello:disagrees about version of symbol struct_module
insmod: error inserting 'hello.ko':-1 Invalid module format
原来这个模块在FC3下面也是在重编译的2.6.15.5内核下同样的编译却是能够正常加载的,请问是何原因?