LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1458|回复: 5

madwifi 在ubuntu10.04下编译错误,请高手赐教!

[复制链接]
发表于 2011-1-26 12:15:57 | 显示全部楼层 |阅读模式
如题:
rgwan@rgwan-desktop:/usr/src/madwifi-0.9.4$ make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.32-27-generic/build SUBDIRS=/usr/src/madwifi-0.9.4 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-27-generic'
  CC [M]  /usr/src/madwifi-0.9.4/ath/if_ath.o
In file included from /usr/src/madwifi-0.9.4/ath/../net80211/ieee80211_monitor.h:45,
                 from /usr/src/madwifi-0.9.4/ath/if_ath.c:71:
/usr/src/madwifi-0.9.4/ath/../ath/if_athvar.h:98: error: conflicting types for 'irqreturn_t'
include/linux/irqreturn.h:16: note: previous declaration of 'irqreturn_t' was here
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_attach':
/usr/src/madwifi-0.9.4/ath/if_ath.c:402: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c:678: error: 'struct net_device' has no member named 'open'
/usr/src/madwifi-0.9.4/ath/if_ath.c:679: error: 'struct net_device' has no member named 'stop'
/usr/src/madwifi-0.9.4/ath/if_ath.c:680: error: 'struct net_device' has no member named 'hard_start_xmit'
/usr/src/madwifi-0.9.4/ath/if_ath.c:681: error: 'struct net_device' has no member named 'tx_timeout'
/usr/src/madwifi-0.9.4/ath/if_ath.c:683: error: 'struct net_device' has no member named 'set_multicast_list'
/usr/src/madwifi-0.9.4/ath/if_ath.c:684: error: 'struct net_device' has no member named 'do_ioctl'
/usr/src/madwifi-0.9.4/ath/if_ath.c:685: error: 'struct net_device' has no member named 'get_stats'
/usr/src/madwifi-0.9.4/ath/if_ath.c:686: error: 'struct net_device' has no member named 'set_mac_address'
/usr/src/madwifi-0.9.4/ath/if_ath.c:687: error: 'struct net_device' has no member named 'change_mtu'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_detach':
/usr/src/madwifi-0.9.4/ath/if_ath.c:958: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c:1005: error: 'struct net_device' has no member named 'stop'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_vap_create':
/usr/src/madwifi-0.9.4/ath/if_ath.c:1014: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c:1084: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_vap_delete':
/usr/src/madwifi-0.9.4/ath/if_ath.c:1248: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_suspend':
/usr/src/madwifi-0.9.4/ath/if_ath.c:1350: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_resume':
/usr/src/madwifi-0.9.4/ath/if_ath.c:1359: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_intr':
/usr/src/madwifi-0.9.4/ath/if_ath.c:1652: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_bmiss_tasklet':
/usr/src/madwifi-0.9.4/ath/if_ath.c:1843: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_init':
/usr/src/madwifi-0.9.4/ath/if_ath.c:1886: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_stop_locked':
/usr/src/madwifi-0.9.4/ath/if_ath.c:2014: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_stop':
/usr/src/madwifi-0.9.4/ath/if_ath.c:2078: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_reset':
/usr/src/madwifi-0.9.4/ath/if_ath.c:2182: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_tx_startraw':
/usr/src/madwifi-0.9.4/ath/if_ath.c:2343: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_hardstart':
/usr/src/madwifi-0.9.4/ath/if_ath.c:2558: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_mgtstart':
/usr/src/madwifi-0.9.4/ath/if_ath.c:2875: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_key_alloc':
/usr/src/madwifi-0.9.4/ath/if_ath.c:3237: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_key_delete':
/usr/src/madwifi-0.9.4/ath/if_ath.c:3304: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_key_set':
/usr/src/madwifi-0.9.4/ath/if_ath.c:3380: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_key_update_begin':
/usr/src/madwifi-0.9.4/ath/if_ath.c:3395: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_key_update_end':
/usr/src/madwifi-0.9.4/ath/if_ath.c:3416: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_mode_init':
/usr/src/madwifi-0.9.4/ath/if_ath.c:3504: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_updateslot':
/usr/src/madwifi-0.9.4/ath/if_ath.c:3555: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_beacon_dturbo_config':
/usr/src/madwifi-0.9.4/ath/if_ath.c:3585: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_beacon_dturbo_update':
/usr/src/madwifi-0.9.4/ath/if_ath.c:3633: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_turbo_switch_mode':
/usr/src/madwifi-0.9.4/ath/if_ath.c:3776: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_bstuck_tasklet':
/usr/src/madwifi-0.9.4/ath/if_ath.c:4368: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_node_alloc':
/usr/src/madwifi-0.9.4/ath/if_ath.c:4820: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_node_cleanup':
/usr/src/madwifi-0.9.4/ath/if_ath.c:4855: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_node_free':
/usr/src/madwifi-0.9.4/ath/if_ath.c:4909: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_rx_capture':
/usr/src/madwifi-0.9.4/ath/if_ath.c:5404: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_tx_capture':
/usr/src/madwifi-0.9.4/ath/if_ath.c:5437: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_recv_mgmt':
/usr/src/madwifi-0.9.4/ath/if_ath.c:5502: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_rx_tasklet':
/usr/src/madwifi-0.9.4/ath/if_ath.c:5574: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_grppoll_start':
/usr/src/madwifi-0.9.4/ath/if_ath.c:6013: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_grppoll_stop':
/usr/src/madwifi-0.9.4/ath/if_ath.c:6226: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_wme_update':
/usr/src/madwifi-0.9.4/ath/if_ath.c:6441: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_uapsd_flush':
/usr/src/madwifi-0.9.4/ath/if_ath.c:6460: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_tx_start':
/usr/src/madwifi-0.9.4/ath/if_ath.c:6655: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_tx_tasklet_q0':
/usr/src/madwifi-0.9.4/ath/if_ath.c:7495: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_tx_tasklet_q0123':
/usr/src/madwifi-0.9.4/ath/if_ath.c:7516: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_tx_tasklet':
/usr/src/madwifi-0.9.4/ath/if_ath.c:7551: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_tx_timeout':
/usr/src/madwifi-0.9.4/ath/if_ath.c:7574: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_calibrate':
/usr/src/madwifi-0.9.4/ath/if_ath.c:7937: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_scan_start':
/usr/src/madwifi-0.9.4/ath/if_ath.c:8003: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_scan_end':
/usr/src/madwifi-0.9.4/ath/if_ath.c:8023: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_set_channel':
/usr/src/madwifi-0.9.4/ath/if_ath.c:8041: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_set_coverageclass':
/usr/src/madwifi-0.9.4/ath/if_ath.c:8057: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_mhz2ieee':
/usr/src/madwifi-0.9.4/ath/if_ath.c:8067: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_newstate':
/usr/src/madwifi-0.9.4/ath/if_ath.c:8082: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_setup_stationkey':
/usr/src/madwifi-0.9.4/ath/if_ath.c:8471: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_newassoc':
/usr/src/madwifi-0.9.4/ath/if_ath.c:8631: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_getchannels':
/usr/src/madwifi-0.9.4/ath/if_ath.c:8662: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_xr_rate_setup':
/usr/src/madwifi-0.9.4/ath/if_ath.c:8832: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_setup_subrates':
/usr/src/madwifi-0.9.4/ath/if_ath.c:8861: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_rate_setup':
/usr/src/madwifi-0.9.4/ath/if_ath.c:8904: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_getstats':
/usr/src/madwifi-0.9.4/ath/if_ath.c:9141: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_set_mac_address':
/usr/src/madwifi-0.9.4/ath/if_ath.c:9164: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_change_mtu':
/usr/src/madwifi-0.9.4/ath/if_ath.c:9196: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_ioctl':
/usr/src/madwifi-0.9.4/ath/if_ath.c:9283: error: 'struct net_device' has no member named 'priv'
cc1: warnings being treated as errors
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_sysctl_halparam':
/usr/src/madwifi-0.9.4/ath/if_ath.c:9370: error: passing argument 5 of 'proc_dointvec' from incompatible pointer type
include/linux/sysctl.h:985: note: expected 'loff_t *' but argument is of type 'size_t *'
/usr/src/madwifi-0.9.4/ath/if_ath.c:9370: error: too many arguments to function 'proc_dointvec'
/usr/src/madwifi-0.9.4/ath/if_ath.c:9562: error: passing argument 5 of 'proc_dointvec' from incompatible pointer type
include/linux/sysctl.h:985: note: expected 'loff_t *' but argument is of type 'size_t *'
/usr/src/madwifi-0.9.4/ath/if_ath.c:9562: error: too many arguments to function 'proc_dointvec'
/usr/src/madwifi-0.9.4/ath/if_ath.c: At top level:
/usr/src/madwifi-0.9.4/ath/if_ath.c:9574: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9580: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9586: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9592: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9598: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9604: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9610: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9616: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9623: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9630: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9636: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9642: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9648: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9654: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9660: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9667: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9673: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9680: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c:9686: error: initialization from incompatible pointer type
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_announce':
/usr/src/madwifi-0.9.4/ath/if_ath.c:9779: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c: In function 'ath_rcv_dev_event':
/usr/src/madwifi-0.9.4/ath/if_ath.c:9926: error: 'struct net_device' has no member named 'priv'
/usr/src/madwifi-0.9.4/ath/if_ath.c:9928: error: 'struct net_device' has no member named 'open'
make[3]: *** [/usr/src/madwifi-0.9.4/ath/if_ath.o] Error 1
make[2]: *** [/usr/src/madwifi-0.9.4/ath] Error 2
make[1]: *** [_module_/usr/src/madwifi-0.9.4] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-27-generic'
make: *** [modules] 错误 2
请高手赐教!
发表于 2011-1-27 11:54:45 | 显示全部楼层
好象是缺少头文件或者是头文件错误,结构体net_device的定义有问题啊,去查查文件吧
回复 支持 反对

使用道具 举报

发表于 2011-1-27 16:16:00 | 显示全部楼层
某用SVN版一直很正常的说
回复 支持 反对

使用道具 举报

发表于 2011-1-27 16:18:19 | 显示全部楼层
这个不好说,可能是configure的时候头文件路径没有选择正确吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-2-6 17:55:07 | 显示全部楼层
没configure.只有make的内核模块。。。。拜托。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-2-6 18:03:47 | 显示全部楼层
没configure.只有make的内核模块。。。。拜托。。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表