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 in Ubuntu 19.04 #7

Open
alac1984 opened this issue Nov 4, 2019 · 4 comments
Open

Make error in Ubuntu 19.04 #7

alac1984 opened this issue Nov 4, 2019 · 4 comments

Comments

@alac1984
Copy link

alac1984 commented Nov 4, 2019

I'm trying to compile this driver in Ubuntu 19.04. make outputs an error:

/opt/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,
| ^~~~~~~~~~~~~~~~
/opt/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:290: /opt/rtl8188fu/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [Makefile:1653: _module_/opt/rtl8188fu] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-19-generic'
make: *** [Makefile:435: modules] Error 2

rtl8188fu.ko is not compiled.

Any insights?

@hkarora
Copy link

hkarora commented Jan 1, 2020

same happening with me. got any solution?

@lsegala
Copy link

lsegala commented Jan 30, 2020

same issue for me.

Ubuntu 18.04.3 LTS

Linux version 5.3.0-26-generic (buildd@lgw01-amd64-039) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu118.04.1)) #2818.04.1-Ubuntu SMP Wed Dec 18 16:40:14 UTC 2019

@alac1984
Copy link
Author

Solution to compile in Ubuntu 19.04:
Edit the Makefile in the extracted folder (~/rtl8188fu) and insert right below the 22 line (right below the EXTRA_CFLAGS += -I$(src)/hal/phydm):

EXTRA_CFLAGS += -Wno-error=incompatible-pointer-types

Save the file and compile it again.

Explanation: Kerneis above version 4.19 were altered and do not recognize the string (.ndo_select_queue = rtw_select_queue)

As seen in: smlinux/rtl8723de#27

@ZeeMastermind
Copy link

Solution to compile in Ubuntu 19.04:
Edit the Makefile in the extracted folder (~/rtl8188fu) and insert right below the 22 line (right below the EXTRA_CFLAGS += -I$(src)/hal/phydm):

EXTRA_CFLAGS += -Wno-error=incompatible-pointer-types

Save the file and compile it again.

Explanation: Kerneis above version 4.19 were altered and do not recognize the string (.ndo_select_queue = rtw_select_queue)

As seen in: smlinux/rtl8723de#27

You are fantastic!

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

4 participants