佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1531|回复: 6

make install 的 error2 ...

[复制链接]
发表于 30-3-2012 11:01 PM | 显示全部楼层 |阅读模式
本帖最后由 C@RI 于 30-3-2012 11:03 PM 编辑

我已经跟README的步骤了的哦。。。不过还是出现ERROR2 。。。
请问是apa hal的哦。。。。
谢谢先。。。
我的是 LAN : Asus P5G41T-M LX Atheros AR8131 LAN Ubuntu 10.04
驱动程序是跟这CD来的哦。。。应该ok的呀。

bcyap@ysbpos:~/Downloads/lan/src$ sudo make install
[sudo] password for bcyap:
make -C /lib/modules/2.6.32-40-generic/build SUBDIRS=/home/bcyap/Downloads/lan/src modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-40-generic'
  CC [M]  /home/bcyap/Downloads/lan/src/atl1e_main.o
/home/bcyap/Downloads/lan/src/atl1e_main.c: In function ‘atl1e_request_irq’:
/home/bcyap/Downloads/lan/src/atl1e_main.c:156: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
include/linux/interrupt.h:126: note: expected ‘irq_handler_t’ but argument is of type ‘void (*)(int,  void *)’
/home/bcyap/Downloads/lan/src/atl1e_main.c: In function ‘atl1e_probe’:
/home/bcyap/Downloads/lan/src/atl1e_main.c:287: error: ‘struct net_device’ has no member named ‘open’
/home/bcyap/Downloads/lan/src/atl1e_main.c:288: error: ‘struct net_device’ has no member named ‘stop’
/home/bcyap/Downloads/lan/src/atl1e_main.c:289: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/bcyap/Downloads/lan/src/atl1e_main.c:290: error: ‘struct net_device’ has no member named ‘get_stats’
/home/bcyap/Downloads/lan/src/atl1e_main.c:291: error: ‘struct net_device’ has no member named ‘set_multicast_list’
/home/bcyap/Downloads/lan/src/atl1e_main.c:292: error: ‘struct net_device’ has no member named ‘set_mac_address’
/home/bcyap/Downloads/lan/src/atl1e_main.c:293: error: ‘struct net_device’ has no member named ‘change_mtu’
/home/bcyap/Downloads/lan/src/atl1e_main.c:294: error: ‘struct net_device’ has no member named ‘do_ioctl’
/home/bcyap/Downloads/lan/src/atl1e_main.c:305: error: ‘struct net_device’ has no member named ‘tx_timeout’
/home/bcyap/Downloads/lan/src/atl1e_main.c:313: error: ‘struct net_device’ has no member named ‘vlan_rx_register’
/home/bcyap/Downloads/lan/src/atl1e_main.c:316: error: ‘struct net_device’ has no member named ‘poll_controller’
make[2]: *** [/home/bcyap/Downloads/lan/src/atl1e_main.o] Error 1
make[1]: *** [_module_/home/bcyap/Downloads/lan/src] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-40-generic'
make: *** [default] Error 2
bcyap@ysbpos:~/Downloads/lan/src$
回复

使用道具 举报


ADVERTISEMENT

发表于 31-3-2012 12:41 AM | 显示全部楼层
回复 1# C@RI


   gcc 版本不合适?
回复

使用道具 举报

发表于 31-3-2012 09:34 AM | 显示全部楼层
本帖最后由 tanks 于 31-3-2012 09:39 AM 编辑

Driver 與Linux kernel 的版本不合。剛查了一下,linux2.6.31版對struct net_device 有更動.
Keyword : Linux 2.6 struct net_device
會教你怎么修改driver
回复

使用道具 举报

发表于 31-3-2012 09:28 PM | 显示全部楼层
回复 3# tanks


    这位仁兄,不是用2.6的核心,是3。3的
回复

使用道具 举报

 楼主| 发表于 31-3-2012 10:19 PM | 显示全部楼层
很好settle了!感激。。。各位!
回复

使用道具 举报

发表于 1-4-2012 12:25 AM | 显示全部楼层
回复 4# sktan007

從他make的錯誤資訊來看, 用的應該是2.6.32 的kernel, 而用的network driver 應該是只能在2.6.31 之前的版本運作。只要稍微修改一下driver source code 就可以compile成功了.不知是哪弄錯了呢? 如果真是不才弄錯了, 就請原諒小弟並把我給忘了吧。。。。。(逃)
回复

使用道具 举报

Follow Us
发表于 1-4-2012 09:02 PM | 显示全部楼层
回复 6# tanks


    对不起,搞錯人!是C@RI不是Hackinstosh
回复

使用道具 举报

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

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 3-6-2024 10:15 AM , Processed in 0.059010 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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