Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've just performed a fresh install of Ubuntu 13.04 without updates. The network connection isn't working so I'm trying to fix it by following the guide listed in this link

https://unixblogger.wordpress.com/2011/10/18/the-pain-of-an-realtek-rtl8111rtl8168-ethernet-card/

It was going so far so good until I got up to

sudo make clean modules

At which point I received 2 errors and the .ko file wasn't created. I'm fairly new to Linux so I'm not sure how to properly troubleshoot this. This is what came out of the terminal

lewis@Jehuty-OSURR:~/Documents/r8168-8.035.00$ sudo make clean modules make -C src/ clean make[1]: Entering directory/home/lewis/Documents/r8168-8.035.00/src’ make -C /lib/modules/3.8.0-19-generic/build SUBDIRS=/home/lewis/Documents/r8168-8.035.00/src clean make[2]: Entering directory /usr/src/linux-headers-3.8.0-19-generic’ CLEAN /home/lewis/Documents/r8168-8.035.00/src/.tmp_versions make[2]: Leaving directory/usr/src/linux-headers-3.8.0-19-generic’ make[1]: Leaving directory /home/lewis/Documents/r8168-8.035.00/src’ make -C src/ modules make[1]: Entering directory/home/lewis/Documents/r8168-8.035.00/src’ make -C /lib/modules/3.8.0-19-generic/build SUBDIRS=/home/lewis/Documents/r8168-8.035.00/src modules make[2]: Entering directory /usr/src/linux-headers-3.8.0-19-generic’ CC [M] /home/lewis/Documents/r8168-8.035.00/src/r8168_n.o /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:14545:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_init_board’ /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:14715:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_init_sequence’ /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:14968:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_init_one’ /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:15132:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_remove_one’ /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:17651:12: error: ‘rtl8168_init_one’ undeclared here (not in a function) /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:17652:2: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration] /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:17652:25: error: ‘rtl8168_remove_one’ undeclared here (not in a function) /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:17301:12: warning: ‘rtl8168_poll’ defined but not used [-Wunused-function] /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:1368:1: warning: ‘rtl8168_xmii_reset_pending’ defined but not used [-Wunused-function] /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:1383:1: warning: ‘rtl8168_xmii_link_ok’ defined but not used [-Wunused-function] /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:1395:1: warning: ‘rtl8168_xmii_reset_enable’ defined but not used [-Wunused-function] /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:1544:1: warning: ‘rtl8168_link_option’ defined but not used [-Wunused-function] /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:1823:1: warning: ‘rtl8168_set_speed_xmii’ defined but not used [-Wunused-function] /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:2151:13: warning: ‘rtl8168_gset_xmii’ defined but not used [-Wunused-function] /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:2886:13: warning: ‘rtl8168_get_mac_version’ defined but not used [-Wunused-function] /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:3002:1: warning: ‘rtl8168_print_mac_version’ defined but not used [-Wunused-function] /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:3044:1: warning: ‘rtl8168_hw_phy_config’ defined but not used [-Wunused-function] /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:13681:1: warning: ‘rtl8168_release_board’ defined but not used [-Wunused-function] /home/lewis/Documents/r8168-8.035.00/src/r8168_n.c:14914:17: warning: ‘rtl8168_try_msi’ defined but not used [-Wunused-function] cc1: some warnings being treated as errors make[3]: *** [/home/lewis/Documents/r8168-8.035.00/src/r8168_n.o] Error 1 make[2]: *** [_module_/home/lewis/Documents/r8168-8.035.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/lewis/Documents/r8168-8.035.00/src’ make: *** [modules] Error 2

The computer currently isn't connected to any networks.

share|improve this question
    
I am doing the same at the moment, it worked fine for me. Are you sure that you installed build-essential properly and that you are using the newest realtek driver? –  Max Beikirch Aug 1 '13 at 15:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.