Stefan Popa Posted September 29, 2017 Posted September 29, 2017 "******************************************" "NO SKRC,we will use default KSRC" "******************************************" make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.12.0-kali2-amd64/build M=/root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417 modules make[1]: Entering directory '/usr/src/linux-headers-4.12.0-kali2-amd64' "******************************************" "NO SKRC,we will use default KSRC" "******************************************" CC [M] /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.o /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_spt_band_free’: /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c:305:20: warning: comparison between ‘enum nl80211_band’ and ‘enum ieee80211_band’ [-Wenum-compare] if(spt_band->band == IEEE80211_BAND_2GHZ) ^~ /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c:311:25: warning: comparison between ‘enum nl80211_band’ and ‘enum ieee80211_band’ [-Wenum-compare] else if(spt_band->band == IEEE80211_BAND_5GHZ) ^~ /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_connect’: /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c:872:6: error: passing argument 2 of ‘cfg80211_roamed’ from incompatible pointer type [-Werror=incompatible-pointer-types] , notify_channel ^~~~~~~~~~~~~~ In file included from /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service_linux.h:83:0, from /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service.h:45, from /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/drv_types.h:32, from /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c:22: /usr/src/linux-headers-4.12.0-kali2-common/include/net/cfg80211.h:5435:6: note: expected ‘struct cfg80211_roam_info *’ but argument is of type ‘struct ieee80211_channel *’ void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info, ^~~~~~~~~~~~~~~ /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c:874:6: warning: passing argument 3 of ‘cfg80211_roamed’ makes integer from pointer without a cast [-Wint-conversion] , cur_network->network.MacAddress ^~~~~~~~~~~ In file included from /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service_linux.h:83:0, from /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service.h:45, from /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/drv_types.h:32, from /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c:22: /usr/src/linux-headers-4.12.0-kali2-common/include/net/cfg80211.h:5435:6: note: expected ‘gfp_t {aka unsigned int}’ but argument is of type ‘unsigned char *’ void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info, ^~~~~~~~~~~~~~~ /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c:870:3: error: too many arguments to function ‘cfg80211_roamed’ cfg80211_roamed(padapter->pnetdev ^~~~~~~~~~~~~~~ In file included from /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service_linux.h:83:0, from /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service.h:45, from /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/drv_types.h:32, from /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c:22: /usr/src/linux-headers-4.12.0-kali2-common/include/net/cfg80211.h:5435:6: note: declared here void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info, ^~~~~~~~~~~~~~~ /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c: At top level: /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c:6119:25: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .change_virtual_intf = cfg80211_rtw_change_iface, ^~~~~~~~~~~~~~~~~~~~~~~~~ /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c:6119:25: note: (near initialization for ‘rtw_cfg80211_ops.change_virtual_intf’) /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c:6139:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .add_virtual_intf = cfg80211_rtw_add_virtual_intf, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c:6139:22: note: (near initialization for ‘rtw_cfg80211_ops.add_virtual_intf’) cc1: some warnings being treated as errors /usr/src/linux-headers-4.12.0-kali2-common/scripts/Makefile.build:307: recipe for target '/root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.o' failed make[4]: *** [/root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.o] Error 1 /usr/src/linux-headers-4.12.0-kali2-common/Makefile:1532: recipe for target '_module_/root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417' failed make[3]: *** [_module_/root/Desktop/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417] Error 2 Makefile:152: recipe for target 'sub-make' failed make[2]: *** [sub-make] Error 2 Makefile:8: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.12.0-kali2-amd64' Makefile:1368: recipe for target 'modules' failed make: *** [modules] Error 2 I have no idea what is wrong here. My kernel is using the latest version and headers are updated
Stefan Popa Posted September 30, 2017 Author Posted September 30, 2017 The kernel headers are updated
Recommended Posts