After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 476189 - Configure script should fail when gettext is not installed
Configure script should fail when gettext is not installed
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Build system
2.2.x
Other Linux
: Normal normal
: ---
Assigned To: Derek Atkins
Derek Atkins
Depends on:
Blocks:
 
 
Reported: 2007-09-12 12:10 UTC by Larry Salibra
Modified: 2018-06-29 21:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Configuration log file (94.44 KB, text/plain)
2007-09-12 12:59 UTC, Larry Salibra
  Details
Attempted configure change to fix the bug (831 bytes, patch)
2007-09-12 13:14 UTC, Derek Atkins
none Details | Review
Updated patch to configure (793 bytes, patch)
2007-09-12 15:07 UTC, Derek Atkins
committed Details | Review

Description Larry Salibra 2007-09-12 12:10:09 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.
Comment 1 Derek Atkins 2007-09-12 12:30:24 UTC
Could you please attach your config.log to this bug report, please?  I need to see the values of a few variables.
Comment 2 Larry Salibra 2007-09-12 12:59:40 UTC
Created attachment 95433 [details]
Configuration log file
Comment 3 Larry Salibra 2007-09-12 13:04:43 UTC
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.  
Comment 4 Derek Atkins 2007-09-12 13:14:45 UTC
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?
Comment 5 Larry Salibra 2007-09-12 13:43:35 UTC
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.
Comment 6 Derek Atkins 2007-09-12 13:46:52 UTC
s/AC_ARG_CHECKING/AC_MSG_CHECKING/
Comment 7 Derek Atkins 2007-09-12 15:07:19 UTC
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.
Comment 8 Derek Atkins 2007-09-12 15:56:18 UTC
Fixed in trunk as r16526.
This change will be in 2.2.2
Thanks for all your help.
Comment 9 Andreas Köhler 2007-11-11 00:16:05 UTC
Marking the patch as committed, ignoring the typo that has NOT been committed :-D
Comment 10 John Ralls 2018-06-29 21:49:17 UTC
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.