[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GetText 1.20.1 and libgettextlib.so: undefined reference to `libiconv' (
From: |
Jeffrey Walton |
Subject: |
GetText 1.20.1 and libgettextlib.so: undefined reference to `libiconv' (and friends) |
Date: |
Wed, 5 Feb 2020 04:02:30 -0500 |
Hi Everyone,
I'm building GetText 1.20.1 from sources on NetBSD. msgcmp is failing:
/bin/sh ../libtool --tag=CC --mode=link gcc -g2 -O2 -fPIC -pthread
-L/usr/local/lib -Wl,-R,'$ORIGIN/../lib' -Wl,-R,/usr/local/lib
-Wl,--enable-new-dtags -o msgcmp msgcmp-msgcmp.o msgcmp-msgl-fsearch.o
libgettextsrc.la -lm -lpthread
libtool: link: gcc -g2 -O2 -fPIC -pthread -Wl,-R -Wl,\$ORIGIN/../lib
-Wl,-R -Wl,/usr/local/lib -Wl,--enable-new-dtags -o .libs/msgcmp
msgcmp-msgcmp.o msgcmp-msgl-fsearch.o -L/usr/local/lib
./.libs/libgettextsrc.so
/home/jwalton/gettext-0.20.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so
/home/jwalton/gettext-0.20.1/libtextstyle/lib/.libs/libtextstyle.so
-lncurses /home/jwalton/gettext-0.20.1/gettext-tools/intl/.libs/libintl.so
-lc -lm -lpthread -pthread -Wl,-rpath -Wl,/usr/local/lib
/home/jwalton/gettext-0.20.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so:
undefined reference to `libiconv'
/home/jwalton/gettext-0.20.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so:
undefined reference to `libiconv_open'
/home/jwalton/gettext-0.20.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so:
undefined reference to `libiconv_close'
gmake[5]: *** [Makefile:2909: msgcmp] Error 1
I configured GetText with --with-libiconv-prefix=[DIR], but it looks
like -liconv and did not make it into the recipe. Adding -liconv to
LIBS did not help.
Jeff
- GetText 1.20.1 and libgettextlib.so: undefined reference to `libiconv' (and friends),
Jeffrey Walton <=