打印

困扰了我两天的问题 编译内核模块时出现问题!!!!

[复制链接]
1690|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
azeale123|  楼主 | 2010-10-26 11:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[root@localhost Param]# make
make -C /lib/modules/linux2.6.28/linux2.6.28/linux-2.6.28.7 M=/home/azeale/Param modules
make[1]: Entering directory `/lib/modules/linux2.6.28/linux2.6.28/linux-2.6.28.7'
  CC [M]  /home/azeale/Param/param.o
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /home/azeale/Param/param.c:2:
include/linux/mmzone.h:18:26: linux/bounds.h: No such file or directory
include/linux/mmzone.h:256:5: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /home/azeale/Param/param.c:2:
include/linux/mmzone.h:277: error: `MAX_NR_ZONES' undeclared here (not in a function)
make[2]: *** [/home/azeale/Param/param.o] Error 1
make[1]: *** [_module_/home/azeale/Param] Error 2
make[1]: Leaving directory `/lib/modules/linux2.6.28/linux2.6.28/linux-2.6.28.7'make: *** [all] Error 2

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3

主题

17

帖子

0

粉丝