编译e1000 缺少:mmzone.h bounds.h
来源:互联网 发布:贝叶斯网络维基百科 编辑:程序博客网 时间:2024/05/22 14:33
环 境: CentOS 5.4 x86_64 linux-2.6.32.29 操 作: intel pro 1000 系列15.4的驱动,编译安装 e1000-8.0.18 出现问题:编译的时候提示缺少头文件 mmzone.h ....bounds.h...等 include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory 原因:bounds.h是在编译内核时生成的,类似于编译产生的.o文件,如果你运行 "make clean" or "make distclean",这个文件就会被清除掉(详情查看内核Makefile)。因此,如果再利用此内核源码编译内核模块,如果有涉及bounds.h,就会出现找不到该文件的错误。解决:独立内核目录之外编译模块时,要确保makefile文件中所定义的内核源代码树已经make过一遍,且没有make clean。这样就不会清除生成的bound.h头文件,这个文件是生成模块必须的。 或者"make prepare" 这样就会重新生成bounds.h,再看看其内容: #ifndef __LINUX_BOUNDS_H__ #define __LINUX_BOUNDS_H__ /* * DO NOT MODIFY. * * This file was generated by Kbuild * */ #define NR_PAGEFLAGS 19 /* __NR_PAGEFLAGS @ */ #define MAX_NR_ZONES 3 /* __MAX_NR_ZONES @ */#endif 参考:http://blog.csdn.net/wby0322/archive/2010/05/26/5624565.aspx
include/linux/mmzone.h:197:5: warning: "MAX_NR_ZONES" is not defined
- 编译e1000 缺少:mmzone.h bounds.h
- 编译内核模块 .ko文件缺少:mmzone.h bounds.h
- 编译内核模块 .ko文件的注意事项 缺少:mmzone.h bounds.h
- 编译内核模块 .ko文件的注意事项 缺少:mmzone.h bounds.h
- 编译内核模块 .ko文件的注意事项 缺少:mmzone.h bounds.h
- 编译的时候提示缺少头文件 mmzone.h ....bounds.h
- include/linux/mmzone.h
- include/linux/mmzone.h
- VS2008编译缺少atlrx.h的解决
- VS2008编译缺少atlrx.h的解决
- VS2008编译缺少atlrx.h的解决
- 编译时出现缺少 Python.h 错误
- centos编译错误缺少term.h
- 编译第三方库时缺少libltdl.h库
- bfs编译失败,编译gflags时缺少config.h
- 缺少 H.264解码器
- 缺少sasl.h
- linux 关于编译模块缺少config.h而…
- 安全一
- sscanf 与scanf
- 批量执行SQL文件
- NoSQL数据库探讨之一 - 为什么要用非关系数据库?
- 基于netvibes源码实现类似igoogle的个性化主页
- 编译e1000 缺少:mmzone.h bounds.h
- DSP DM642编译错误"err:15-bit displacment is not algned...."
- NOI2009诗人小G(P=2时做法)
- Linux kernel source not configured:missing autoconf.h
- C语言 #define
- JavaScript权威指南 Loan Calculator示例说明
- struts2+hibernate3+spring2读书笔记7(Struts 2 标签库)
- Useful Website
- data model essential 之读书笔记(四)