Linux
Realtek R8168 網路驅動程序 8.034.00 無法在 CentOS 5.8 64 位下編譯
我正在嘗試在 CentOS 5.8 64 位上編譯 Realtek R8168 驅動程序 8.034.00,我得到了這個:
make -C /lib/modules/2.6.18-308.16.1.el5/build SUBDIRS=/r8168-8.034.00/src clean make[1]: Wejście do katalogu `/usr/src/kernels/2.6.18-308.16.1.el5-x86_64' CLEAN /r8168-8.034.00/src/.tmp_versions make[1]: Opuszczenie katalogu `/usr/src/kernels/2.6.18-308.16.1.el5-x86_64' make -C /lib/modules/2.6.18-308.16.1.el5/build SUBDIRS=/r8168-8.034.00/src modules make[1]: Wejście do katalogu `/usr/src/kernels/2.6.18-308.16.1.el5-x86_64' CC [M] /r8168-8.034.00/src/r8168_n.o /r8168-8.034.00/src/r8168_n.c:55:28: error: linux/pci-aspm.h: Nie ma takiego pliku ani katalogu In file included from /r8168-8.034.00/src/r8168_n.c:68: /r8168-8.034.00/src/r8168.h:294:1: warning: "DMA_BIT_MASK" redefined In file included from include/asm-generic/pci-dma-compat.h:7, from include/asm/pci.h:135, from include/linux/pci.h:886, from /r8168-8.034.00/src/r8168_n.c:41: include/linux/dma-mapping.h:16:1: warning: this is the location of the previous definition In file included from /r8168-8.034.00/src/r8168_n.c:68: /r8168-8.034.00/src/r8168.h:1297:1: warning: "netdev_for_each_mc_addr" redefined In file included from /r8168-8.034.00/src/r8168_n.c:42: include/linux/netdevice.h:190:1: warning: this is the location of the previous definition /r8168-8.034.00/src/r8168_n.c: In function ‘__check_duplex’: /r8168-8.034.00/src/r8168_n.c:277: warning: return from incompatible pointer type /r8168-8.034.00/src/r8168_n.c: In function ‘__check_autoneg’: /r8168-8.034.00/src/r8168_n.c:280: warning: return from incompatible pointer type /r8168-8.034.00/src/r8168_n.c: In function ‘__check_aspm’: /r8168-8.034.00/src/r8168_n.c:283: warning: return from incompatible pointer type /r8168-8.034.00/src/r8168_n.c: In function ‘rtl8168_init_board’: /r8168-8.034.00/src/r8168_n.c:14474: warning: left shift count >= width of type /r8168-8.034.00/src/r8168_n.c: In function ‘rtl8168_init_one’: /r8168-8.034.00/src/r8168_n.c:14868: warning: assignment discards qualifiers from pointer target type /r8168-8.034.00/src/r8168_n.c: In function ‘rtl8168_poll’: /r8168-8.034.00/src/r8168_n.c:17129: warning: cast from pointer to integer of different size make[2]: *** [/r8168-8.034.00/src/r8168_n.o] Błąd 1 make[1]: *** [_module_/r8168-8.034.00/src] Błąd 2 make[1]: Opuszczenie katalogu `/usr/src/kernels/2.6.18-308.16.1.el5-x86_64' make: *** [modules] Błąd 2
如何解決這個問題?核心開發已安裝。我正在使用最新的核心:2.6.18-308.16.1.el5
那是一個錯誤。較新的版本解決了這個問題。