Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22235

Can not compile rtl8821CU wifi driver [closed]

$
0
0

I just installed a new Ubuntu 22.04 system on my desktop. I installed build-essentials and started installing drivers for my wifi adapter. I downloaded the rtl8821CU source code and ran make. I get the following error:

root@vsc:/home/vito/Downloads/rtl8821CU-master# makemake ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.8.0-40-generic/build M=/home/vito/Downloads/rtl8821CU-master  modulesmake[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'warning: the compiler differs from the one used to build the kernel  The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0  You are using:           gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0  CC [M]  /home/vito/Downloads/rtl8821CU-master/core/rtw_cmd.o/home/vito/Downloads/rtl8821CU-master/core/rtw_cmd.c:29:1: error: unknown type name ‘sint’; did you mean ‘int’?   29 | sint    _rtw_init_cmd_priv(struct       cmd_priv *pcmdpriv)      | ^~~~      | int/home/vito/Downloads/rtl8821CU-master/core/rtw_cmd.c:29:41: warning: ‘struct cmd_priv’ declared inside parameter list will not be visible outside of this definition or declaration   29 | sint    _rtw_init_cmd_priv(struct       cmd_priv *pcmdpriv)      |                                         ^~~~~~~~...home/vito/Downloads/rtl8821CU-master/core/rtw_cmd.c: In function ‘rtw_cmd_filter’:/home/vito/Downloads/rtl8821CU-master/core/rtw_cmd.c:438:1: error: control reaches end of non-void function [-Werror=return-type]  438 | }      | ^cc1: some warnings being treated as errorsmake[3]: *** [scripts/Makefile.build:243: /home/vito/Downloads/rtl8821CU-master/core/rtw_cmd.o] Error 1make[2]: *** [/usr/src/linux-headers-6.8.0-40-generic/Makefile:1926: /home/vito/Downloads/rtl8821CU-master] Error 2make[1]: *** [Makefile:240: __sub-make] Error 2make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'make: *** [Makefile:2217: modules] Error 2root@vsc:/home/vito/Downloads/rtl8821CU-master# 

Please tell me what can be done to ensure successful assembly?


Viewing all articles
Browse latest Browse all 22235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>