Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make error on Arch Linux kernel 5.3.7 #6

Closed
SandaruLJ opened this issue Oct 26, 2019 · 4 comments
Closed

Make error on Arch Linux kernel 5.3.7 #6

SandaruLJ opened this issue Oct 26, 2019 · 4 comments

Comments

@SandaruLJ
Copy link

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
Copy link

aerickt commented Feb 7, 2020

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

@SandaruLJ
Copy link
Author

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

@aerickt
Copy link

aerickt commented Feb 7, 2020

That isn't actually the case. I managed to get it working from this issue: #7 (comment)

@SandaruLJ
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants