Tom G. Christensen wrote:
> /usr/tgcware/gcc45/bin/gcc -std=gnu99  -g -O2  -L/usr/tgcware/lib 
> -R/usr/tgcware/lib -o test-fts test-
> fts.o ../gllib/libgnu.a -lm   -lm     -lm    -lm  -lm  -lm
> Undefined                       first referenced
>   symbol                             in file
> libintl_gettext                     ../gllib/libgnu.a(openat-die.o)
> ld: fatal: Symbol referencing errors. No output written to test-fts
> collect2: ld returned 1 exit status
> make[4]: *** [test-fts] Error 1

This should fix it:


2017-08-11  Bruno Haible  <br...@clisp.org>

        fts tests: Fix link error.
        Reported by Tom G. Christensen in
        https://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00078.html
        * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.

diff --git a/modules/fts-tests b/modules/fts-tests
index 115bf66..1651290 100644
--- a/modules/fts-tests
+++ b/modules/fts-tests
@@ -11,3 +11,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-fts
 check_PROGRAMS += test-fts
+test_fts_LDADD = $(LDADD) @LIBINTL@


Reply via email to