gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-array-bounds -g -O3 -Wall -Wextra -fcommon -c -o brute.o brute.c
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-array-bounds -g -O3 -Wall -Wextra -fcommon -c -o osdep.o osdep.c
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-array-bounds -g -O3 -Wall -Wextra -fcommon -c -o channelhopper.o channelhopper.c
In file included from /usr/include/linux/wireless.h:74:0,
from channelhopper.c:13:
/usr/include/linux/if.h:234:19: error: field ‘ifru_addr’ has incomplete type
struct sockaddr ifru_addr;
^~~~~~~~~
/usr/include/linux/if.h:235:19: error: field ‘ifru_dstaddr’ has incomplete type
struct sockaddr ifru_dstaddr;
^~~~~~~~~~~~
/usr/include/linux/if.h:236:19: error: field ‘ifru_broadaddr’ has incomplete type
struct sockaddr ifru_broadaddr;
^~~~~~~~~~~~~~
/usr/include/linux/if.h:237:19: error: field ‘ifru_netmask’ has incomplete type
struct sockaddr ifru_netmask;
^~~~~~~~~~~~
/usr/include/linux/if.h:238:20: error: field ‘ifru_hwaddr’ has incomplete type
struct sockaddr ifru_hwaddr;
^~~~~~~~~~~
In file included from channelhopper.c:13:0:
/usr/include/linux/wireless.h:744:19: error: field ‘addr’ has incomplete type
struct sockaddr addr; /* Source address (hw/mac) */
^~~~
/usr/include/linux/wireless.h:769:18: error: field ‘bssid’ has incomplete type
struct sockaddr bssid; /* ff:ff:ff:ff:ff:ff for broadcast BSSID or
^~~~~
/usr/include/linux/wireless.h:826:18: error: field ‘addr’ has incomplete type
struct sockaddr addr; /* ff:ff:ff:ff:ff:ff for broadcast/multicast
^~~~
/usr/include/linux/wireless.h:838:18: error: field ‘addr’ has incomplete type
struct sockaddr addr;
^~~~
/usr/include/linux/wireless.h:850:18: error: field ‘bssid’ has incomplete type
struct sockaddr bssid;
^~~~~
/usr/include/linux/wireless.h:857:18: error: field ‘src_addr’ has incomplete type
struct sockaddr src_addr;
^~~~~~~~
/usr/include/linux/wireless.h:867:18: error: field ‘bssid’ has incomplete type
struct sockaddr bssid;
^~~~~
/usr/include/linux/wireless.h:919:18: error: field ‘ap_addr’ has incomplete type
struct sockaddr ap_addr; /* Access point address */
^~~~~~~
/usr/include/linux/wireless.h:920:18: error: field ‘addr’ has incomplete type
struct sockaddr addr; /* Destination address (hw/mac) */
^~~~
channelhopper.c:48:26: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
pthread_t chan_sniffer = NULL;
^~~~
channelhopper.c: In function ‘error_handler’:
channelhopper.c:155:46: warning: unused parameter ‘nla’ [-Wunused-parameter]
static int error_handler(struct sockaddr_nl *nla, struct nlmsgerr *err,
^~~
channelhopper.c: In function ‘finish_handler’:
channelhopper.c:163:42: warning: unused parameter ‘msg’ [-Wunused-parameter]
static int finish_handler(struct nl_msg *msg, void *arg)
^~~
channelhopper.c: In function ‘ack_handler’:
channelhopper.c:170:39: warning: unused parameter ‘msg’ [-Wunused-parameter]
static int ack_handler(struct nl_msg *msg, void *arg)
^~~
channelhopper.c: In function ‘valid_handler’:
channelhopper.c:186:45: warning: unused parameter ‘arg’ [-Wunused-parameter]
int valid_handler(struct nl_msg *msg, void *arg)
^~~
channelhopper.c: In function ‘handle_channels’:
channelhopper.c:328:50: warning: unused parameter ‘state’ [-Wunused-parameter]
static int handle_channels(struct nl80211_state *state, struct nl_msg *msg)
^~~~~
In file included from /usr/include/libnl3/netlink/msg.h:17:0,
from /usr/include/libnl3/netlink/genl/genl.h:16,
from channelhopper.c:17:
channelhopper.c: In function ‘nl80211_get_channel_list’:
channelhopper.c:488:41: warning: implicit declaration of function ‘if_nametoindex’ [-Wimplicit-function-declaration]
NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, if_nametoindex(iface));
^
/usr/include/libnl3/netlink/attr.h:178:16: note: in definition of macro ‘NLA_PUT_TYPE’
type __tmp = value; \
^~~~~
channelhopper.c:488:2: note: in expansion of macro ‘NLA_PUT_U32’
NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, if_nametoindex(iface));
^~~~~~~~~~~
At top level:
channelhopper.c:240:14: warning: ‘dfs_state_name’ defined but not used [-Wunused-function]
static char *dfs_state_name(enum nl80211_dfs_state state)
^~~~~~~~~~~~~~
<incorporato>: set di istruzioni per l'obiettivo "channelhopper.o" non riuscito
make[1]: *** [channelhopper.o] Errore 1
make[1]: uscita dalla directory "/opt/tools/mdk4/src"
Makefile:10: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2
Debian 9 x64