|
楼主 |
发表于 2008-2-24 20:18:58
|
显示全部楼层
今天好好查了查,发现我的网卡是rtl8111B的,按说应该是r8168模块,可是arch自动编译加载的是r8169,用hwdetect --net也是r8169,然后我从rtl网站上下载了它们最新的驱动,可以编译不能成功啊?
make clean modules
make -C src/ clean
make[1]: Entering directory `/root/r8168-8.004.00/r8168-8.004.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/r8168-8.004.00/r8168-8.004.00/src'
make -C src/ modules
make[1]: Entering directory `/root/r8168-8.004.00/r8168-8.004.00/src'
make -C /lib/modules/2.6.24-ARCH/build SUBDIRS=/root/r8168-8.004.00/r8168-8.004.00/src modules
make[2]: Entering directory `/usr/src/linux-2.6.24-ARCH'
CC [M] /root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.o
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c: In function ‘rtl8168_init_board’:
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:2200: error: implicit declaration of function ‘SET_MODULE_OWNER’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c: In function ‘rtl8168_init_one’:
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:2401: error: ‘struct net_device’ has no member named ‘poll’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:2402: error: ‘struct net_device’ has no member named ‘weight’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c: In function ‘rtl8168_rx_interrupt’:
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3549: error: ‘struct net_device’ has no member named ‘quota’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3549: warning: type defaults to ‘int’ in declaration of ‘_y’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3549: error: ‘struct net_device’ has no member named ‘quota’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3549: warning: comparison of distinct pointer types lacks a cast
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c: In function ‘rtl8168_interrupt’:
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3745: error: too few arguments to function ‘netif_rx_schedule_prep’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3746: error: too few arguments to function ‘__netif_rx_schedule’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c: In function ‘rtl8168_poll’:
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3794: error: ‘struct net_device’ has no member named ‘quota’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3794: warning: type defaults to ‘int’ in declaration of ‘_y’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3794: error: ‘struct net_device’ has no member named ‘quota’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3802: error: ‘struct net_device’ has no member named ‘quota’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3805: error: too few arguments to function ‘netif_rx_complete’
make[3]: *** [/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.o] Error 1
make[2]: *** [_module_/root/r8168-8.004.00/r8168-8.004.00/src] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.24-ARCH'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/root/r8168-8.004.00/r8168-8.004.00/src'
make: *** [modules] Error 2
对于这个编译不太明白,那位说说这是为什么? |
|