insmod的问题,翻遍公社也没找到!
# gcc -c -O3 helloworld.c# /sbin/insmod helloworld.o
helloworld.o: kernel-module version mismatch
helloworld.o was compiled for kernel version 2.4.20
while this kernel is version 2.4.20-8.
#
刚开始以为内核的问题(我编译过2.6),重新装9.0后还是这个样!
55555555555,我升级以后的系统就这样报废了~~~~~ 你升了2.6...????不会吧.......
生了2.6 的怎么会出现
while this kernel is version 2.4.20-8.
的提示????? 升级过2.6但是在2.4下是这样的提示!
我感觉2.6于2.4没什么差别,所以在2.4下编译运行的,现在我就一个2.4了(刚刚装的redhat9.0),还是这问题,没有升级任何包包!
哥哥,姐姐们救救小弟吧! kernel module compilation can not be done like that. search this forum to see some helloworld example. at least u need a make file or a long gcc command line with enough cflags. http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=42871&highlight=hello+world
找到了,谢谢!
页:
[1]