The gpio.c and gpio.h files are not compatible.
p:~/github/pihpsdr$ make
gcc -g -Wno-deprecated-declarations -D PURESIGNAL -D GPIO -D GIT_DATE='"2026-06-03"' -D GIT_VERSION='"v2.0.8-rc1"' `pkg-config --cflags gtk+-3.0` -c -o gpio.o gpio.c
gpio.c: In function ‘interrupt_cb’:
gpio.c:613:10: error: ‘GPIOD_CTXLESS_EVENT_TIMEOUT’ undeclared (first use in this function)
613 | case GPIOD_CTXLESS_EVENT_TIMEOUT:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
gpio.c:613:10: note: each undeclared identifier is reported only once for each function it appears in
gpio.c:617:10: error: ‘GPIOD_CTXLESS_EVENT_RISING_EDGE’ undeclared (first use in this function); did you mean ‘GPIOD_EDGE_EVENT_RISING_EDGE’?
617 | case GPIOD_CTXLESS_EVENT_RISING_EDGE:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| GPIOD_EDGE_EVENT_RISING_EDGE
gpio.c:621:10: error: ‘GPIOD_CTXLESS_EVENT_FALLING_EDGE’ undeclared (first use in this function); did you mean ‘GPIOD_EDGE_EVENT_FALLING_EDGE’?
621 | case GPIOD_CTXLESS_EVENT_FALLING_EDGE:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| GPIOD_EDGE_EVENT_FALLING_EDGE
gpio.c:626:10: error: ‘GPIOD_CTXLESS_EVENT_CB_RET_OK’ undeclared (first use in this function)
626 | return GPIOD_CTXLESS_EVENT_CB_RET_OK;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpio.c: In function ‘monitor_thread’:
gpio.c:913:11: error: implicit declaration of function ‘gpiod_ctxless_event_monitor_multiple’ [-Wimplicit-function-declaration]
913 | int ret=gpiod_ctxless_event_monitor_multiple(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpio.c:914:38: error: ‘GPIOD_CTXLESS_EVENT_BOTH_EDGES’ undeclared (first use in this function)
914 | gpio_device, GPIOD_CTXLESS_EVENT_BOTH_EDGES,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpio.c: In function ‘setup_line’:
gpio.c:927:36: error: storage size of ‘config’ isn’t known
927 | struct gpiod_line_request_config config;
| ^~~~~~
gpio.c:930:27: error: implicit declaration of function ‘gpiod_chip_get_line’; did you mean ‘gpiod_chip_get_info’? [-Wimplicit-function-declaration]
930 | struct gpiod_line *line=gpiod_chip_get_line(chip, offset);