Running phase: unpackPhase unpacking source archive /nix/store/v3rmzgfc48n8pbpmhzjc36kd329470k2-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase substituteStream() in derivation mdk4-unstable-2021-04-27: WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'src/Makefile') build flags: SHELL=/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/bash PREFIX=\$\(out\) SBINDIR=\$\(PREFIX\)/bin make -C src clean make[1]: Entering directory '/build/source/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 '/build/source/src/osdep' make -C radiotap clean make[3]: Entering directory '/build/source/src/osdep/radiotap' rm -f *.o make[3]: Leaving directory '/build/source/src/osdep/radiotap' rm -f libosdep.a *.o .os.* make[2]: Leaving directory '/build/source/src/osdep' make -C attacks clean make[2]: Entering directory '/build/source/src/attacks' rm -f attacks.o auth_dos.o beacon_flood.o countermeasures.o deauth.o dummy.o eapol.o fuzzer.o ieee80211s.o poc.o probing.o wids.o *.o make[2]: Leaving directory '/build/source/src/attacks' make[1]: Leaving directory '/build/source/src' make -C src make[1]: Entering directory '/build/source/src' make -C osdep make[2]: Entering directory '/build/source/src/osdep' Building for Linux make[3]: Entering directory '/build/source/src/osdep' gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -fPIC -I.. -c -o osdep.o osdep.c gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -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 -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -fPIC -I.. -c -o file.o file.c gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -fPIC -I.. -c -o linux.o linux.c linux.c: In function 'is_ndiswrapper': linux.c:183: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;;] 183 | int n, pid, unused; | ^~~~~~ linux.c: In function 'linux_set_rate': linux.c:457: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;;] 457 | int pid, status, unused; | ^~~~~~ linux.c: In function 'linux_set_channel_nl80211': linux.c:950: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;;] 950 | int pid, status, unused; | ^~~~~~ linux.c: In function 'linux_set_channel': linux.c:1052: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;;] 1052 | int pid, status, unused; | ^~~~~~ linux.c: In function 'linux_set_freq': linux.c:1143: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;;] 1143 | int pid, status, unused; | ^~~~~~ linux.c: In function 'set_monitor': linux.c:1273: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;;] 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 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbool-compare-Wbool-compare8;;] 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 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wlogical-not-parentheses-Wlogical-not-parentheses8;;] 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 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbool-compare-Wbool-compare8;;] 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 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wlogical-not-parentheses-Wlogical-not-parentheses8;;] 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 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-but-set-variable-Wunused-but-set-variable8;;] 1620 | char * unused_str; | ^~~~~~~~~~ linux.c:1606: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;;] 1606 | int kver, unused; | ^~~~~~ linux.c: In function 'get_battery_state': linux.c:2273: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;;] 2273 | int rate = 1, remain = 0, current = 0; | ^~~~~~~ linux.c: At top level: linux.c:2057:13: warning: 'linux_close' defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-function-Wunused-function8;;] 2057 | static void linux_close(struct wif *wi) | ^~~~~~~~~~~ linux.c:946:12: warning: 'linux_set_channel_nl80211' defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-function-Wunused-function8;;] 946 | static int linux_set_channel_nl80211(struct wif *wi, int channel) | ^~~~~~~~~~~~~~~~~~~~~~~~~ linux.c:314:12: warning: 'linux_nl80211_init' defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-function-Wunused-function8;;] 314 | static int linux_nl80211_init(struct nl80211_state *state) | ^~~~~~~~~~~~~~~~~~ linux.c: In function 'do_linux_open.constprop': linux.c:1906: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;;] 1906 | strncpy(dev->main_if, iface, strlen(iface)); | ^ linux.c:1906:9: note: length computed here 1906 | strncpy(dev->main_if, iface, strlen(iface)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ linux.c:1911: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;;] 1911 | strncpy(iface, buf, strlen(buf)); | ^ 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 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-truncation-Wformat-truncation=8;;] 1937 | "/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:1936: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:2310: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;;] 2310 | 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:2318: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;;] 2318 | 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:2318: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:2330: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;;] 2330 | "/proc/acpi/battery/%s/state", this_battery->d_name); | ^~ In function 'snprintf', inlined from 'get_battery_state' at linux.c:2329: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:2289: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;;] 2289 | "/proc/acpi/ac_adapter/%s/state", this_adapter->d_name); | ^~ In function 'snprintf', inlined from 'get_battery_state' at linux.c:2288: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 -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -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 -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -fPIC -I.. -c -o radiotap/radiotap.o radiotap/radiotap.c gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -fPIC -I.. -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') ranlib libosdep.a touch .os.Linux make[3]: Leaving directory '/build/source/src/osdep' make[2]: Leaving directory '/build/source/src/osdep' gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -g -O3 -Wall -Wextra -fcommon -c -o debug.o debug.c gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -g -O3 -Wall -Wextra -fcommon -c -o helpers.o helpers.c gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -g -O3 -Wall -Wextra -fcommon -c -o mac_addr.o mac_addr.c gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -g -O3 -Wall -Wextra -fcommon -c -o linkedlist.o linkedlist.c gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -g -O3 -Wall -Wextra -fcommon -c -o greylist.o greylist.c gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -g -O3 -Wall -Wextra -fcommon -c -o dumpfile.o dumpfile.c gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -g -O3 -Wall -Wextra -fcommon -c -o packet.o packet.c packet.c: In function 'create_ieee_hdr': packet.c:13:3: warning: this 'if' clause does not guard... [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation8;;] 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 -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -g -O3 -Wall -Wextra -fcommon -c -o brute.o brute.c gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -g -O3 -Wall -Wextra -fcommon -c -o osdep.o osdep.c osdep.c: In function 'osdep_init_txpowers': osdep.c:165:36: warning: '%s' directive argument is null [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-overflow-Wformat-overflow=8;;] 165 | printf("D'oh, open interface %s first, idiot...\n", osdep_iface_out); | ^~ gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v2 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/nix/store/27n2d3xaka9fml9mqw74vr2vrhv579va-libnl-3.11.0-dev/include/libnl3 -g -O3 -Wall -Wextra -fcommon -c -o channelhopper.o channelhopper.c channelhopper.c:48:26: error: initialization of 'pthread_t' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wint-conversion-Wint-conversion8;;] 48 | pthread_t chan_sniffer = NULL; | ^~~~ channelhopper.c: In function 'error_handler': channelhopper.c:155:46: warning: unused parameter 'nla' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-parameter-Wunused-parameter8;;] 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' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-parameter-Wunused-parameter8;;] 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' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-parameter-Wunused-parameter8;;] 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' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-parameter-Wunused-parameter8;;] 186 | int valid_handler(struct nl_msg *msg, void *arg) | ~~~~~~^~~ channelhopper.c: In function 'handle_channels': channelhopper.c:328:50: warning: unused parameter 'state' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-parameter-Wunused-parameter8;;] 328 | static int handle_channels(struct nl80211_state *state, struct nl_msg *msg) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ channelhopper.c: At top level: channelhopper.c:240:14: warning: 'dfs_state_name' defined but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-function-Wunused-function8;;] 240 | static char *dfs_state_name(enum nl80211_dfs_state state) | ^~~~~~~~~~~~~~ make[1]: *** [: channelhopper.o] Error 1 make[1]: Leaving directory '/build/source/src' make: *** [Makefile:10: all] Error 2