Results 1 to 9 of 9

Thread: Having difficulty compiling Realtek WiFi drivers

  1. #1
    Join Date
    Sep 2007
    Location
    Warsaw, Poland
    Beans
    629
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Question Having difficulty compiling Realtek WiFi drivers

    My ping in Ubuntu is twice as high as it is in Windows. So I thought maybe I should give the latest official Realtek drivers a try. When I try compiling them, I get this error:

    make -C /lib/modules/3.2.0-999-generic/build M=/home/paul/Downloads/rtl modules
    make[1]: Entering directory `/usr/src/linux-headers-3.2.0-999-generic'
    CC [M] /home/paul/Downloads/rtl/base.o
    In file included from /home/paul/Downloads/rtl/base.c:31:0:
    /home/paul/Downloads/rtl/wifi.h:1496:24: error: field ‘irq_tasklet’ has incomplete type
    /home/paul/Downloads/rtl/wifi.h:1497:24: error: field ‘irq_prepare_bcn_tasklet’ has incomplete type
    /home/paul/Downloads/rtl/base.c: In function ‘_rtl_init_hw_ht_capab’:
    /home/paul/Downloads/rtl/base.c:210:3: error: implicit declaration of function ‘in_interrupt’ [-Werror=implicit-function-declaration]
    /home/paul/Downloads/rtl/base.c:210:3: error: implicit declaration of function ‘in_atomic’ [-Werror=implicit-function-declaration]
    /home/paul/Downloads/rtl/base.c:210:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c:221:4: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c:230:4: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c: In function ‘_rtl_init_mac80211’:
    /home/paul/Downloads/rtl/base.c:310:4: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c: In function ‘rtl_init_core’:
    /home/paul/Downloads/rtl/base.c:454:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c:459:4: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c: At top level:
    /home/paul/Downloads/rtl/base.c:760:1: warning: data definition has no type or storage class [enabled by default]
    /home/paul/Downloads/rtl/base.c:760:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL’ [-Wimplicit-int]
    /home/paul/Downloads/rtl/base.c:760:1: warning: parameter names (without types) in function declaration [enabled by default]
    /home/paul/Downloads/rtl/base.c: In function ‘rtl_tx_mgmt_proc’:
    /home/paul/Downloads/rtl/base.c:775:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c: In function ‘rtl_action_proc’:
    /home/paul/Downloads/rtl/base.c:809:4: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c:824:6: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c:856:4: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c:861:4: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c: In function ‘rtl_is_special_data’:
    /home/paul/Downloads/rtl/base.c:904:5: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c:925:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c: In function ‘rtl_tx_agg_start’:
    /home/paul/Downloads/rtl/base.c:965:2: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c: In function ‘rtl_tx_agg_stop’:
    /home/paul/Downloads/rtl/base.c:996:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c:1000:2: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c: In function ‘rtl_rx_agg_start’:
    /home/paul/Downloads/rtl/base.c:1041:2: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c: In function ‘rtl_rx_agg_stop’:
    /home/paul/Downloads/rtl/base.c:1060:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c:1064:2: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c: In function ‘rtl_tx_agg_oper’:
    /home/paul/Downloads/rtl/base.c:1087:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c:1091:2: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c: In function ‘rtl_watchdog_wq_callback’:
    /home/paul/Downloads/rtl/base.c:1256:5: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c: At top level:
    /home/paul/Downloads/rtl/base.c:1408:1: warning: data definition has no type or storage class [enabled by default]
    /home/paul/Downloads/rtl/base.c:1408:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL’ [-Wimplicit-int]
    /home/paul/Downloads/rtl/base.c:1408:1: warning: parameter names (without types) in function declaration [enabled by default]
    /home/paul/Downloads/rtl/base.c: In function ‘rtl_recognize_peer’:
    /home/paul/Downloads/rtl/base.c:1573:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c:1580:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c:1585:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c:1590:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c:1595:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
    /home/paul/Downloads/rtl/base.c: At top level:
    /home/paul/Downloads/rtl/base.c:1657:15: error: expected declaration specifiers or ‘...’ before string constant
    /home/paul/Downloads/rtl/base.c:1658:15: error: expected declaration specifiers or ‘...’ before string constant
    /home/paul/Downloads/rtl/base.c:1659:15: error: expected declaration specifiers or ‘...’ before string constant
    /home/paul/Downloads/rtl/base.c:1660:16: error: expected declaration specifiers or ‘...’ before string constant
    /home/paul/Downloads/rtl/base.c:1661:20: error: expected declaration specifiers or ‘...’ before string constant
    cc1: some warnings being treated as errors

    make[2]: *** [/home/paul/Downloads/rtl/base.o] Error 1
    make[1]: *** [_module_/home/paul/Downloads/rtl] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-999-generic'
    make: *** [all] Error 2
    Any ideas? Thanks.
    Last edited by hotweiss; November 15th, 2011 at 08:29 PM.

  2. #2
    Join Date
    Nov 2011
    Beans
    2

    Re: Having difficulty compiling Realtek WiFi drivers

    Quote Originally Posted by hotweiss View Post
    My ping in Ubuntu is twice as high as it is in Windows. So I thought maybe I should give the latest official Realtek drivers a try. When I try compiling them, I get this error:



    Any ideas? Thanks.
    I got the same errors. Did you figure it out? Thanks~

  3. #3
    Join Date
    Nov 2005
    Location
    Sendai, Japan
    Beans
    11,296
    Distro
    Kubuntu

    Re: Having difficulty compiling Realtek WiFi drivers

    I'll hazard a guess that the driver is not compatible with your kernel version.

  4. #4
    Join Date
    Sep 2007
    Location
    Warsaw, Poland
    Beans
    629
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Having difficulty compiling Realtek WiFi drivers

    Quote Originally Posted by Bachstelze View Post
    I'll hazard a guess that the driver is not compatible with your kernel version.
    That's what I was thinking. Oh well, the ping difference is not noticeable anyways.

    And no, I haven't figured out the solution.

  5. #5
    Join Date
    Sep 2007
    Location
    Warsaw, Poland
    Beans
    629
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Having difficulty compiling Realtek WiFi drivers

    Here's something in interesting. In Kubuntu my ping is the same as it is in Windows. Kubuntu has come a long way. I think I am switching to it.

  6. #6
    Join Date
    Nov 2011
    Beans
    1

    Re: Having difficulty compiling Realtek WiFi drivers

    I was trying the same thing as you. In my scenario I was trying to build for the Realtek 8192e under the 3.1.2 kernel under mint. It sucks that I can't use it because 3.1.2 feels smoother then 2.6

  7. #7
    Join Date
    Jul 2007
    Beans
    76

    Re: Having difficulty compiling Realtek WiFi drivers

    Add a

    #include <linux/interrupt.h>

    to the top of wifi.h

    That solves the problems and it builds just fine.

  8. #8
    Join Date
    Nov 2008
    Beans
    30
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Having difficulty compiling Realtek WiFi drivers

    Same problem (also after #include <linux/interrupt.h> added to the wifi.h)

    Using Linux Kernel 3.0.0-14

    Solution below this post.
    Last edited by danger89; December 17th, 2011 at 09:50 PM. Reason: Solusion found

  9. #9
    Join Date
    Nov 2008
    Beans
    30
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Having difficulty compiling Realtek WiFi drivers

    Thanks to the developer L. Finger of the driver, I will share the patch files in order to compile the latest version under Linux Kernel 3.2.


    The 'compile_fixes' file should be used first.

    Usage (if you have kernel 3.2.0.x):
    cd /rtl modules../
    patch -p1 < {/path/to/patch/compile_fixes}
    patch -p1 < {/path/to/patch/fixes_for_3_2}
    sudo su
    make
    make install
    reboot
    Please check the attachment.

    Mirror #1: http://www.2shared.com/file/D9_srknK/patch_files.html
    Mirror #2: http://www.mediafire.com/?426x5cttmn8vbth
    Mirror #3: http://www.megafileupload.com/en/fil...files-zip.html
    Mirror #4: http://www.filedropper.com/patchfiles
    Attached Files Attached Files
    Last edited by danger89; December 17th, 2011 at 09:48 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •