ulli-kroll / rtl8188fu

rtl8188fu driver for linux / rtlwifi prepare
GNU General Public License v2.0
60 stars 291 forks source link

Make error on Arch Linux kernel 5.3.7 #6

Closed SandaruLJ closed 4 years ago

SandaruLJ commented 4 years ago

I'm on Arch Linux with kernel 5.3.7. I get this when I run 'make'.

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.3.7-arch1-1-ARCH/build M=/home/sandarulj/Lab/git/rtl8188fu  modules
make[1]: Entering directory '/usr/lib/modules/5.3.7-arch1-1-ARCH/build'
  CC [M]  /home/sandarulj/Lab/git/rtl8188fu/os_dep/linux/os_intfs.o
/home/sandarulj/Lab/git/rtl8188fu/os_dep/linux/os_intfs.c:956:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *)’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *)’} from incompatible pointer type ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *, u16 (*)(struct net_device *, struct sk_buff *, struct net_device *))’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *, short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
  956 |  .ndo_select_queue = rtw_select_queue,
      |                      ^~~~~~~~~~~~~~~~
/home/sandarulj/Lab/git/rtl8188fu/os_dep/linux/os_intfs.c:956:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:281: /home/sandarulj/Lab/git/rtl8188fu/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [Makefile:1626: _module_/home/sandarulj/Lab/git/rtl8188fu] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.3.7-arch1-1-ARCH/build'
make: *** [Makefile:435: modules] Error 2
aerickt commented 4 years ago

Hi, did you ever fix this? I'm getting the same errors on Manjaro Kernel 5.4.

SandaruLJ commented 4 years ago

No. I think this project only supports Debian-based distros.

aerickt commented 4 years ago

That isn't actually the case. I managed to get it working from this issue: https://github.com/ulli-kroll/rtl8188fu/issues/7#issuecomment-580399813

SandaruLJ commented 4 years ago

You're right. It's working now. I had given up on it. Thank you so much!