zengshibin 发表于 2006-4-12 00:32:23

求助内核2.6模块添加编译问题

这是我在内核2.4.6下添加模块时用的命令

root@hebisi:~# make -C /usr/src/linux-source-2.6.12 SUBDIRS=$PWD modules
make: Entering directory `/usr/src/linux-source-2.6.12'
Makefile:485: .config: No such file or directory
/usr/src/linux-source-2.6.12/scripts/gcc-version.sh: line 11: gcc-3.4: command not found
/usr/src/linux-source-2.6.12/scripts/gcc-version.sh: line 12: gcc-3.4: command not found
make: gcc-3.4:命令未找到

WARNING: Symbol version dump /usr/src/linux-source-2.6.12/Module.symvers
         is missing; modules will have no dependencies and modversions.

CC /root/hebisi.o
/bin/sh: gcc-3.4: command not found
make: *** 错误 127
make: *** 错误 2
make: Leaving directory `/usr/src/linux-source-2.6.12'

以下是模块源文件同一目录下的自己写的Makefile
obj-m += hebisi.o

我只是写的那个很简单的HELLO WORLD 的模块源文件
为什么在编译成。ko文件时他会报出最上头产生的错误
我的GCC版本是4.0的
请哪个蝈蝈帮忙
页: [1]
查看完整版本: 求助内核2.6模块添加编译问题