tbejava
(usa Ubuntu)
Enviado em 26/05/2013 - 15:27h
Rapaz, eu errei no uname -r? tá batendo o desânimo.
E deu erro quando dei o make modules denovo.
root@tiago-pc:~# uname -r
3.8.0-19-generic
root@tiago-pc:~# mkinitramfs -o /boot/initrd.img-3.8.0-19-generic 3.8.0-19-generic
root@tiago-pc:~# tar -xvjf r8168-8.025.00.tar.bz2
tar (child): r8168-8.025.00.tar.bz2: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
root@tiago-pc:~# cd /home/tiago/Documentos
root@tiago-pc:~/Documentos# tar -xvjf r8168-8.025.00.tar.bz2
r8168-8.025.00/
r8168-8.025.00/Makefile
r8168-8.025.00/src/
r8168-8.025.00/src/rtl_eeprom.h
r8168-8.025.00/src/r8168_asf.h
r8168-8.025.00/src/rtltool.h
r8168-8.025.00/src/r8168_asf.c
r8168-8.025.00/src/r8168_n.c
r8168-8.025.00/src/rtl_eeprom.c
r8168-8.025.00/src/rtltool.c
r8168-8.025.00/src/Makefile
r8168-8.025.00/src/r8168.h
r8168-8.025.00/src/Makefile_linux24x
r8168-8.025.00/README
r8168-8.025.00/autorun.sh
root@tiago-pc:~/Documentos# cd r8168-8.025.00
root@tiago-pc:~/Documentos/r8168-8.025.00# make clean
make -C src/ clean
make[1]: Entering directory `/home/tiago/Documentos/r8168-8.025.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers Module.markers *.order
make[1]: Leaving directory `/home/tiago/Documentos/r8168-8.025.00/src'
root@tiago-pc:~/Documentos/r8168-8.025.00# make modules
make -C src/ modules
make[1]: Entering directory `/home/tiago/Documentos/r8168-8.025.00/src'
make -C /lib/modules/3.8.0-19-generic/build SUBDIRS=/home/tiago/Documentos/r8168-8.025.00/src modules
make[2]: Entering directory `/usr/src/linux-headers-3.8.0-19-generic'
CC [M] /home/tiago/Documentos/r8168-8.025.00/src/r8168_n.o
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c: In function ‘rtl8168_rx_vlan_skb’:
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:1753:3: error: implicit declaration of function ‘vlan_hwaccel_receive_skb’ [-Werror=implicit-function-declaration]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c: At top level:
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2127:2: error: unknown field ‘get_rx_csum’ specified in initializer
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2127:2: warning: initialization from incompatible pointer type [enabled by default]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2127:2: warning: (near initialization for ‘rtl8168_ethtool_ops.nway_reset’) [enabled by default]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2128:2: error: unknown field ‘set_rx_csum’ specified in initializer
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2128:2: warning: initialization from incompatible pointer type [enabled by default]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2128:2: warning: (near initialization for ‘rtl8168_ethtool_ops.get_link’) [enabled by default]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2129:2: error: unknown field ‘get_tx_csum’ specified in initializer
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2129:2: warning: initialization from incompatible pointer type [enabled by default]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2129:2: warning: (near initialization for ‘rtl8168_ethtool_ops.get_eeprom_len’) [enabled by default]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2130:2: error: unknown field ‘set_tx_csum’ specified in initializer
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2130:2: warning: initialization from incompatible pointer type [enabled by default]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2130:2: warning: (near initialization for ‘rtl8168_ethtool_ops.get_eeprom’) [enabled by default]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2131:2: error: unknown field ‘get_sg’ specified in initializer
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2131:2: warning: initialization from incompatible pointer type [enabled by default]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2131:2: warning: (near initialization for ‘rtl8168_ethtool_ops.set_eeprom’) [enabled by default]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2132:2: error: unknown field ‘set_sg’ specified in initializer
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2132:2: warning: initialization from incompatible pointer type [enabled by default]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2132:2: warning: (near initialization for ‘rtl8168_ethtool_ops.get_coalesce’) [enabled by default]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2134:2: error: unknown field ‘get_tso’ specified in initializer
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2134:14: error: ‘ethtool_op_get_tso’ undeclared here (not in a function)
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2135:2: error: unknown field ‘set_tso’ specified in initializer
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2135:14: error: ‘ethtool_op_set_tso’ undeclared here (not in a function)
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c: In function ‘rtl8168_netpoll’:
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:10745:2: error: implicit declaration of function ‘disable_irq’ [-Werror=implicit-function-declaration]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:10751:2: error: implicit declaration of function ‘enable_irq’ [-Werror=implicit-function-declaration]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c: At top level:
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:11597:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_init_board’
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:11924:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_init_one’
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:12076:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_remove_one’
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c: In function ‘rtl8168_open’:
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:12162:2: error: implicit declaration of function ‘request_irq’ [-Werror=implicit-function-declaration]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:12162:91: error: ‘IRQF_SHARED’ undeclared (first use in this function)
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:12162:91: note: each undeclared identifier is reported only once for each function it appears in
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c: In function ‘rtl8168_xmit_frags’:
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:13594:3: error: incompatible type for argument 1 of ‘lowmem_page_address’
In file included from /usr/src/linux-headers-3.8.0-19-generic/arch/x86/include/asm/pci.h:4:0,
from include/linux/pci.h:1422,
from /home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:41:
include/linux/mm.h:770:30: note: expected ‘const struct page *’ but argument is of type ‘struct <anonymous>’
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c: In function ‘rtl8168_close’:
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:14268:3: error: implicit declaration of function ‘free_irq’ [-Werror=implicit-function-declaration]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c: At top level:
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:14471:12: error: ‘rtl8168_init_one’ undeclared here (not in a function)
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:14472:2: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:14472:25: error: ‘rtl8168_remove_one’ undeclared here (not in a function)
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:13658:1: warning: ‘rtl8168_start_xmit’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:13566:1: warning: ‘rtl8168_tx_timeout’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:14366:19: warning: ‘rtl8168_get_stats’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:13186:1: warning: ‘rtl8168_change_mtu’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:10775:1: warning: ‘rtl8168_set_mac_address’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:14121:12: warning: ‘rtl8168_poll’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:815:13: warning: ‘rtl8168_driver_start’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:834:13: warning: ‘rtl8168_driver_stop’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:1123:1: warning: ‘rtl8168_xmii_reset_pending’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:1138:1: warning: ‘rtl8168_xmii_link_ok’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:1150:1: warning: ‘rtl8168_xmii_reset_enable’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:1286:1: warning: ‘rtl8168_link_option’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:1527:1: warning: ‘rtl8168_set_speed_xmii’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:1707:1: warning: ‘rtl8168_vlan_rx_register’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:1781:13: warning: ‘rtl8168_gset_xmii’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2119:27: warning: ‘rtl8168_ethtool_ops’ defined but not used [-Wunused-variable]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2464:12: warning: ‘rtl8168_get_mac_version’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2563:1: warning: ‘rtl8168_print_mac_version’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:2605:1: warning: ‘rtl8168_hw_phy_config’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:10740:1: warning: ‘rtl8168_netpoll’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:10756:1: warning: ‘rtl8168_release_board’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:11483:1: warning: ‘rtl8168_do_ioctl’ defined but not used [-Wunused-function]
/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.c:11878:17: warning: ‘rtl8168_try_msi’ defined but not used [-Wunused-function]
cc1: some warnings being treated as errors
make[3]: *** [/home/tiago/Documentos/r8168-8.025.00/src/r8168_n.o] Error 1
make[2]: *** [_module_/home/tiago/Documentos/r8168-8.025.00/src] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.8.0-19-generic'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/tiago/Documentos/r8168-8.025.00/src'
make: *** [modules] Error 2
root@tiago-pc:~/Documentos/r8