The following message is displayed and fails to compile on Gentoo/FBSD. gmake[3]: Entering directory `/var/tmp/portage/sys-devel/autogen-5.17.3/work/autogen-5.17.3/getdefs' top_builddir=.. top_srcdir=.. PATH=`cd ../columns >/dev/null && pwd`:$PATH ; export top_builddir top_srcdir PATH ; DEPFILE= \ /var/tmp/portage/sys-devel/autogen-5.17.3/work/autogen-5.17.3/agen5/autogen -L../autoopts/tpl -L../autoopts/tpl ./opts.def x86_64-gentoo-freebsd9.1-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../autoopts -O1 -pipe -ggdb -c gd.c /bin/sh ../libtool --tag=CC --mode=link x86_64-gentoo-freebsd9.1-gcc -std=gnu99 -O1 -pipe -ggdb -o getdefs gd.o ../autoopts/libopts.la -lm -lm libtool: link: x86_64-gentoo-freebsd9.1-gcc -std=gnu99 -O1 -pipe -ggdb -o .libs/getdefs gd.o ../autoopts/.libs/libopts.so -lm ../autoopts/.libs/libopts.so: undefined reference to `libintl_dgettext' ../autoopts/.libs/libopts.so: undefined reference to `libintl_gettext' collect2: ld returned 1 exit status gmake[3]: *** [getdefs] Error 1 gmake[3]: Leaving directory `/var/tmp/portage/sys-devel/autogen-5.17.3/work/autogen-5.17.3/getdefs' gmake[2]: *** [stamp-doc] Error 2 gmake[2]: Leaving directory `/var/tmp/portage/sys-devel/autogen-5.17.3/work/autogen-5.17.3/getdefs' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/var/tmp/portage/sys-devel/autogen-5.17.3/work/autogen-5.17.3' gmake: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. emerge sys-devel/autogen 2. 3. sys-devel/autogen-5.15 was compiled successfully.
Created attachment 346882 [details, diff] files/autogen-5.17.3-libintl.patch @toolchain This patch add libintl's gettext() check to the configure. This should fix the issue. (worked here)
(In reply to comment #1) i suspect this patch is incorrect. pretty sure you want: AC_SEARCH_LIBS([gettext], [intl])
(In reply to comment #2) > ... pretty sure you want: > AC_SEARCH_LIBS([gettext], [intl]) "Next time". Thank you.
Added AC_SEARCH_LIBS patch. Thanks.
(In reply to comment #4) you must clean up & properly document your patches. i've done it for you this time via: http://sources.gentoo.org/sys-devel/autogen/autogen-5.17.3.ebuild?r1=1.3&r2=1.4 http://sources.gentoo.org/sys-devel/autogen/files/autogen-5.17.3-libintl.patch?r1=1.1&r2=1.2 please read: http://dev.gentoo.org/~vapier/clean-patches
OK, I'll take care next time.