Two days ago, I did:
>       * modules/chown-tests (Depends-on): Add xconcat-filename, xgetcwd.
>       * modules/fchownat-tests (Depends-on): Likewise.
>       * modules/fdutimensat-tests (Depends-on): Likewise.
>       * modules/futimens-tests (Depends-on): Likewise.
>       * modules/lchown-tests (Depends-on): Likewise.
>       * modules/stat-time-tests (Depends-on): Likewise.
>       * modules/utime-tests (Depends-on): Likewise.
>       * modules/utimens-tests (Depends-on): Likewise.
>       * modules/utimensat-tests (Depends-on): Likewise.

These two module dependencies require linking the test programs with
$(LIBINTL). The CI reported link errors on several platforms. This should
fix it.


2024-08-14  Bruno Haible  <br...@clisp.org>

        tests: Fix link errors (regression 2024-08-12).
        * modules/chown-tests (Makefile.am): Link test-chown with LIBINTL.
        * modules/lchown-tests (Makefile.am): Link test-lchown with LIBINTL.
        * modules/stat-time-tests (Makefile.am): Link test-stat-time with
        LIBINTL.

diff --git a/modules/chown-tests b/modules/chown-tests
index 520c00dfb3..2c3d9686dc 100644
--- a/modules/chown-tests
+++ b/modules/chown-tests
@@ -23,4 +23,4 @@ AC_CHECK_FUNCS_ONCE([getgid getegid])
 Makefile.am:
 TESTS += test-chown
 check_PROGRAMS += test-chown
-test_chown_LDADD = $(LDADD) $(NANOSLEEP_LIB)
+test_chown_LDADD = $(LDADD) $(NANOSLEEP_LIB) @LIBINTL@
diff --git a/modules/lchown-tests b/modules/lchown-tests
index a66d624b30..cc7bffa55f 100644
--- a/modules/lchown-tests
+++ b/modules/lchown-tests
@@ -23,4 +23,4 @@ AC_CHECK_FUNCS_ONCE([getgid getegid])
 Makefile.am:
 TESTS += test-lchown
 check_PROGRAMS += test-lchown
-test_lchown_LDADD = $(LDADD) $(NANOSLEEP_LIB)
+test_lchown_LDADD = $(LDADD) $(NANOSLEEP_LIB) @LIBINTL@
diff --git a/modules/stat-time-tests b/modules/stat-time-tests
index 50addb33fc..9a283783b7 100644
--- a/modules/stat-time-tests
+++ b/modules/stat-time-tests
@@ -16,4 +16,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-stat-time
 check_PROGRAMS += test-stat-time
-test_stat_time_LDADD = $(LDADD) $(NANOSLEEP_LIB)
+test_stat_time_LDADD = $(LDADD) $(NANOSLEEP_LIB) @LIBINTL@




Reply via email to