QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1878|回复: 0

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

[复制链接]
发表于 2006-4-12 00:32:23 | 显示全部楼层 |阅读模式
这是我在内核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 [M]  /root/hebisi.o
/bin/sh: gcc-3.4: command not found
make[1]: *** [/root/hebisi.o] 错误 127
make: *** [_module_/root] 错误 2
make: Leaving directory `/usr/src/linux-source-2.6.12'

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

我只是写的那个很简单的HELLO WORLD 的模块源文件
为什么在编译成。ko文件时他会报出最上头产生的错误
我的GCC版本是4.0的
请哪个蝈蝈帮忙
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-25 20:23 , Processed in 0.065907 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表