|
|

楼主 |
发表于 2009-2-6 18:22:33
|
显示全部楼层
realtek 8102的网卡,从intel上下的驱动
make gcc kernel-header都装了,
make clean modules就完蛋了.
- make -C src/ clean
- make[1]: Entering directory `/root/r8101-1.006.00/src'
- rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers rset
- make[1]: Leaving directory `/root/r8101-1.006.00/src'
- make -C src/ modules
- make[1]: Entering directory `/root/r8101-1.006.00/src'
- make -C /lib/modules/2.6.25-ARCH/build SUBDIRS=/root/r8101-1.006.00/src modules
- make[2]: Entering directory `/usr/src/linux-2.6.25-ARCH'
- CC [M] /root/r8101-1.006.00/src/r8101_n.o
- /root/r8101-1.006.00/src/r8101_n.c: In function 'rtl8101_init_board':
- /root/r8101-1.006.00/src/r8101_n.c:2193: error: implicit declaration of function 'SET_MODULE_OWNER'
- /root/r8101-1.006.00/src/r8101_n.c: In function 'rtl8101_init_one':
- /root/r8101-1.006.00/src/r8101_n.c:2552: error: 'struct net_device' has no member named 'poll'
- /root/r8101-1.006.00/src/r8101_n.c:2553: error: 'struct net_device' has no member named 'weight'
- /root/r8101-1.006.00/src/r8101_n.c: In function 'rtl8101_rx_interrupt':
- /root/r8101-1.006.00/src/r8101_n.c:3601: error: 'struct net_device' has no member named 'quota'
- /root/r8101-1.006.00/src/r8101_n.c:3601: warning: type defaults to 'int' in declaration of '_y'
- /root/r8101-1.006.00/src/r8101_n.c:3601: error: 'struct net_device' has no member named 'quota'
- /root/r8101-1.006.00/src/r8101_n.c:3601: warning: comparison of distinct pointer types lacks a cast
- /root/r8101-1.006.00/src/r8101_n.c: In function 'rtl8101_interrupt':
- /root/r8101-1.006.00/src/r8101_n.c:3781: error: too few arguments to function 'netif_rx_schedule_prep'
- /root/r8101-1.006.00/src/r8101_n.c:3782: error: too few arguments to function '__netif_rx_schedule'
- /root/r8101-1.006.00/src/r8101_n.c: In function 'rtl8101_poll':
- /root/r8101-1.006.00/src/r8101_n.c:3828: error: 'struct net_device' has no member named 'quota'
- /root/r8101-1.006.00/src/r8101_n.c:3828: warning: type defaults to 'int' in declaration of '_y'
- /root/r8101-1.006.00/src/r8101_n.c:3828: error: 'struct net_device' has no member named 'quota'
- /root/r8101-1.006.00/src/r8101_n.c:3836: error: 'struct net_device' has no member named 'quota'
- /root/r8101-1.006.00/src/r8101_n.c:3839: error: too few arguments to function 'netif_rx_complete'
- make[3]: *** [/root/r8101-1.006.00/src/r8101_n.o] Error 1
- make[2]: *** [_module_/root/r8101-1.006.00/src] Error 2
- make[2]: Leaving directory `/usr/src/linux-2.6.25-ARCH'
- make[1]: *** [modules] Error 2
- make[1]: Leaving directory `/root/r8101-1.006.00/src'
- make: *** [modules] Error 2
复制代码 |
|