==> Making package: mdk4 4.1-1 (Sat 28 Nov 2020 09:52:29)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found mdk4-4.1.tar.gz
==> Validating source files with sha512sums...
mdk4-4.1.tar.gz ... Passed
==> Extracting sources...
-> Extracting mdk4-4.1.tar.gz with bsdtar
==> Starting prepare()...
/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/PKGBUILD: line 17: PREFIX: command not found
/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/PKGBUILD: line 17: PREFIX: command not found
/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/PKGBUILD: line 18: PREFIX: command not found
/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/PKGBUILD: line 18: PREFIX: command not found
==> Removing existing $pkgdir/ directory...
==> Starting build()...
make -C src clean
make[1]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src'
rm -f mdk4
rm -f debug.o helpers.o mac_addr.o linkedlist.o greylist.o dumpfile.o packet.o brute.o osdep.o channelhopper.o ghosting.o fragmenting.o
rm -f ../test *.o
make -C osdep clean
make[2]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/osdep'
make -C radiotap clean
make[3]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/osdep/radiotap'
rm -f *.o
make[3]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/osdep/radiotap'
rm -f libosdep.a *.o .os.*
make[2]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/osdep'
make -C attacks clean
make[2]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks'
rm -f attacks.o auth_dos.o beacon_flood.o countermeasures.o deauth.o dummy.o eapol.o fuzzer.o ieee80211s.o probing.o wids.o *.o
make[2]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks'
make[1]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src'
make -C src
make[1]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src'
make -C osdep
make -C osdep
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o debug.o debug.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o helpers.o helpers.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o mac_addr.o mac_addr.c
make[2]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/osdep'
make[2]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/osdep'
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o linkedlist.o linkedlist.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o greylist.o greylist.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o dumpfile.o dumpfile.c
greylist.c: In function ‘load_greylist’:
greylist.c:67:13: warning: assignment to ‘struct greylist *’ from incompatible pointer type ‘struct blacklist *’ [-Wincompatible-pointer-types]
67 | glist = blist;
| ^
greylist.c:72:13: warning: assignment to ‘struct greylist *’ from incompatible pointer type ‘struct whitelist *’ [-Wincompatible-pointer-types]
72 | glist = wlist;
| ^
greylist.c: In function ‘is_blacklisted’:
greylist.c:105:38: warning: passing argument 2 of ‘search_in_greylist’ from incompatible pointer type [-Wincompatible-pointer-types]
105 | entry = search_in_greylist(mac, blist);
| ^~~~~
| |
| struct blacklist *
greylist.c:44:77: note: expected ‘struct greylist *’ but argument is of type ‘struct blacklist *’
44 | struct greylist *search_in_greylist(struct ether_addr mac, struct greylist *glist) {
| ~~~~~~~~~~~~~~~~~^~~~~
greylist.c: In function ‘is_whitelisted’:
greylist.c:119:37: warning: passing argument 2 of ‘search_in_greylist’ from incompatible pointer type [-Wincompatible-pointer-types]
119 | entry = search_in_greylist(mac, wlist);
| ^~~~~
| |
| struct whitelist *
greylist.c:44:77: note: expected ‘struct greylist *’ but argument is of type ‘struct whitelist *’
44 | struct greylist *search_in_greylist(struct ether_addr mac, struct greylist *glist) {
| ~~~~~~~~~~~~~~~~~^~~~~
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o packet.o packet.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o brute.o brute.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o osdep.o osdep.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o channelhopper.o channelhopper.c
packet.c: In function ‘create_ieee_hdr’:
packet.c:13:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
13 | if (!fragment) seqno++; seqno %= 0x1000;
| ^~
packet.c:13:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
13 | if (!fragment) seqno++; seqno %= 0x1000;
| ^~~~~
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o ghosting.o ghosting.c
In file included from /usr/include/string.h:519,
from osdep.c:4:
In function ‘strncpy’,
inlined from ‘osdep_init_txpowers’ at osdep.c:180:5:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
inlined from ‘osdep_init_txpowers’ at osdep.c:219:3:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:866,
from osdep.c:1:
In function ‘printf’,
inlined from ‘osdep_init_txpowers’ at osdep.c:166:7:
/usr/include/bits/stdio2.h:110:10: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
110 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:519,
from osdep.c:4:
In function ‘strncpy’,
inlined from ‘osdep_random_txpower’ at osdep.c:266:5:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
inlined from ‘osdep_random_txpower’ at osdep.c:283:3:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o fragmenting.o fragmenting.c
make -C attacks
channelhopper.c:48:26: warning: initialization of ‘pthread_t’ {aka ‘long unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
48 | pthread_t chan_sniffer = NULL;
| ^~~~
channelhopper.c: In function ‘error_handler’:
channelhopper.c:155:46: warning: unused parameter ‘nla’ [-Wunused-parameter]
155 | 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]
163 | 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]
170 | 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]
186 | 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]
328 | static int handle_channels(struct nl80211_state *state, struct nl_msg *msg)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~
channelhopper.c: In function ‘channel_sniff’:
channelhopper.c:387:6: warning: unused variable ‘ie_type’ [-Wunused-variable]
387 | int ie_type;
| ^~~~~~~
channelhopper.c: In function ‘init_channel_hopper’:
channelhopper.c:592:19: warning: unused variable ‘i’ [-Wunused-variable]
592 | int lpos = 0, i;
| ^
At top level:
channelhopper.c:240:14: warning: ‘dfs_state_name’ defined but not used [-Wunused-function]
240 | static char *dfs_state_name(enum nl80211_dfs_state state)
| ^~~~~~~~~~~~~~
make[2]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks'
make -C attacks
make -C attacks
make[2]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks'
make[2]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks'
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o attacks.o attacks.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o attacks.o attacks.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o attacks.o attacks.c
attacks.c: In function ‘load_attacks’:
attacks.c:8:29: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
8 | struct attacks *attacks = malloc(sizeof(struct attacks) * attack_count);
| ^~~~~~
attacks.c:8:29: warning: incompatible implicit declaration of built-in function ‘malloc’
attacks.c:4:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
3 | #include "attacks.h"
+++ |+#include <stdlib.h>
4 |
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o auth_dos.o auth_dos.c
attacks.c: In function ‘load_attacks’:
attacks.c:8:29: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
8 | struct attacks *attacks = malloc(sizeof(struct attacks) * attack_count);
| ^~~~~~
attacks.c:8:29: warning: incompatible implicit declaration of built-in function ‘malloc’
attacks.c:4:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
3 | #include "attacks.h"
+++ |+#include <stdlib.h>
4 |
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o auth_dos.o auth_dos.c
attacks.c: In function ‘load_attacks’:
attacks.c:8:29: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
8 | struct attacks *attacks = malloc(sizeof(struct attacks) * attack_count);
| ^~~~~~
attacks.c:8:29: warning: incompatible implicit declaration of built-in function ‘malloc’
attacks.c:4:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
3 | #include "attacks.h"
+++ |+#include <stdlib.h>
4 |
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o auth_dos.o auth_dos.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o beacon_flood.o beacon_flood.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o beacon_flood.o beacon_flood.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o countermeasures.o countermeasures.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o beacon_flood.o beacon_flood.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o deauth.o deauth.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o countermeasures.o countermeasures.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o countermeasures.o countermeasures.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o dummy.o dummy.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o deauth.o deauth.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o deauth.o deauth.c
dummy.c: In function ‘dummy_parse’:
dummy.c:30:32: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
30 | struct dummy_options *dopt = malloc(sizeof(struct dummy_options));
| ^~~~~~
dummy.c:30:32: warning: incompatible implicit declaration of built-in function ‘malloc’
dummy.c:5:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
4 | #include "dummy.h"
+++ |+#include <stdlib.h>
5 |
dummy.c: In function ‘load_dummy’:
dummy.c:69:22: warning: incompatible implicit declaration of built-in function ‘malloc’
69 | char *dummy_name = malloc(strlen(DUMMY_NAME) + 1);
| ^~~~~~
dummy.c:69:22: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o eapol.o eapol.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o dummy.o dummy.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o eapol.o eapol.c
dummy.c: In function ‘dummy_parse’:
dummy.c:30:32: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
30 | struct dummy_options *dopt = malloc(sizeof(struct dummy_options));
| ^~~~~~
dummy.c:30:32: warning: incompatible implicit declaration of built-in function ‘malloc’
dummy.c:5:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
4 | #include "dummy.h"
+++ |+#include <stdlib.h>
5 |
dummy.c: In function ‘load_dummy’:
dummy.c:69:22: warning: incompatible implicit declaration of built-in function ‘malloc’
69 | char *dummy_name = malloc(strlen(DUMMY_NAME) + 1);
| ^~~~~~
dummy.c:69:22: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o eapol.o eapol.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o fuzzer.o fuzzer.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o fuzzer.o fuzzer.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o fuzzer.o fuzzer.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o ieee80211s.o ieee80211s.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o ieee80211s.o ieee80211s.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o probing.o probing.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o ieee80211s.o ieee80211s.c
probing.c: In function ‘create_probe_req’:
probing.c:236:3: warning: implicit declaration of function ‘add_ssid_set’ [-Wimplicit-function-declaration]
236 | add_ssid_set(&probe, ssid);
| ^~~~~~~~~~~~
probing.c:237:3: warning: implicit declaration of function ‘add_rate_sets’ [-Wimplicit-function-declaration]
237 | add_rate_sets(&probe, 1, 1);
| ^~~~~~~~~~~~~
probing.c:240:25: warning: pointer targets in passing argument 2 of ‘stpcpy’ differ in signedness [-Wpointer-sign]
240 | stpcpy(popt->proceed, ssid);
| ^~~~
| |
| unsigned char *
In file included from probing.c:4:
/usr/include/string.h:475:70: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’
475 | extern char *stpcpy (char *__restrict __dest, const char *__restrict __src)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
probing.c:195:27: warning: unused variable ‘ssid_len’ [-Wunused-variable]
195 | unsigned char i,c,type, ssid_len;
| ^~~~~~~~
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o probing.o probing.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o wids.o wids.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o wids.o wids.c
probing.c: In function ‘create_probe_req’:
probing.c:236:3: warning: implicit declaration of function ‘add_ssid_set’ [-Wimplicit-function-declaration]
236 | add_ssid_set(&probe, ssid);
| ^~~~~~~~~~~~
probing.c:237:3: warning: implicit declaration of function ‘add_rate_sets’ [-Wimplicit-function-declaration]
237 | add_rate_sets(&probe, 1, 1);
| ^~~~~~~~~~~~~
probing.c:240:25: warning: pointer targets in passing argument 2 of ‘stpcpy’ differ in signedness [-Wpointer-sign]
240 | stpcpy(popt->proceed, ssid);
| ^~~~
| |
| unsigned char *
In file included from probing.c:4:
/usr/include/string.h:475:70: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’
475 | extern char *stpcpy (char *__restrict __dest, const char *__restrict __src)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
probing.c:195:27: warning: unused variable ‘ssid_len’ [-Wunused-variable]
195 | unsigned char i,c,type, ssid_len;
| ^~~~~~~~
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 -c -o wids.o wids.c
make[2]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks'
make -C attacks
make[2]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks'
make[2]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks'
make[2]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks'
make -C attacks
Building for Linux
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks'
make[2]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks'
make[3]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/osdep'
Building for Linux
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks'
make[3]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/osdep'
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fPIC -I.. -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fPIC -I.. -D_FORTIFY_SOURCE=2 -c -o osdep.o osdep.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fPIC -I.. -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fPIC -I.. -D_FORTIFY_SOURCE=2 -c -o network.o network.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fPIC -I.. -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fPIC -I.. -D_FORTIFY_SOURCE=2 -c -o file.o file.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fPIC -I.. -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fPIC -I.. -D_FORTIFY_SOURCE=2 -c -o linux.o linux.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fPIC -I.. -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fPIC -I.. -D_FORTIFY_SOURCE=2 -c -o linux_tap.o linux_tap.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fPIC -I.. -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fPIC -I.. -D_FORTIFY_SOURCE=2 -c -o radiotap/radiotap.o radiotap/radiotap.c
In file included from /usr/include/string.h:519,
from linux_tap.c:33:
In function ‘strncpy’,
inlined from ‘ti_do_open_linux’ at linux_tap.c:72:5,
inlined from ‘ti_open_linux’ at linux_tap.c:192:7,
inlined from ‘ti_open’ at linux_tap.c:207:9:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 15 bytes from a string of length 63 [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fPIC -I.. -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -fPIC -I.. -D_FORTIFY_SOURCE=2 -c -o common.o common.c
linux.c: In function ‘is_ndiswrapper’:
linux.c:183:17: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
183 | int n, pid, unused;
| ^~~~~~
linux.c: In function ‘linux_set_rate’:
linux.c:457:22: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
457 | int pid, status, unused;
| ^~~~~~
linux.c: In function ‘linux_set_channel_nl80211’:
linux.c:950:22: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
950 | int pid, status, unused;
| ^~~~~~
linux.c: In function ‘linux_set_channel’:
linux.c:1052:22: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
1052 | int pid, status, unused;
| ^~~~~~
linux.c: In function ‘linux_set_freq’:
linux.c:1143:22: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
1143 | int pid, status, unused;
| ^~~~~~
linux.c: In function ‘set_monitor’:
linux.c:1273:22: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
1273 | int pid, status, unused;
| ^~~~~~
linux.c: In function ‘openraw’:
linux.c:1513:63: warning: comparison of constant ‘6’ with boolean expression is always false [-Wbool-compare]
1513 | if (set_monitor( dev, iface, fd ) && !dev->drivertype == DT_ORINOCO )
| ^~
linux.c:1513:63: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
linux.c:1513:46: note: add parentheses around left hand side expression to silence this warning
1513 | if (set_monitor( dev, iface, fd ) && !dev->drivertype == DT_ORINOCO )
| ^~~~~~~~~~~~~~~~
| ( )
linux.c:1523:67: warning: comparison of constant ‘6’ with boolean expression is always false [-Wbool-compare]
1523 | if (set_monitor( dev, iface, fd ) && !dev->drivertype == DT_ORINOCO )
| ^~
linux.c:1523:67: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
linux.c:1523:50: note: add parentheses around left hand side expression to silence this warning
1523 | if (set_monitor( dev, iface, fd ) && !dev->drivertype == DT_ORINOCO )
| ^~~~~~~~~~~~~~~~
| ( )
linux.c: In function ‘do_linux_open’:
linux.c:1620:12: warning: variable ‘unused_str’ set but not used [-Wunused-but-set-variable]
1620 | char * unused_str;
| ^~~~~~~~~~
linux.c:1606:15: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
1606 | int kver, unused;
| ^~~~~~
linux.c: In function ‘get_battery_state’:
linux.c:2273:35: warning: variable ‘current’ set but not used [-Wunused-but-set-variable]
2273 | int rate = 1, remain = 0, current = 0;
| ^~~~~~~
At top level:
linux.c:2057:13: warning: ‘linux_close’ defined but not used [-Wunused-function]
2057 | static void linux_close(struct wif *wi)
| ^~~~~~~~~~~
linux.c:1048:12: warning: ‘linux_set_channel’ defined but not used [-Wunused-function]
1048 | static int linux_set_channel(struct wif *wi, int channel)
| ^~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:519,
from linux.c:36:
In function ‘strncpy’,
inlined from ‘do_linux_open.constprop’ at linux.c:1906:9:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux.c: In function ‘do_linux_open.constprop’:
linux.c:1906:9: note: length computed here
1906 | strncpy(dev->main_if, iface, strlen(iface));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:519,
from linux.c:36:
In function ‘strncpy’,
inlined from ‘do_linux_open.constprop’ at linux.c:1911:9:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux.c: In function ‘do_linux_open.constprop’:
linux.c:1911:9: note: length computed here
1911 | strncpy(iface, buf, strlen(buf));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux.c:1937:37: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 113 [-Wformat-truncation=]
1937 | "/sys/class/net/%s/device/rtap_iface", this_iface->d_name);
| ^~
In file included from /usr/include/stdio.h:866,
from linux.c:34:
/usr/include/bits/stdio2.h:70:10: note: ‘__builtin___snprintf_chk’ output between 34 and 289 bytes into a destination of size 128
70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux.c: In function ‘get_battery_state’:
linux.c:2310:13: warning: argument 1 null where non-null expected [-Wnonnull]
2310 | closedir(batteries);
| ^~~~~~~~~~~~~~~~~~~
In file included from linux.c:40:
/usr/include/dirent.h:149:12: note: in a call to function ‘closedir’ declared here
149 | extern int closedir (DIR *__dirp) __nonnull ((1));
| ^~~~~~~~
linux.c:2318:78: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 109 [-Wformat-truncation=]
2318 | snprintf(battery_info, sizeof(battery_info), "/proc/acpi/battery/%s/info", this_battery->d_name);
| ^~
In file included from /usr/include/stdio.h:866,
from linux.c:34:
/usr/include/bits/stdio2.h:70:10: note: ‘__builtin___snprintf_chk’ output between 25 and 280 bytes into a destination of size 128
70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux.c:2330:37: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 109 [-Wformat-truncation=]
2330 | "/proc/acpi/battery/%s/state", this_battery->d_name);
| ^~
In file included from /usr/include/stdio.h:866,
from linux.c:34:
/usr/include/bits/stdio2.h:70:10: note: ‘__builtin___snprintf_chk’ output between 26 and 281 bytes into a destination of size 128
70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux.c:2289:40: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 106 [-Wformat-truncation=]
2289 | "/proc/acpi/ac_adapter/%s/state", this_adapter->d_name);
| ^~
In file included from /usr/include/stdio.h:866,
from linux.c:34:
/usr/include/bits/stdio2.h:70:10: note: ‘__builtin___snprintf_chk’ output between 29 and 284 bytes into a destination of size 128
70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ar cru libosdep.a osdep.o network.o file.o linux.o linux_tap.o radiotap/radiotap.o common.o
ar cru libosdep.a osdep.o network.o file.o linux.o linux_tap.o radiotap/radiotap.o common.o
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libosdep.a
ranlib libosdep.a
touch .os.Linux
make[3]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/osdep'
make[2]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/osdep'
touch .os.Linux
make -C attacks
make[3]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/osdep'
make[2]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/osdep'
make[2]: Entering directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks'
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -g -O3 -Wall -Wextra -D_FORTIFY_SOURCE=2 mdk4.c osdep/libosdep.a debug.o helpers.o mac_addr.o linkedlist.o greylist.o dumpfile.o packet.o brute.o osdep.o channelhopper.o ghosting.o fragmenting.o attacks/attacks.o attacks/auth_dos.o attacks/beacon_flood.o attacks/countermeasures.o attacks/deauth.o attacks/dummy.o attacks/eapol.o attacks/fuzzer.o attacks/ieee80211s.o attacks/probing.o attacks/wids.o -o mdk4 -lnl-genl-3 -lnl-3 -lm -Losdep -losdep -lpthread -lpcap -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
mdk4.c: In function ‘main’:
mdk4.c:168:3: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
168 | setuid(getuid());
| ^~~~~~~~~~~~~~~~
/usr/bin/ld: channelhopper.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/./attacks/attacks.h:39: multiple definition of `attack_count'; /tmp/ccC5tBKr.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/attacks.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: multiple definition of `attack_count'; /tmp/ccC5tBKr.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/auth_dos.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: multiple definition of `attack_count'; /tmp/ccC5tBKr.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/beacon_flood.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/beacon_flood.c:34: multiple definition of `bssid'; attacks/auth_dos.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/auth_dos.c:50: first defined here
/usr/bin/ld: attacks/beacon_flood.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: multiple definition of `attack_count'; /tmp/ccC5tBKr.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/countermeasures.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: multiple definition of `attack_count'; /tmp/ccC5tBKr.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/deauth.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/deauth.c:19: multiple definition of `bssid'; attacks/auth_dos.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/auth_dos.c:50: first defined here
/usr/bin/ld: attacks/deauth.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: multiple definition of `attack_count'; /tmp/ccC5tBKr.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/dummy.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: multiple definition of `attack_count'; /tmp/ccC5tBKr.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/eapol.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: multiple definition of `attack_count'; /tmp/ccC5tBKr.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/fuzzer.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: multiple definition of `attack_count'; /tmp/ccC5tBKr.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/ieee80211s.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: multiple definition of `attack_count'; /tmp/ccC5tBKr.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/probing.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: multiple definition of `attack_count'; /tmp/ccC5tBKr.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/wids.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: multiple definition of `attack_count'; /tmp/ccC5tBKr.o:/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src/attacks/attacks.h:39: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:36: mdk4] Error 1
make[1]: Leaving directory '/home/pizzaman/Downloads/work-folder/PKGBUILDs/mdk4/src/mdk4-4.1/src'
make: *** [Makefile:10: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...