Running phase: unpackPhase unpacking source archive /nix/store/pn5xlvdfw8455hl0fh055p8m7kasijp5-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase build flags: SHELL=/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/bash make -C osdep make[1]: Entering directory '/build/source/osdep' Building for Linux make[2]: Entering directory '/build/source/osdep' gcc -g -W -Wall -Wextra -O3 -Wno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -c -o osdep.o osdep.c gcc -g -W -Wall -Wextra -O3 -Wno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -c -o common.o common.c gcc -g -W -Wall -Wextra -O3 -Wno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -c -o network.o network.c network.c: In function 'net_send': network.c:61:39: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wcalloc-transposed-args-Wcalloc-transposed-args8;;] 61 | pktbuf = (char*)calloc(sizeof(char), pktlen); | ^~~~ network.c:61:39: note: earlier argument should specify number of elements, later size of each element gcc -g -W -Wall -Wextra -O3 -Wno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -c -o linux.o linux.c linux.c: In function 'is_ndiswrapper': linux.c:165:17: warning: variable 'unused' set but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-but-set-variable-Wunused-but-set-variable8;;] 165 | int n, pid, unused; | ^~~~~~ linux.c: In function 'linux_set_rate': linux.c:334:22: warning: variable 'unused' set but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-but-set-variable-Wunused-but-set-variable8;;] 334 | int pid, status, unused; | ^~~~~~ linux.c: In function 'linux_read': linux.c:498:27: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-sizeof-pointer-memaccess-Wsizeof-pointer-memaccess8;;] 498 | memset( buf, 0, sizeof( buf ) ); | ^ linux.c: In function 'linux_set_channel': linux.c:807:22: warning: variable 'unused' set but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-but-set-variable-Wunused-but-set-variable8;;] 807 | int pid, status, unused; | ^~~~~~ linux.c: In function 'linux_set_freq': linux.c:896:22: warning: variable 'unused' set but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-but-set-variable-Wunused-but-set-variable8;;] 896 | int pid, status, unused; | ^~~~~~ linux.c: In function 'set_monitor': linux.c:1022:22: warning: variable 'unused' set but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-but-set-variable-Wunused-but-set-variable8;;] 1022 | int pid, status, unused; | ^~~~~~ linux.c: In function 'openraw': linux.c:1259:63: warning: comparison of constant '6' with boolean expression is always false [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbool-compare-Wbool-compare8;;] 1259 | if (set_monitor( dev, iface, fd ) && !dev->drivertype == DT_ORINOCO ) | ^~ linux.c:1259:63: warning: logical not is only applied to the left hand side of comparison [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wlogical-not-parentheses-Wlogical-not-parentheses8;;] linux.c:1259:46: note: add parentheses around left hand side expression to silence this warning 1259 | if (set_monitor( dev, iface, fd ) && !dev->drivertype == DT_ORINOCO ) | ^~~~~~~~~~~~~~~~ | ( ) linux.c:1269:67: warning: comparison of constant '6' with boolean expression is always false [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbool-compare-Wbool-compare8;;] 1269 | if (set_monitor( dev, iface, fd ) && !dev->drivertype == DT_ORINOCO ) | ^~ linux.c:1269:67: warning: logical not is only applied to the left hand side of comparison [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wlogical-not-parentheses-Wlogical-not-parentheses8;;] linux.c:1269:50: note: add parentheses around left hand side expression to silence this warning 1269 | if (set_monitor( dev, iface, fd ) && !dev->drivertype == DT_ORINOCO ) | ^~~~~~~~~~~~~~~~ | ( ) linux.c: In function 'do_linux_open': linux.c:1366:12: warning: variable 'unused_str' set but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-but-set-variable-Wunused-but-set-variable8;;] 1366 | char * unused_str; | ^~~~~~~~~~ linux.c:1352:15: warning: variable 'unused' set but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-but-set-variable-Wunused-but-set-variable8;;] 1352 | int kver, unused; | ^~~~~~ linux.c: In function 'get_battery_state': linux.c:1982:35: warning: variable 'current' set but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-but-set-variable-Wunused-but-set-variable8;;] 1982 | int rate = 1, remain = 0, current = 0; | ^~~~~~~ linux.c: In function 'do_linux_open.constprop': linux.c:1649:9: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-truncation-Wstringop-truncation8;;] 1649 | strncpy(dev->main_if, iface, strlen(iface)); | ^ linux.c:1649:9: note: length computed here 1649 | strncpy(dev->main_if, iface, strlen(iface)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ linux.c:1653:9: warning: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-truncation-Wstringop-truncation8;;] 1653 | strncpy(iface, buf, strlen(buf)); | ^ linux.c:1653:9: note: length computed here 1653 | strncpy(iface, buf, strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ linux.c:1679:37: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 113 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-truncation-Wformat-truncation=8;;] 1679 | "/sys/class/net/%s/device/rtap_iface", this_iface->d_name); | ^~ In file included from /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdio.h:970, from linux.c:34: In function 'snprintf', inlined from 'do_linux_open.constprop' at linux.c:1678:17: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 34 and 289 bytes into a destination of size 128 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ linux.c: In function 'get_battery_state': linux.c:2019:13: warning: argument 1 null where non-null expected [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-nonnull-Wnonnull8;;] 2019 | closedir(batteries); | ^~~~~~~~~~~~~~~~~~~ In file included from linux.c:40: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/dirent.h:134:12: note: in a call to function 'closedir' declared 'nonnull' 134 | extern int closedir (DIR *__dirp) __nonnull ((1)); | ^~~~~~~~ linux.c:2027:78: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 109 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-truncation-Wformat-truncation=8;;] 2027 | snprintf(battery_info, sizeof(battery_info), "/proc/acpi/battery/%s/info", this_battery->d_name); | ^~ In function 'snprintf', inlined from 'get_battery_state' at linux.c:2027:13: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 25 and 280 bytes into a destination of size 128 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ linux.c: In function 'get_battery_state': linux.c:2039:37: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 109 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-truncation-Wformat-truncation=8;;] 2039 | "/proc/acpi/battery/%s/state", this_battery->d_name); | ^~ In function 'snprintf', inlined from 'get_battery_state' at linux.c:2038:13: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 26 and 281 bytes into a destination of size 128 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ linux.c: In function 'get_battery_state': linux.c:1998:40: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 106 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-truncation-Wformat-truncation=8;;] 1998 | "/proc/acpi/ac_adapter/%s/state", this_adapter->d_name); | ^~ In function 'snprintf', inlined from 'get_battery_state' at linux.c:1997:13: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 29 and 284 bytes into a destination of size 128 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -g -W -Wall -Wextra -O3 -Wno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -c -o linux_tap.o linux_tap.c linux_tap.c: In function 'ti_open': linux_tap.c:72:5: warning: '__builtin_strncpy' output may be truncated copying 15 bytes from a string of length 63 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-truncation-Wstringop-truncation8;;] 72 | strncpy(priv->tl_ifr.ifr_name, priv->tl_name, | ^ gcc -g -W -Wall -Wextra -O3 -Wno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -c -o radiotap/radiotap-parser.o radiotap/radiotap-parser.c ar cru libosdep.a osdep.o common.o network.o linux.o linux_tap.o radiotap/radiotap-parser.o common.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libosdep.a touch .os.Linux make[2]: Leaving directory '/build/source/osdep' make[1]: Leaving directory '/build/source/osdep' gcc -g -O3 -w mdk3.c osdep/libosdep.a -o mdk3 -Losdep -losdep -lpthread mdk3.c: In function 'read_line_from_file': mdk3.c:757:40: error: passing argument 2 of 'getline' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 757 | bytes_read = getline(&ssid_string, &size, ssid_file_fp); | ^~~~~ | | | unsigned int * In file included from /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdio.h:966, from mdk3.c:28: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/stdio.h:118:36: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'unsigned int *' 118 | getline (char **__lineptr, size_t *__n, FILE *__stream) | ~~~~~~~~^~~ mdk3.c:762:44: error: passing argument 2 of 'getline' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 762 | bytes_read = getline(&ssid_string, &size, ssid_file_fp); | ^~~~~ | | | unsigned int * /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/stdio.h:118:36: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'unsigned int *' 118 | getline (char **__lineptr, size_t *__n, FILE *__stream) | ~~~~~~~~^~~ mdk3.c: In function 'mdk_parser': mdk3.c:3457:26: error: passing argument 1 of 'mod_test' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 3457 | mod_test(argv); | ^~~~ | | | char ** mdk3.c:3377:22: note: expected 'unsigned char **' but argument is of type 'char **' 3377 | void mod_test(uchar *argv[]) { | ^ make: *** [Makefile:22: mdk3] Error 1