GNOME Bugzilla – Bug 476189
Configure script should fail when gettext is not installed
Last modified: 2018-06-29 21:49:17 UTC
When gettext is not installed on the build system, the configure script succeeds. The result is make failing with the below error: make[2]: Entering directory `/home/larry/src/gnucash-2.2.1/po' file=`echo ca | sed 's,.*/,,'`.gmo \ && rm -f $file && -o $file ca.po /bin/sh: -o: not found make[2]: *** [ca.gmo] Error 127 make[2]: Leaving directory `/home/larry/src/gnucash-2.2.1/po' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/larry/src/gnucash-2.2.1' make: *** [install] Error 2 **** Installation failed. Aborting package creation. Cleaning up...OK Bye.
Could you please attach your config.log to this bug report, please? I need to see the values of a few variables.
Created attachment 95433 [details] Configuration log file
To recreate the bug on Ubuntu Feisty. 1. remove gettext (apt-get remove gettext) 2. extract a clean copy of gnucash source from gnucash-2.2.1.tar.bz2 3. in gnucash-2.2.1/ run ./configure 4. make Note that using a copy of the source that was successfully configured or built before removing gettext will NOT reproduce the bug.
Created attachment 95434 [details] [review] Attempted configure change to fix the bug Can you apply this patch, rerun 'autogen.sh', and see if it fixes the problem for you?
now autogen.sh fails as below: Running autoconf ... configure.in:888: error: possibly undefined macro: AC_ARG_CHECKING If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. **Error**: autoconf failed.
s/AC_ARG_CHECKING/AC_MSG_CHECKING/
Created attachment 95457 [details] [review] Updated patch to configure Can you try this patch, please? This makes sure that we have gettext and also checks for a valid gmsgfmt.
Fixed in trunk as r16526. This change will be in 2.2.2 Thanks for all your help.
Marking the patch as committed, ignoring the typo that has NOT been committed :-D
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=476189. Please update any external references or bookmarks.