编译模块的时候出现的莫名奇怪的错误
2010-01-14 19:46
429 查看
[root@qljt globalmem]# make -C /linux_kernel/linux-2.6.30/ M=/linux_drivers/06/globalmem/ modules
make: Entering directory `/linux_kernel/linux-2.6.30'
CC [M] /linux_drivers/06/globalmem/globalmem.o
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /linux_drivers/06/globalmem/globalmem.c:7:
include/linux/mmzone.h:18:26: error: 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 /linux_drivers/06/globalmem/globalmem.c:7:
include/linux/mmzone.h:290: error: 'MAX_NR_ZONES' undeclared here (not in a function)
In file included from /linux_drivers/06/globalmem/globalmem.c:11:
include/linux/mm.h:446:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:494:62: warning: "NR_PAGEFLAGS" is not defined
/linux_drivers/06/globalmem/globalmem.c: In function 'globalmem_read':
/linux_drivers/06/globalmem/globalmem.c:89: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
/linux_drivers/06/globalmem/globalmem.c: In function 'globalmem_write':
/linux_drivers/06/globalmem/globalmem.c:118: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
make[1]: *** [/linux_drivers/06/globalmem/globalmem.o] Error 1
make: *** [_module_/linux_drivers/06/globalmem] Error 2
make: Leaving directory `/linux_kernel/linux-2.6.30
解决的办法:
到你内核的根目录下执行
#make zImage 或
#make prepare
make: Entering directory `/linux_kernel/linux-2.6.30'
CC [M] /linux_drivers/06/globalmem/globalmem.o
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /linux_drivers/06/globalmem/globalmem.c:7:
include/linux/mmzone.h:18:26: error: 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 /linux_drivers/06/globalmem/globalmem.c:7:
include/linux/mmzone.h:290: error: 'MAX_NR_ZONES' undeclared here (not in a function)
In file included from /linux_drivers/06/globalmem/globalmem.c:11:
include/linux/mm.h:446:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:494:62: warning: "NR_PAGEFLAGS" is not defined
/linux_drivers/06/globalmem/globalmem.c: In function 'globalmem_read':
/linux_drivers/06/globalmem/globalmem.c:89: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
/linux_drivers/06/globalmem/globalmem.c: In function 'globalmem_write':
/linux_drivers/06/globalmem/globalmem.c:118: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
make[1]: *** [/linux_drivers/06/globalmem/globalmem.o] Error 1
make: *** [_module_/linux_drivers/06/globalmem] Error 2
make: Leaving directory `/linux_kernel/linux-2.6.30
解决的办法:
到你内核的根目录下执行
#make zImage 或
#make prepare
相关文章推荐
- 编译模块的时候出现的莫名奇怪的错误
- 编译模块的时候出现的莫名奇怪的错误
- 使用ant debug编译的时候出现如下错误
- 编译内核模块出现error: negative width in bit-field 错误
- 交叉编译工具执行时候出现错误
- Python在windows下安装模块出现编译错误解决方法
- 编译内核模块出现error: negative width in bit-field 错误
- python使用pip安装模块的时候出现ascii错误
- vmware虚拟机安装gentoo 出现eth0: Device not found 错误AMD PCnet32模块编译
- 使用PL/SQL developer 工具编译包或者其他objects时候出现错误
- 编译时出现类名.o错误的时候的四种处理情况
- 解决drupal的模块状态过多会导致启用模块时候出现一个类似错误Maximum execution time of 30 seconds exceeded in xxxxxxxxxxx
- VS2012 Release编译时出现 “error LNK2026: 模块对于 SAFESEH 映像是不安全的。” 错误提示的解决方法
- 编译php5.4的时候出现错误----configure: error: in `/usr/local/src/php540/php-5.4.0':
- office 2016 word 出现隐藏模块中出现编译错误: link
- 跪求编译hello world驱动时候,出现下面错误!
- gcc在出现错误的时候停止编译 -Wfatal-errors
- 编译linux-2.6.32的时候出现的错误以及解决办法
- openwrt多线程程序交叉编译时候出现错误解决方法
- 编译Android系统AIDL模块出现couldn't find import for class错误的解决办法