I downloaded https://git.kernel.org/pub/scm/libs/lib ... s?h=v2.2.x.After reading this thread I decided to give libgpiod another go on Trixie.
I installed sudo apt install libgpiod-dev
Automake failed with error `automake: error: 'configure.ac' is required` so I made a simple Makefile.
Code:
# Makefile:ifneq ($V,1)Q ?= @endif#DEBUG= -g -O0DEBUG= -O3CFLAGS= $(DEBUG) -Wall -WinlineLDLIBS = -lgpiod###############################################################################SRC=\get_chip_info.c \get_line_info.c \get_line_value.c \get_multiple_line_values.c \toggle_line_value.c \toggle_multiple_line_values.c \watch_line_info.c \watch_line_value.c \watch_line_rising.c \watch_multiple_line_values.c \async_watch_line_value.c \reconfigure_input_to_output.c \find_line_by_name.c OBJ=$(SRC:.c=.o)BINS=$(SRC:.c=)all:$(BINS).c.o:$Q echo [CC] $<$Q $(CC) -c $(CFLAGS) $< -o $@.cc.o:$Q echo [Compile] $<$Q $(CC) -c $(CFLAGS) $< -o $@clean:$Q echo "[Clean]"$Q rm -f $(OBJ) *~ core tags $(BINS)Code:
find_line_by_name.c: In function ‘all_chip_paths’:find_line_by_name.c:38:65: error: ‘versionsort’ undeclared (first use in this function)Statistics: Posted by Milliways — Fri Dec 12, 2025 6:17 am