[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ulc-wordbreaks-tests needs libiconv
From: |
Bruno Haible |
Subject: |
Re: ulc-wordbreaks-tests needs libiconv |
Date: |
Wed, 18 Feb 2009 22:55:33 +0100 |
User-agent: |
KMail/1.9.9 |
Hi,
Tom G. Christensen wrote:
> I'm building the latest gnulib daily snapshot on i386-pc-solaris2.6 and
> it fails with a link error in the testsuite:
> gcc -std=gnu99 -g -O2 -L/usr/tgcware/lib -Wl,-R,/usr/tgcware/lib
> -Wl,-z,ignore -o test-ulc-wordbreaks test-ulc-wordbreaks.o
> ../gllib/libgnu.a -lm
> Undefined first referenced
> symbol in file
> libiconv ../gllib/libgnu.a(striconveh.o)
> libiconv_open ../gllib/libgnu.a(striconveh.o)
> libiconv_close ../gllib/libgnu.a(striconveh.o)
> ld: fatal: Symbol referencing errors. No output written to
> test-ulc-wordbreaks
> collect2: ld returned 1 exit status
> make[4]: *** [test-ulc-wordbreaks] Error 1
>
> It seems to be a simple case of a missing LDADD line in
> modules/uniwbrk/ulc-wordbreaks-tests.
Yup. You're right. Corrected as follows:
2009-02-18 Bruno Haible <address@hidden>
Fix link error on non-glibc systems.
* modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
variable.
Reported by Tom G. Christensen <address@hidden>.
--- modules/uniwbrk/ulc-wordbreaks-tests.orig 2009-02-18 22:53:15.000000000
+0100
+++ modules/uniwbrk/ulc-wordbreaks-tests 2009-02-18 22:51:42.000000000
+0100
@@ -14,4 +14,5 @@
TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_FR='@LOCALE_FR@'
check_PROGRAMS += test-ulc-wordbreaks
test_ulc_wordbreaks_SOURCES = uniwbrk/test-ulc-wordbreaks.c
+test_ulc_wordbreaks_LDADD = $(LDADD) @LIBICONV@