Realtek RTL8168网卡驱动安装报错~

sudo ./autorun.shCheck old driver and unload it.
Build the module and install
/tmp/r8168-8.035.00/src/r8168_n.c:14545:1: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘rtl8168_init_board’
/tmp/r8168-8.035.00/src/r8168_n.c:14715:1: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘rtl8168_init_sequence’
/tmp/r8168-8.035.00/src/r8168_n.c:14968:1: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘rtl8168_init_one’
/tmp/r8168-8.035.00/src/r8168_n.c:15132:1: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘rtl8168_remove_one’
/tmp/r8168-8.035.00/src/r8168_n.c:17651:12: 错误: ‘rtl8168_init_one’未声明(不在函数内)
/tmp/r8168-8.035.00/src/r8168_n.c:17652:2: 错误: 隐式声明函数‘__devexit_p’ [-Werror=implicit-function-declaration]
/tmp/r8168-8.035.00/src/r8168_n.c:17652:25: 错误: ‘rtl8168_remove_one’未声明(不在函数内)
/tmp/r8168-8.035.00/src/r8168_n.c:17301:12: 警告: ‘rtl8168_poll’定义后未使用 [-Wunused-function]
/tmp/r8168-8.035.00/src/r8168_n.c:1368:1: 警告: ‘rtl8168_xmii_reset_pending’定义后未使用 [-Wunused-function]
/tmp/r8168-8.035.00/src/r8168_n.c:1383:1: 警告: ‘rtl8168_xmii_link_ok’定义后未使用 [-Wunused-function]
/tmp/r8168-8.035.00/src/r8168_n.c:1395:1: 警告: ‘rtl8168_xmii_reset_enable’定义后未使用 [-Wunused-function]
/tmp/r8168-8.035.00/src/r8168_n.c:1544:1: 警告: ‘rtl8168_link_option’定义后未使用 [-Wunused-function]
/tmp/r8168-8.035.00/src/r8168_n.c:1823:1: 警告: ‘rtl8168_set_speed_xmii’定义后未使用 [-Wunused-function]
/tmp/r8168-8.035.00/src/r8168_n.c:2151:13: 警告: ‘rtl8168_gset_xmii’定义后未使用 [-Wunused-function]
/tmp/r8168-8.035.00/src/r8168_n.c:2886:13: 警告: ‘rtl8168_get_mac_version’定义后未使用 [-Wunused-function]
/tmp/r8168-8.035.00/src/r8168_n.c:3002:1: 警告: ‘rtl8168_print_mac_version’定义后未使用 [-Wunused-function]
/tmp/r8168-8.035.00/src/r8168_n.c:3044:1: 警告: ‘rtl8168_hw_phy_config’定义后未使用 [-Wunused-function]
/tmp/r8168-8.035.00/src/r8168_n.c:13681:1: 警告: ‘rtl8168_release_board’定义后未使用 [-Wunused-function]
/tmp/r8168-8.035.00/src/r8168_n.c:14914:17: 警告: ‘rtl8168_try_msi’定义后未使用 [-Wunused-function]
cc1: some warnings being treated as errors
make[3]: *** [/tmp/r8168-8.035.00/src/r8168_n.o] 错误 1
make[2]: *** [module/tmp/r8168-8.035.00/src] 错误 2
make[1]: *** [modules] 错误 2
make: *** [modules] 错误 2

怎么解决,上google发现这个问题都好久了~现在还没有解决!难道Ubuntu这是要抛弃RTL8168了吗? 现在完全上不了网~

ubuntukylin的网卡驱动是r8169的,但是没有r8168~,求解决!!

sudo apt-get install build-essential把开发包补齐试试

现在我在ubuntu是根本上不了网的~不过,我刚找到一个帖子,兴许这个可依据解决https://bugs.launchpad.net/ubuntu/+source/r8168/+bug/1108068 我重启会ubuntu试试

Dodoro,重启后的结果如何?

我装的时候没有无线网卡驱动,但是插上手机能发现多出一个已经驱动好的网卡,就通过手机USB共享热点方式更新驱动,只要想办法总还是有机会的