archer t4u ver 3 make giving error in Kali Linux
Hi,
I am trying to install TP Link AC1300 Wifi USB adapter model Archer T4U Version3 in to my Kali Linux machine i followed the guide provided with the driver from TP link download center but after typing make commend i am getting the below error, FYI:
└─$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.0-kali9-amd64/build M=/home/jk/Downloads/tp/RTL8812BU modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.0-kali9-amd64'
CC [M] /home/jk/Downloads/tp/RTL8812BU/core/rtw_cmd.o
In file included from /home/jk/Downloads/tp/RTL8812BU/include/drv_conf.h:17,
from /home/jk/Downloads/tp/RTL8812BU/include/drv_types.h:25,
from /home/jk/Downloads/tp/RTL8812BU/core/rtw_cmd.c:17:
/home/jk/Downloads/tp/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
In file included from /home/jk/Downloads/tp/RTL8812BU/include/drv_types.h:79,
from /home/jk/Downloads/tp/RTL8812BU/core/rtw_cmd.c:17:
/home/jk/Downloads/tp/RTL8812BU/include/rtw_security.h:257:8: error: redefinition of ‘struct sha256_state’
257 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/linux-headers-5.10.0-kali9-common/include/linux/filter.h:24,
from /usr/src/linux-headers-5.10.0-kali9-common/include/net/sock.h:59,
from /usr/src/linux-headers-5.10.0-kali9-common/include/linux/tcp.h:19,
from /usr/src/linux-headers-5.10.0-kali9-common/include/linux/ipv6.h:87,
from /usr/src/linux-headers-5.10.0-kali9-common/include/net/addrconf.h:50,
from /home/jk/Downloads/tp/RTL8812BU/include/osdep_service_linux.h:48,
from /home/jk/Downloads/tp/RTL8812BU/include/osdep_service.h:50,
from /home/jk/Downloads/tp/RTL8812BU/include/drv_types.h:27,
from /home/jk/Downloads/tp/RTL8812BU/core/rtw_cmd.c:17:
/usr/src/linux-headers-5.10.0-kali9-common/include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
make[3]: *** [/usr/src/linux-headers-5.10.0-kali9-common/scripts/Makefile.build:284: /home/jk/Downloads/tp/RTL8812BU/core/rtw_cmd.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.10.0-kali9-common/Makefile:1845: /home/jk/Downloads/tp/RTL8812BU] Error 2
make[1]: *** [/usr/src/linux-headers-5.10.0-kali9-common/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-kali9-amd64'
make: *** [Makefile:2288: modules] Error 2
Please let me know what should i do thank in advance.