fetchmail-friends
[Top] [All Lists]

Re: [fetchmail] Cygwin fetchmail 6.0.0 build problem due to gettext issue

2002-10-18 07:36:49
Eric,

On Fri, Oct 18, 2002 at 08:25:17AM -0400, Eric S. Raymond wrote:
Jason Tishler <jason(_at_)tishler(_dot_)net>:
Thanks for the above.  What version of gettext is fetchmail built
against?  This information will help me generate a clean patch.

Name        : gettext                      Relocations: (not relocateable)
Version     : 0.11.4                            Vendor: Red Hat, Inc.
Release     : 3                             Build Date: Wed 28 Aug 2002 
11:27:57 AM EDT
Install date: Sun 13 Oct 2002 11:28:44 AM EDT      Build Host: astest
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                *******************************

Did you recently install a new gettext package?  If so, then all that is
required is to regenerate fetchmail's aclocal.m4 against this newer
version.

AFAICT, fetchmail 6.1.0's aclocal.m4 was generated against in older
gettext.  Please try regenerating fetchmail's aclocal.m4.

A "good" aclocal.m4 will yield in the following:

$ egrep 'for GNU gettext in|_nl_domain_bindings' aclocal.m4 
        AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
extern int *_nl_domain_bindings;],
return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", 
"", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
          AC_CACHE_CHECK([for GNU gettext in libintl],

and a "bad" one:

$ egrep 'for GNU gettext in|_nl_domain_bindings' aclocal.m4
        AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
extern int *_nl_domain_bindings;],
return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", 
"", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
          AC_CACHE_CHECK([for GNU gettext in libintl],
extern int *_nl_domain_bindings;
return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", 
"", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias 
(0)],
extern int *_nl_domain_bindings;
return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", 
"", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias 
(0)],

Note that the "GNU gettext in libintl" check will no longer contains any
references to "_nl_domain_bindings".

Thanks,
Jason