pihpsdr
pihpsdr copied to clipboard
Compilation failure with libgpiod-2.0.2
gpio.c: In function ‘interrupt_cb’:
gpio.c:598:10: error: ‘GPIOD_CTXLESS_EVENT_CB_TIMEOUT’ undeclared (first use in this function)
598 | case GPIOD_CTXLESS_EVENT_CB_TIMEOUT:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpio.c:598:10: note: each undeclared identifier is reported only once for each function it appears in
gpio.c:602:10: error: ‘GPIOD_CTXLESS_EVENT_CB_RISING_EDGE’ undeclared (first use in this function); did you mean ‘GPIOD_EDGE_EVENT_RISING_EDGE’?
602 | case GPIOD_CTXLESS_EVENT_CB_RISING_EDGE:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| GPIOD_EDGE_EVENT_RISING_EDGE
gpio.c:606:10: error: ‘GPIOD_CTXLESS_EVENT_CB_FALLING_EDGE’ undeclared (first use in this function); did you mean ‘GPIOD_EDGE_EVENT_FALLING_EDGE’?
606 | case GPIOD_CTXLESS_EVENT_CB_FALLING_EDGE:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| GPIOD_EDGE_EVENT_FALLING_EDGE
gpio.c:611:10: error: ‘GPIOD_CTXLESS_EVENT_CB_RET_OK’ undeclared (first use in this function)
611 | return GPIOD_CTXLESS_EVENT_CB_RET_OK;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It seems the context-less interfaces were dropped from libgpiod: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/commit/?id=9b6e6d268671ef2dd00d9a9abe7ba43d14e7a84b
As there is no libgpiod-1.6 on Fedora 39 now, I am currently unable to compile it for Fedora. And Fedora 39 is currently going EOL. This problem will probably affect other recent distro versions.