|
我的网卡是RealTek RTL8169/8110 Gigabit Ethernet NIC(微星主板上集成的)在安装红旗桌面4.1之后,系统可以认出网卡,但是没有驱动。 于是下载了驱动,但是在make 的时候总是提示:
make -C src/ clean
make[1]: Entering directory `/tmp/linux-8169/src'
rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags
make[1]: Leaving directory `/tmp/linux-8169/src'
make -C src/ modules
make[1]: Entering directory `/tmp/linux-8169/src'
make -f Makefile_linux24x
make[2]: Entering directory `/tmp/linux-8169/src'
gcc -O6 -Wall -DMODULE -D__KERNEL__ -DLINUX -I /usr/src/linux-2.4.26-1/include/ -c r8169_n.c -o r8169.o
r8169_n.c:412: conflicting types for `irqreturn_t'
/usr/src/linux-2.4.26-1/include/linux/interrupt.h:16: previous declaration of `irqreturn_t'
r8169_n.c:413:1: warning: "IRQ_NONE" redefined
In file included from /usr/src/linux-2.4.26-1/include/asm/highmem.h:25,
from /usr/src/linux-2.4.26-1/include/linux/highmem.h:11,
from /usr/src/linux-2.4.26-1/include/linux/vmalloc.h:8,
from /usr/src/linux-2.4.26-1/include/asm/io.h:47,
from /usr/src/linux-2.4.26-1/include/asm/pci.h:41,
from /usr/src/linux-2.4.26-1/include/linux/pci.h:680,
from r8169_n.c:63:
/usr/src/linux-2.4.26-1/include/linux/interrupt.h:17:1: warning: this is the location of the previous definition
r8169_n.c:414:1: warning: "IRQ_HANDLED" redefined
/usr/src/linux-2.4.26-1/include/linux/interrupt.h:18:1: warning: this is the location of the previous definition
make[2]: *** [modules] Error 1
make[2]: Leaving directory `/tmp/linux-8169/src'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/tmp/linux-8169/src'
make: *** [modules] Error 2
这个到底是怎么回事呢?应该如何做才能使用网卡呢? |
|