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

rtl8188eus driver compile error #232

Closed
satyauday112 opened this issue Feb 27, 2023 · 4 comments
Closed

rtl8188eus driver compile error #232

satyauday112 opened this issue Feb 27, 2023 · 4 comments

Comments

@satyauday112
Copy link

Hi, Iam trying to install realtek rtl8188eus driver in kali lilnux. But Iam getting the below error:
Capture

/home/Satya/rtl8188eus_new/os_dep/osdep_service.c: In function ‘rtw_random32’:
/home/Satya/rtl8188eus_new/os_dep/osdep_service.c:2582:16: error: too few arguments to function ‘prandom_u32_max’
2582 | return prandom_u32_max();
| ^~~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-6.1.0-kali5-common/include/linux/random.h:172,
from /usr/src/linux-headers-6.1.0-kali5-common/include/linux/nodemask.h:97,
from /usr/src/linux-headers-6.1.0-kali5-common/include/linux/mmzone.h:17,
from /usr/src/linux-headers-6.1.0-kali5-common/include/linux/gfp.h:7,
from /usr/src/linux-headers-6.1.0-kali5-common/include/linux/umh.h:4,
from /usr/src/linux-headers-6.1.0-kali5-common/include/linux/kmod.h:9,
from /usr/src/linux-headers-6.1.0-kali5-common/include/linux/module.h:17,
from /home/Satya/rtl8188eus_new/include/basic_types.h:76,
from /home/Satya/rtl8188eus_new/include/drv_types.h:25,
from /home/Satya/rtl8188eus_new/os_dep/osdep_service.c:19:
/usr/src/linux-headers-6.1.0-kali5-common/include/linux/prandom.h:27:19: note: declared here
27 | static inline u32 prandom_u32_max(u32 ep_ro)
| ^~~~~~~~~~~~~~~
/home/Satya/rtl8188eus_new/os_dep/osdep_service.c:2595:1: error: control reaches end of non-void function [-Werror=return-type]
2595 | }
| ^
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-kali5-common/scripts/Makefile.build:255: /home/Satya/rtl8188eus_new/os_dep/osdep_service.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-kali5-common/Makefile:2030: /home/Satya/rtl8188eus_new] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-kali5-amd64'
make: *** [Makefile:2059: modules] Error 2

@d4rkd3v1l
Copy link

Same issue here.
This fix worked for me: #224 (comment)

Therefore this issue here may actually be a duplicate.

@R4vitej4
Copy link

R4vitej4 commented Mar 1, 2023

image

@R4vitej4
Copy link

R4vitej4 commented Mar 1, 2023

when i run the sudo make cmd compilation error occuring resolve it .

@satyauday112
Copy link
Author

@R4vitej4 Go to issue #224 and find the comment by gglluukk. That worked for me.

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

3 participants