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

[复制链接]
 楼主| 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

粉丝
快速回复 在线客服 返回列表 返回顶部

3

主题

17

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部