ndiswrapper模块 编译错误

内核编译和嵌入式产品的设计与开发
回复
ztkx
帖子: 9
注册时间: 2005-10-26 15:15
送出感谢: 0
接收感谢: 0

ndiswrapper模块 编译错误

#1

帖子 ztkx » 2011-03-27 15:42

编译内核支持ndiswrapper时,会报如下错误

代码: 全选

ubuntu/ndiswrapper/iw_ndis.c:1966:2: error: unknown field ‘num_private’ specified in initializer
ubuntu/ndiswrapper/iw_ndis.c:1966:2: warning: initialization makes pointer from integer without a cast
ubuntu/ndiswrapper/iw_ndis.c:1967:2: error: unknown field ‘num_private_args’ specified in initializer
ubuntu/ndiswrapper/iw_ndis.c:1967:2: warning: excess elements in struct initializer
ubuntu/ndiswrapper/iw_ndis.c:1967:2: warning: (near initialization for ‘ndis_handler_def’)
ubuntu/ndiswrapper/iw_ndis.c:1970:2: error: unknown field ‘private’ specified in initializer
ubuntu/ndiswrapper/iw_ndis.c:1970:2: warning: initialization makes integer from pointer without a cast
ubuntu/ndiswrapper/iw_ndis.c:1970:2: error: initializer element is not computable at load time
ubuntu/ndiswrapper/iw_ndis.c:1970:2: error: (near initialization for ‘ndis_handler_def.num_standard’)
ubuntu/ndiswrapper/iw_ndis.c:1971:2: error: unknown field ‘private_args’ specified in initializer
ubuntu/ndiswrapper/iw_ndis.c:1971:26: warning: initialization from incompatible pointer type
我已经打开了CONFIG_WEXT, 那么看起来是引用不到linux-source-$(ver)/include/net/iw_handlers.h,

我用ndiswrapper最新版编译没有问题,但是内核Makefile在这部分写的太简单,我不知道该怎么改
回复

回到 “内核及嵌入式开发”