Hi, The ‘iconv’ modules fails to build on NetBSD 5.1 (see gcc70 of the GCC Compile Farm):
--8<---------------cut here---------------start------------->8--- depbase=`echo iconv.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; /bin/ksh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../lib -I.. -I/home/ludo/soft/include -I/usr/pkg/include -fvisibility=hidden -I/home/ludo/soft/include -g -O2 -MT iconv.lo -MD -MP -MF $depbase.Tpo -c -o iconv.lo ../../lib/iconv.c && mv -f $depbase.Tpo $depbase.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../lib -I.. -I/home/ludo/soft/include -I/usr/pkg/include -fvisibility=hidden -I/home/ludo/soft/include -g -O2 -MT iconv.lo -MD -MP -MF .deps/iconv.Tpo -c ../../lib/iconv.c -fPIC -DPIC -o .libs/iconv.o ../../lib/iconv.c:282: error: conflicting types for 'rpl_iconv' ./iconv.h:388: error: previous declaration of 'rpl_iconv' was here --8<---------------cut here---------------end--------------->8--- The problem is: --8<---------------cut here---------------start------------->8--- $ grep ICONV_CONST config.status S["ICONV_CONST"]="" D["ICONV_CONST"]=" const" --8<---------------cut here---------------end--------------->8--- Indeed: --8<---------------cut here---------------start------------->8--- $ grep ICONV_CONST= configure ICONV_CONST=; --8<---------------cut here---------------end--------------->8--- So it seems that this snippet doesn’t get expanded: --8<---------------cut here---------------start------------->8--- m4_ifdef([gl_ICONV_H_DEFAULTS], [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) if test -n "$am_cv_proto_iconv_arg1"; then ICONV_CONST="const" fi ]) --8<---------------cut here---------------end--------------->8--- Ideas? Thanks, Ludo’.