Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Compiling realtek rtl8188ce error

  1. #1
    Join Date
    Mar 2013
    Beans
    51

    Compiling realtek rtl8188ce error

    Okay, so.. I've decided to try the realtek site's linux drivers for my internal wifi card since I upgraded to 13.04. I couldn't get the compile to work in the last version and figured it might now.. but, it does not. So, I'm hoping some of you can tell me what i'm doing wrong here. I've made myself root and cd into the top level of the extracted file as it tells me to and when I get to make, this happens.
    Code:
    root@comet:/home/fox/Downloads/rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_0012.0207.2013# make
    make -C /lib/modules/3.8.0-22-generic/build M=/home/fox/Downloads/rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_0012.0207.2013 modules
    make[1]: Entering directory `/usr/src/linux-headers-3.8.0-22-generic'
      CC [M]  /home/fox/Downloads/rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_0012.0207.2013/base.o
    In file included from /home/fox/Downloads/rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_0012.0207.2013/base.c:39:0:
    /home/fox/Downloads/rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_0012.0207.2013/pci.h:247:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl_pci_probe’
    make[2]: *** [/home/fox/Downloads/rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_0012.0207.2013/base.o] Error 1
    make[1]: *** [_module_/home/fox/Downloads/rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_0012.0207.2013] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-22-generic'
    make: *** [all] Error 2
    root@comet:/home/fox/Downloads/rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_0012.0207.2013#
    It looks as if something is not correct with it but, i wouldn't know where to begin changing it. I could be just doing something wrong too perhaps.

  2. #2
    Join Date
    Mar 2013
    Beans
    51

    Re: Compiling realtek rtl8188ce error

    Okay, so I finally found this blog http://www.perseosblog.com/en/posts/...d-derivatives/ which helped me with part of it, now I got this problem left.

    Code:
    root@comet:/home/fox/realtek# make
    make -C /lib/modules/3.8.0-22-generic/build M=/home/fox/realtek modules
    make[1]: Entering directory `/usr/src/linux-headers-3.8.0-22-generic'
      CC [M]  /home/fox/realtek/base.o
    In file included from /home/fox/realtek/base.c:39:0:
    /home/fox/realtek/pci.h:247:1: error: implicit declaration of function ‘rtl_pci_probe’ [-Werror=implicit-function-declaration]
    /home/fox/realtek/pci.h:247:31: error: expected expression before ‘struct’
    cc1: some warnings being treated as errors
    make[2]: *** [/home/fox/realtek/base.o] Error 1
    make[1]: *** [_module_/home/fox/realtek] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-22-generic'
    make: *** [all] Error 2

  3. #3
    Join Date
    Mar 2013
    Beans
    51

    Re: Compiling realtek rtl8188ce error

    bumping this.. I still can't find the answer to it.

  4. #4
    Join Date
    May 2013
    Beans
    2

    Re: Compiling realtek rtl8188ce error

    I'm having exactly the same problem with compiling this driver. Maybe we're making both the same stupid error, or it's a coding issue.
    Being a Linux starter (just for a week), I don't know if it's apropriate to change (fix ) the code inside.

    What I've already found to get the code running further, is to delete in pci.c and pci.h the following statements:
    Code:
    __devinit
    __devinitdata
    Then I still got errors in /rtl8192ce/sw.c :
    Code:
    /home/filip/Downloads/realtek/rtl8192ce/sw.c:373:1: fout: expected ‘,’ or ‘;’ before ‘static’
    /home/filip/Downloads/realtek/rtl8192ce/sw.c: In functie ‘rtl92ce_module_init’:
    /home/filip/Downloads/realtek/rtl8192ce/sw.c:392:8: fout: ‘rtl92ce_driver’ undeclared (first use in this function)
    /home/filip/Downloads/realtek/rtl8192ce/sw.c:392:8: note: each undeclared identifier is reported only once for each function it appears in
    /home/filip/Downloads/realtek/rtl8192ce/sw.c: In functie ‘rtl92ce_module_exit’:
    /home/filip/Downloads/realtek/rtl8192ce/sw.c:401:25: fout: ‘rtl92ce_driver’ undeclared (first use in this function)
    Outprint of the EOF sw.c , starting from line 364:
    http://pastebin.com/ueqjaCy1dcc

    No clue where to find these errors

  5. #5
    Join Date
    May 2013
    Beans
    2

    Re: Compiling realtek rtl8188ce error

    I've been having the same problem, and I think I have a solution:

    First, if you modified pci.h or any other file as per other suggestions, revert back to how it was originally. Then add the following to the top of pci.h (or it can be added just below the initial commenting):

    Code:
    #ifndef __devinit
    #define __devinit
    #define __devinitdata
    #endif
    If you haven't already, make sure gcc and build-essential are installed:

    Code:
    sudo apt-get install gcc build-essential
    Now, switch to the directory where you extracted the driver files, and:

    Code:
    sudo su
    make clean
    make
    make install
    This fixed the compilation errors for me. After rebooting, things seem to be working so far. But my problem has been intermittent, so we'll see.

    Background: After googling "__devinit", it appears __devinit and __devinitdata were macros that were defined in the linux kernel, and have been removed in a recent build. This appears to be affecting several drivers. They seem to no longer be needed, and therefore defining these as empty strings appears to be safe.

  6. #6
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,116

    Re: Compiling realtek rtl8188ce error

    Quote Originally Posted by Comasci View Post
    They seem to no longer be needed, and therefore defining these as empty strings appears to be safe.
    That, if true, is a very useful information Comasci, thank you! I was myself looking for a workaround to this compiling error and was hesitating to include or remove these error related parts for the same reason (safe or not?).

    Can you recall and share with us the source of this info please? I found the part about removing "system/asm.h" in the kernel git-hub, but couldn't find anything related to this one.
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags

  7. #7
    Join Date
    May 2013
    Beans
    2

    Re: Compiling realtek rtl8188ce error

    Quote Originally Posted by Comasci View Post
    Code:
    #ifndef __devinit
    #define __devinit
    #define __devinitdata
    #endif
    Nice fix, this one solved the compiling headaches

    I experience the signal strength has increased, now I hope it will run stable.

  8. #8
    Join Date
    May 2013
    Beans
    2

    Re: Compiling realtek rtl8188ce error

    Quote Originally Posted by varunendra View Post
    Can you recall and share with us the source of this info please? I found the part about removing "system/asm.h" in the kernel git-hub, but couldn't find anything related to this one.
    I made the assumption based on the fact that it seemed to work here and here. It made me confident enough to give it a shot! Still seems to be working for me.

  9. #9
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,116

    Re: Compiling realtek rtl8188ce error

    Quote Originally Posted by Comasci View Post
    I made the assumption based on the fact that it seemed to work here and here. It made me confident enough to give it a shot! Still seems to be working for me.
    Well, good enough for me as long as it works
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags

  10. #10
    Join Date
    Dec 2005
    Beans
    18
    Distro
    Ubuntu

    Re: Compiling realtek rtl8188ce error

    Grate
    The installation went ok, finally
    Lenovo L530, Linux 2046 3.8.3-030803-generic, x86_64 x86_64 x86_64 GNU/Linux

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •