Package: src:mdk4
Version: 0~git20181205-2
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-arch
dh build-arch
   dh_update_autotools_config -a
   dh_autoreconf -a
   dh_auto_configure -a
   dh_auto_build -a
        make -j2 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make -C src clean
make[2]: Entering directory '/<<PKGBUILDDIR>>/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[3]: Entering directory '/<<PKGBUILDDIR>>/src/osdep'
make -C radiotap clean
make[4]: Entering directory '/<<PKGBUILDDIR>>/src/osdep/radiotap'
rm -f *.o
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/osdep/radiotap'
rm -f libosdep.a  *.o .os.*
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/osdep'
make -C attacks clean
make[3]: Entering directory '/<<PKGBUILDDIR>>/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[3]: Leaving directory '/<<PKGBUILDDIR>>/src/attacks'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make -C src
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
make -C osdep
make -C osdep
make[3]: Entering directory '/<<PKGBUILDDIR>>/src/osdep'
make[3]: Entering directory '/<<PKGBUILDDIR>>/src/osdep'
Building for Linux
Building for Linux
make[4]: Entering directory '/<<PKGBUILDDIR>>/src/osdep'
make[4]: Entering directory '/<<PKGBUILDDIR>>/src/osdep'
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-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 -fPIC -I..  -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 -fPIC -I..  -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o osdep.o osdep.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-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 -fPIC -I..  -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 -fPIC -I..  -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o osdep.o osdep.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-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 -fPIC -I..  -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 -fPIC -I..  -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o network.o network.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-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 -fPIC -I..  -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 -fPIC -I..  -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o network.o network.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-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 -fPIC -I..  -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 -fPIC -I..  -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o file.o file.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-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 -fPIC -I..  -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 -fPIC -I..  -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o file.o file.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-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 -fPIC -I..  -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 -fPIC -I..  -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o linux.o linux.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-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 -fPIC -I..  -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 -fPIC -I..  -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o linux.o linux.c
linux.c: In function 'openraw':
linux.c:1513:63: warning: comparison of constant '6' with boolean expression is 
always false [-Wbool-compare]
         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
         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]
             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
             if (set_monitor( dev, iface, fd ) && !dev->drivertype == 
DT_ORINOCO )
                                                  ^~~~~~~~~~~~~~~~
                                                  (               )
linux.c: In function 'openraw':
linux.c:1513:63: warning: comparison of constant '6' with boolean expression is 
always false [-Wbool-compare]
         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
         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]
             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
             if (set_monitor( dev, iface, fd ) && !dev->drivertype == 
DT_ORINOCO )
                                                  ^~~~~~~~~~~~~~~~
                                                  (               )
At top level:
linux.c:2057:13: warning: 'linux_close' defined but not used [-Wunused-function]
 static void linux_close(struct wif *wi)
             ^~~~~~~~~~~
linux.c:1048:12: warning: 'linux_set_channel' defined but not used 
[-Wunused-function]
 static int linux_set_channel(struct wif *wi, int channel)
            ^~~~~~~~~~~~~~~~~
At top level:
linux.c:2057:13: warning: 'linux_close' defined but not used [-Wunused-function]
 static void linux_close(struct wif *wi)
             ^~~~~~~~~~~
linux.c:1048:12: warning: 'linux_set_channel' defined but not used 
[-Wunused-function]
 static int linux_set_channel(struct wif *wi, int channel)
            ^~~~~~~~~~~~~~~~~
linux.c: In function 'do_linux_open.constprop':
linux.c:1937:37: warning: '%s' directive output may be truncated writing up to 
255 bytes into a region of size 113 [-Wformat-truncation=]
                     "/sys/class/net/%s/device/rtap_iface", this_iface->d_name);
                                     ^~
In file included from /usr/include/stdio.h:873,
                 from linux.c:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
'__builtin___snprintf_chk' output between 34 and 289 bytes into a destination 
of size 128
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux.c: In function 'do_linux_open.constprop':
linux.c:1937:37: warning: '%s' directive output may be truncated writing up to 
255 bytes into a region of size 113 [-Wformat-truncation=]
                     "/sys/class/net/%s/device/rtap_iface", this_iface->d_name);
                                     ^~
In file included from /usr/include/stdio.h:873,
                 from linux.c:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
'__builtin___snprintf_chk' output between 34 and 289 bytes into a destination 
of size 128
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __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]
             closedir(batteries);
             ^~~~~~~~~~~~~~~~~~~
In file included from linux.c:40:
/usr/include/dirent.h:149:12: note: in a call to function 'closedir' declared 
here
 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=]
             snprintf(battery_info, sizeof(battery_info), 
"/proc/acpi/battery/%s/info", this_battery->d_name);
                                                                              ^~
In file included from /usr/include/stdio.h:873,
                 from linux.c:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
'__builtin___snprintf_chk' output between 25 and 280 bytes into a destination 
of size 128
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __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=]
                 "/proc/acpi/battery/%s/state", this_battery->d_name);
                                     ^~
In file included from /usr/include/stdio.h:873,
                 from linux.c:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
'__builtin___snprintf_chk' output between 26 and 281 bytes into a destination 
of size 128
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __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=]
                 "/proc/acpi/ac_adapter/%s/state", this_adapter->d_name);
                                        ^~
In file included from /usr/include/stdio.h:873,
                 from linux.c:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
'__builtin___snprintf_chk' output between 29 and 284 bytes into a destination 
of size 128
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __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]
             closedir(batteries);
             ^~~~~~~~~~~~~~~~~~~
In file included from linux.c:40:
/usr/include/dirent.h:149:12: note: in a call to function 'closedir' declared 
here
 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=]
             snprintf(battery_info, sizeof(battery_info), 
"/proc/acpi/battery/%s/info", this_battery->d_name);
                                                                              ^~
In file included from /usr/include/stdio.h:873,
                 from linux.c:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
'__builtin___snprintf_chk' output between 25 and 280 bytes into a destination 
of size 128
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __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=]
                 "/proc/acpi/battery/%s/state", this_battery->d_name);
                                     ^~
In file included from /usr/include/stdio.h:873,
                 from linux.c:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
'__builtin___snprintf_chk' output between 26 and 281 bytes into a destination 
of size 128
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __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=]
                 "/proc/acpi/ac_adapter/%s/state", this_adapter->d_name);
                                        ^~
In file included from /usr/include/stdio.h:873,
                 from linux.c:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
'__builtin___snprintf_chk' output between 29 and 284 bytes into a destination 
of size 128
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-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 -fPIC -I..  -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 -fPIC -I..  -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o linux_tap.o linux_tap.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-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 -fPIC -I..  -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 -fPIC -I..  -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o linux_tap.o linux_tap.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-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 -fPIC -I..  -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 -fPIC -I..  -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o radiotap/radiotap.o radiotap/radiotap.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-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 -fPIC -I..  -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 -fPIC -I..  -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o radiotap/radiotap.o radiotap/radiotap.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-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 -fPIC -I..  -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 -fPIC -I..  -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o common.o common.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-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 -fPIC -I..  -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 -fPIC -I..  -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o common.o common.c
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 cru libosdep.a  osdep.o network.o file.o linux.o linux_tap.o 
radiotap/radiotap.o common.o
ranlib libosdep.a 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libosdep.a 
touch .os.Linux
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/osdep'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/osdep'
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-Wdate-time -D_FORTIFY_SOURCE=2  -c -o debug.o debug.c
touch .os.Linux
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/osdep'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/osdep'
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-Wdate-time -D_FORTIFY_SOURCE=2  -c -o helpers.o helpers.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-Wdate-time -D_FORTIFY_SOURCE=2  -c -o mac_addr.o mac_addr.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-Wdate-time -D_FORTIFY_SOURCE=2  -c -o linkedlist.o linkedlist.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-Wdate-time -D_FORTIFY_SOURCE=2  -c -o greylist.o greylist.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-Wdate-time -D_FORTIFY_SOURCE=2  -c -o dumpfile.o dumpfile.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-Wdate-time -D_FORTIFY_SOURCE=2  -c -o packet.o packet.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-Wdate-time -D_FORTIFY_SOURCE=2  -c -o brute.o brute.c
packet.c: In function 'create_ieee_hdr':
packet.c:13:3: warning: this 'if' clause does not guard... 
[-Wmisleading-indentation]
   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'
   if (!fragment) seqno++; seqno %= 0x1000;
                           ^~~~~
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-Wdate-time -D_FORTIFY_SOURCE=2  -c -o osdep.o osdep.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-Wdate-time -D_FORTIFY_SOURCE=2  -c -o channelhopper.o channelhopper.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-Wdate-time -D_FORTIFY_SOURCE=2  -c -o ghosting.o ghosting.c
channelhopper.c:48:26: warning: initialization of 'pthread_t' {aka 'long 
unsigned int'} from 'void *' 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)
                            ~~~~~~~~~~~~~~~~~~~~~~^~~~~
channelhopper.c: In function 'channel_sniff':
channelhopper.c:387:6: warning: unused variable 'ie_type' [-Wunused-variable]
  int ie_type;
      ^~~~~~~
channelhopper.c: In function 'init_channel_hopper':
channelhopper.c:592:19: warning: unused variable 'i' [-Wunused-variable]
     int lpos = 0, i;
                   ^
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)
              ^~~~~~~~~~~~~~
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-Wdate-time -D_FORTIFY_SOURCE=2  -c -o fragmenting.o fragmenting.c
make -C attacks
make[3]: Entering directory '/<<PKGBUILDDIR>>/src/attacks'
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o attacks.o attacks.c
make -C attacks
make[3]: Entering directory '/<<PKGBUILDDIR>>/src/attacks'
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -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]
   struct attacks *attacks = malloc(sizeof(struct attacks) * attack_count);
                             ^~~~~~
attacks.c:8:29: warning: incompatible implicit declaration of built-in function 
'malloc'
attacks.c:8:29: note: include '<stdlib.h>' or provide a declaration of 'malloc'
attacks.c:4:1:
+#include <stdlib.h>
 
attacks.c:8:29:
   struct attacks *attacks = malloc(sizeof(struct attacks) * attack_count);
                             ^~~~~~
attacks.c: In function 'load_attacks':
attacks.c:8:29: warning: implicit declaration of function 'malloc' 
[-Wimplicit-function-declaration]
   struct attacks *attacks = malloc(sizeof(struct attacks) * attack_count);
                             ^~~~~~
attacks.c:8:29: warning: incompatible implicit declaration of built-in function 
'malloc'
attacks.c:8:29: note: include '<stdlib.h>' or provide a declaration of 'malloc'
attacks.c:4:1:
+#include <stdlib.h>
 
attacks.c:8:29:
   struct attacks *attacks = malloc(sizeof(struct attacks) * attack_count);
                             ^~~~~~
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o auth_dos.o auth_dos.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o auth_dos.o auth_dos.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o beacon_flood.o 
beacon_flood.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o beacon_flood.o 
beacon_flood.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o countermeasures.o 
countermeasures.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o countermeasures.o 
countermeasures.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o deauth.o deauth.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o deauth.o deauth.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o dummy.o dummy.c
dummy.c: In function 'dummy_parse':
dummy.c:30:32: warning: implicit declaration of function 'malloc' 
[-Wimplicit-function-declaration]
   struct dummy_options *dopt = malloc(sizeof(struct dummy_options));
                                ^~~~~~
dummy.c:30:32: warning: incompatible implicit declaration of built-in function 
'malloc'
dummy.c:30:32: note: include '<stdlib.h>' or provide a declaration of 'malloc'
dummy.c:5:1:
+#include <stdlib.h>
 
dummy.c:30:32:
   struct dummy_options *dopt = malloc(sizeof(struct dummy_options));
                                ^~~~~~
dummy.c: In function 'load_dummy':
dummy.c:69:22: warning: incompatible implicit declaration of built-in function 
'malloc'
   char *dummy_name = malloc(strlen(DUMMY_NAME) + 1);
                      ^~~~~~
dummy.c:69:22: note: include '<stdlib.h>' or provide a declaration of 'malloc'
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o dummy.o dummy.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -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]
   struct dummy_options *dopt = malloc(sizeof(struct dummy_options));
                                ^~~~~~
dummy.c:30:32: warning: incompatible implicit declaration of built-in function 
'malloc'
dummy.c:30:32: note: include '<stdlib.h>' or provide a declaration of 'malloc'
dummy.c:5:1:
+#include <stdlib.h>
 
dummy.c:30:32:
   struct dummy_options *dopt = malloc(sizeof(struct dummy_options));
                                ^~~~~~
dummy.c: In function 'load_dummy':
dummy.c:69:22: warning: incompatible implicit declaration of built-in function 
'malloc'
   char *dummy_name = malloc(strlen(DUMMY_NAME) + 1);
                      ^~~~~~
dummy.c:69:22: note: include '<stdlib.h>' or provide a declaration of 'malloc'
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o eapol.o eapol.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o fuzzer.o fuzzer.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o fuzzer.o fuzzer.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ieee80211s.o ieee80211s.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ieee80211s.o ieee80211s.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o probing.o probing.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o probing.o probing.c
probing.c: In function 'create_probe_req':
probing.c:236:3: warning: implicit declaration of function 'add_ssid_set'; did 
you mean 'get_ssid_len'? [-Wimplicit-function-declaration]
   add_ssid_set(&probe, ssid);
   ^~~~~~~~~~~~
   get_ssid_len
probing.c:237:3: warning: implicit declaration of function 'add_rate_sets' 
[-Wimplicit-function-declaration]
   add_rate_sets(&probe, 1, 1);
   ^~~~~~~~~~~~~
probing.c:240:25: warning: pointer targets in passing argument 2 of 'stpcpy' 
differ in signedness [-Wpointer-sign]
   stpcpy(popt->proceed, ssid);
                         ^~~~
In file included from probing.c:4:
/usr/include/string.h:451:14: note: expected 'const char * restrict' but 
argument is of type 'unsigned char *'
 extern char *stpcpy (char *__restrict __dest, const char *__restrict __src)
              ^~~~~~
probing.c:195:27: warning: unused variable 'ssid_len' [-Wunused-variable]
   unsigned char i,c,type, ssid_len;
                           ^~~~~~~~
probing.c: In function 'create_probe_req':
probing.c:236:3: warning: implicit declaration of function 'add_ssid_set'; did 
you mean 'get_ssid_len'? [-Wimplicit-function-declaration]
   add_ssid_set(&probe, ssid);
   ^~~~~~~~~~~~
   get_ssid_len
probing.c:237:3: warning: implicit declaration of function 'add_rate_sets' 
[-Wimplicit-function-declaration]
   add_rate_sets(&probe, 1, 1);
   ^~~~~~~~~~~~~
probing.c:240:25: warning: pointer targets in passing argument 2 of 'stpcpy' 
differ in signedness [-Wpointer-sign]
   stpcpy(popt->proceed, ssid);
                         ^~~~
In file included from probing.c:4:
/usr/include/string.h:451:14: note: expected 'const char * restrict' but 
argument is of type 'unsigned char *'
 extern char *stpcpy (char *__restrict __dest, const char *__restrict __src)
              ^~~~~~
probing.c:195:27: warning: unused variable 'ssid_len' [-Wunused-variable]
   unsigned char i,c,type, ssid_len;
                           ^~~~~~~~
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o wids.o wids.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  -g -O3 
-Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2  -c -o wids.o wids.c
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/attacks'
make -C attacks
make[3]: Entering directory '/<<PKGBUILDDIR>>/src/attacks'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/attacks'
make -C attacks
make[3]: Entering directory '/<<PKGBUILDDIR>>/src/attacks'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/attacks'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/attacks'
make -C attacks
make[3]: Entering directory '/<<PKGBUILDDIR>>/src/attacks'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/attacks'
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -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  
-Wdate-time -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,-z,relro -Wl,-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]
   setuid(getuid());
   ^~~~~~~~~~~~~~~~
/usr/bin/ld: osdep/libosdep.a(linux.o): in function `linux_get_freq':
./src/osdep/linux.c:446: undefined reference to `getFrequencyFromChannel'
/usr/bin/ld: osdep/libosdep.a(linux.o): in function `linux_get_channel':
./src/osdep/linux.c:412: undefined reference to `getChannelFromFrequency'
/usr/bin/ld: osdep/libosdep.a(linux.o): in function `linux_read':
./src/osdep/linux.c:751: undefined reference to `getChannelFromFrequency'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:36: mdk4] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:10: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j2 "INSTALL=install --strip-program=true" returned exit 
code 2
make: *** [debian/rules:7: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit 
status 2
--------------------------------------------------------------------------------

The failure happens randomly. Sometimes it fails, sometimes it does not.

I can reproduce the randomness on 1-S instances from Scaleway (having
two cores). I have also tried on 1-XS instances (having a single
core), but the failure never happened there so far. (This is the
reason I've put the word "parallel" in the subject, but that's just a
working hypothesis for now).

I've put a bunch of failed build logs here:

https://people.debian.org/~sanvila/build-logs/mdk4/

BTW: One of them contains this funny error message:

ranlib: out of memory allocating 42949672960 bytes after a total of 143360 bytes

That's 42 GB of memory. Could this be a bug in binutils?

If you need a test machine to reproduce this, please contact me privately,
I could provide ssh access to a machine where this randomness happens.

There is still another approach at fixing this problem, which would be
to assume it is a Makefile bug (my current bet), and then try to see
how libosdep.a could be misbuilt (maybe a race condition). You could,
for example, try to prove that the Makefile is correct, and by doing
so, realize what's wrong in it. Of course that will only work if
the failure is due to a Makefile bug.

Thanks.

Reply via email to