On OpenBSD 7.2, with GNU gettext installed, in a coreutils build, I see this link error:
CCLD test-readutmp ld: error: undefined symbol: libintl_gettext >>> referenced by xalloc-die.c:34 (../lib/xalloc-die.c:34) >>> libcoreutils_a-xalloc-die.o:(xalloc_die) in archive >>> ../lib/libcoreutils.a >>> referenced by error.c:194 (../lib/error.c:194) >>> libcoreutils_a-error.o:(error_tail) in archive >>> ../lib/libcoreutils.a cc: error: linker command failed with exit code 1 (use -v to see invocation) This patch fixes it. 2023-08-11 Bruno Haible <br...@clisp.org> readutmp tests: Fix link error. * modules/readutmp-tests (Makefile.am): Link test-readutmp with $(LIBINTL). diff --git a/modules/readutmp-tests b/modules/readutmp-tests index 06f06a7c3c..5543b30fac 100644 --- a/modules/readutmp-tests +++ b/modules/readutmp-tests @@ -11,4 +11,4 @@ configure.ac: Makefile.am: TESTS += test-readutmp check_PROGRAMS += test-readutmp -test_readutmp_LDADD = $(LDADD) @READUTMP_LIB@ +test_readutmp_LDADD = $(LDADD) @READUTMP_LIB@ $(LIBINTL)