- 论坛徽章:
- 0
|
在编译我的无限网卡驱动时缺少bounds.h文件,哪位大侠有请传我一份:gygy@ahpost.com.cn 谢谢先!!
错误如下:
[root@czgy ieee80211-1.2.18]# make
Checking in /lib/modules/2.6.30 for ieee80211 components...
make -C /lib/modules/2.6.30/build M=/study/mytools/src/wireless/ieee80211-1.2.18 modules
make[1]: Entering directory `/usr/src/linux-2.6.30'
CC [M] /study/mytools/src/wireless/ieee80211-1.2.18/ieee80211_module.o
在包含自 include/linux/gfp.h:4 的文件中,
从 include/linux/kmod.h:22,
从 include/linux/module.h:13,
从 include/linux/textsearch.h:7,
从 include/linux/skbuff.h:26,
从 include/linux/if_ether.h:121,
从 include/linux/netdevice.h:29,
从 include/linux/if_arp.h:26,
从 /study/mytools/src/wireless/ieee80211-1.2.18/ieee80211_module.c:35:
include/linux/mmzone.h:18:26: 错误:linux/bounds.h:没有那个文件或目录
include/linux/mmzone.h:256:5: 警告:“MAX_NR_ZONES”未定义
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from include/linux/textsearch.h:7,
from include/linux/skbuff.h:26,
from include/linux/if_ether.h:121,
from include/linux/netdevice.h:29,
from include/linux/if_arp.h:26,
from /study/mytools/src/wireless/ieee80211-1.2.18/ieee80211_module.c:35:
include/linux/mmzone.h:290: 错误:‘MAX_NR_ZONES’ 未声明 (不在函数内)
在包含自 include/linux/scatterlist.h:6 的文件中,
从 include/linux/dma-mapping.h:7,
从 include/linux/dmaengine.h:26,
从 include/linux/skbuff.h:29,
从 include/linux/if_ether.h:121,
从 include/linux/netdevice.h:29,
从 include/linux/if_arp.h:26,
从 /study/mytools/src/wireless/ieee80211-1.2.18/ieee80211_module.c:35:
include/linux/mm.h:446:63: 警告:“NR_PAGEFLAGS”未定义
include/linux/mm.h:494:62: 警告:“NR_PAGEFLAGS”未定义
/study/mytools/src/wireless/ieee80211-1.2.18/ieee80211_module.c: In function ‘ieee80211_init’:
/study/mytools/src/wireless/ieee80211-1.2.18/ieee80211_module.c:268: 错误:‘proc_net’ 未声明 (在此函数内第一次使用)
/study/mytools/src/wireless/ieee80211-1.2.18/ieee80211_module.c:268: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
/study/mytools/src/wireless/ieee80211-1.2.18/ieee80211_module.c:268: 错误:所在的函数内只报告一次。)
/study/mytools/src/wireless/ieee80211-1.2.18/ieee80211_module.c: In function ‘ieee80211_exit’:
/study/mytools/src/wireless/ieee80211-1.2.18/ieee80211_module.c:297: 错误:‘proc_net’ 未声明 (在此函数内第一次使用)
make[2]: *** [/study/mytools/src/wireless/ieee80211-1.2.18/ieee80211_module.o] 错误 1
make[1]: *** [_module_/study/mytools/src/wireless/ieee80211-1.2.18] 错误 2
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make: *** [modules] 错误 2 |
|