error building with gettext 0.24.1
After updating gettext to 0.24.1 our daily build of git head is now generating this error:
autoreconf -fiv ....
configure.ac:266: warning: macro 'AM_ICONV' not found in library autoreconf: running: /usr/bin/autoconf --force configure.ac:266: error: possibly undefined macro: AM_ICONV If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: error: /usr/bin/autoconf failed with exit status: 1
Indeed running 'aclocal' generates the same error:
gettext does include the file : /usr/share/gettext/m4/iconv.m4
Any help appreciated.
I scanned the gettex mail lists but didn't spot anything that seemed relevant.
Thanks for any guidance.
-- Gene
On Wed, 2025-05-07 at 10:30 -0400, Genes Lists via dovecot wrote:
After updating gettext to 0.24.1 our daily build of git head is now generating this error:
---------------------------------------- autoreconf -fiv ....
configure.ac:266: warning: macro 'AM_ICONV' not found in library autoreconf: running: /usr/bin/autoconf --force configure.ac:266: error: possibly undefined macro: AM_ICONV If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: error: /usr/bin/autoconf failed with exit status: 1
Indeed running 'aclocal' generates the same error: ----------------------------------------
gettext does include the file : /usr/share/gettext/m4/iconv.m4
Any help appreciated.
I scanned the gettex mail lists but didn't spot anything that seemed relevant.
Thanks for any guidance.
The fix is to update configure.ac with this which is now required in gettext 0.24 and later: diff --git a/configure.ac b/configure.ac index 8c711964de..dff3d3b19e 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,8 @@ AC_CONFIG_SRCDIR([src]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR([build-aux]) +AM_GNU_GETTEXT([external]) +AM_GNU_GETTEXT_VERSION(0.24.1) AM_INIT_AUTOMAKE([foreign tar-ustar]) AM_SILENT_RULES([yes]) -- Gene On Wed, 2025-05-07 at 10:30 -0400, Genes Lists via dovecot wrote: After updating gettext to 0.24.1 our daily build of git head is now generating this error: ---------------------------------------- autoreconf -fiv .... configure.ac:266: warning: macro 'AM_ICONV' not found in library autoreconf: running: /usr/bin/autoconf --force configure.ac:266: error: possibly undefined macro: AM_ICONV If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: error: /usr/bin/autoconf failed with exit status: 1 Indeed running 'aclocal' generates the same error: ---------------------------------------- gettext does include the file : /usr/share/gettext/m4/iconv.m4 Any help appreciated. I scanned the gettex mail lists but didn't spot anything that seemed relevant. Thanks for any guidance. The fix is to update configure.ac with this which is now required in gettext 0.24 and later: diff --git a/configure.ac b/configure.ac index 8c711964de..dff3d3b19e 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,8 @@ AC_CONFIG_SRCDIR([src]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR([build-aux]) +AM_GNU_GETTEXT([external]) +AM_GNU_GETTEXT_VERSION(0.24.1) AM_INIT_AUTOMAKE([foreign tar-ustar]) AM_SILENT_RULES([yes]) -- Gene
On 07/05/2025 20:16 EEST Genes Lists via dovecot <dovecot@dovecot.org> wrote: On Wed, 2025-05-07 at 10:30 -0400, Genes Lists via dovecot wrote: After updating gettext to 0.24.1 our daily build of git head is now generating this error: ---------------------------------------- autoreconf -fiv .... configure.ac:266: warning: macro 'AM_ICONV' not found in library autoreconf: running: /usr/bin/autoconf --force configure.ac:266: error: possibly undefined macro: AM_ICONV If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: error: /usr/bin/autoconf failed with exit status: 1 Indeed running 'aclocal' generates the same error: ---------------------------------------- gettext does include the file : /usr/share/gettext/m4/iconv.m4 Any help appreciated. I scanned the gettex mail lists but didn't spot anything that seemed relevant. Thanks for any guidance. The fix is to update configure.ac with this which is now required in gettext 0.24 and later: diff --git a/configure.ac b/configure.ac index 8c711964de..dff3d3b19e 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,8 @@ AC_CONFIG_SRCDIR([src]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR([build-aux]) +AM_GNU_GETTEXT([external]) +AM_GNU_GETTEXT_VERSION(0.24.1) AM_INIT_AUTOMAKE([foreign tar-ustar]) AM_SILENT_RULES([yes]) -- Gene On Wed, 2025-05-07 at 10:30 -0400, Genes Lists via dovecot wrote: After updating gettext to 0.24.1 our daily build of git head is now generating this error: ---------------------------------------- autoreconf -fiv .... configure.ac:266: warning: macro 'AM_ICONV' not found in library autoreconf: running: /usr/bin/autoconf --force configure.ac:266: error: possibly undefined macro: AM_ICONV If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: error: /usr/bin/autoconf failed with exit status: 1 Indeed running 'aclocal' generates the same error: ---------------------------------------- gettext does include the file : /usr/share/gettext/m4/iconv.m4 Any help appreciated. I scanned the gettex mail lists but didn't spot anything that seemed relevant. Thanks for any guidance. The fix is to update configure.ac with this which is now required in gettext 0.24 and later: diff --git a/configure.ac b/configure.ac index 8c711964de..dff3d3b19e 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,8 @@ AC_CONFIG_SRCDIR([src]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR([build-aux]) +AM_GNU_GETTEXT([external]) +AM_GNU_GETTEXT_VERSION(0.24.1) AM_INIT_AUTOMAKE([foreign tar-ustar]) AM_SILENT_RULES([yes]) -- Gene _______________________________________________ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org Thank you for looking into this. Aki
On Wed, 2025-05-07 at 10:30 -0400, Genes Lists via dovecot wrote:
After updating gettext to 0.24.1 our daily build of git head is now generating this error:
autoreconf -fiv ....
....
As pointed out here [1] - the m4 macros moved - so the right "fix" is simply to use:
autoreconf -fvi -I /usr/share/gettext/m4
[1] https://gitlab.archlinux.org/archlinux/packaging/packages/dovecot/-/issues/4...
-- Gene
On Wed, 2025-05-07 at 10:30 -0400, Genes Lists via dovecot wrote:
After updating gettext to 0.24.1 our daily build of git head is now
generating this error:
----------------------------------------
autoreconf -fiv
....
....
As pointed out here [1] - the m4 macros moved - so the right "fix" is simply to use:
autoreconf -fvi -I /usr/share/gettext/m4
[1] https://gitlab.archlinux.org/archlinux/packaging/packages/dovecot/-/issues/ 4#note_268520
-- Gene
On Wed, 2025-05-07 at 14:23 -0400, Genes Lists via dovecot wrote:
On Wed, 2025-05-07 at 10:30 -0400, Genes Lists via dovecot wrote:
After updating gettext to 0.24.1 our daily build of git head is now generating this error:
...
[1] https://gitlab.archlinux.org/archlinux/packaging/packages/dovecot/-/issues/4...
As per [1] this is now resolved in gettext 0.25.
-- Gene
On Wed, 2025-05-07 at 14:23 -0400, Genes Lists via dovecot wrote: On Wed, 2025-05-07 at 10:30 -0400, Genes Lists via dovecot wrote:
After updating gettext to 0.24.1 our daily build of git
head is now
generating this error:
... [1] https://gitlab.archlinux.org/archlinux/packaging/packages/ dovecot/-/issues/4#note_268520
As per [1] this is now resolved in gettext 0.25.
-- Gene
On 07/05/2025 22:27 EEST Genes Lists via dovecot <dovecot@dovecot.org> wrote:
On Wed, 2025-05-07 at 14:23 -0400, Genes Lists via dovecot wrote:
On Wed, 2025-05-07 at 10:30 -0400, Genes Lists via dovecot wrote:
After updating gettext to 0.24.1 our daily build of git head is now generating this error:
...
[1] https://gitlab.archlinux.org/archlinux/packaging/packages/dovecot/-/issues/4...
As per [1] this is now resolved in gettext 0.25.
-- Gene On Wed, 2025-05-07 at 14:23 -0400, Genes Lists via dovecot wrote: On Wed, 2025-05-07 at 10:30 -0400, Genes Lists via dovecot wrote:
After updating gettext to 0.24.1 our daily build of git head is now generating this error:
... [1] https://gitlab.archlinux.org/archlinux/packaging/packages/ dovecot/-/issues/4#note_268520
As per [1] this is now resolved in gettext 0.25.
-- Gene
We opted to go via more straightforward route of dropping gettext requirement, since we don't really use it for anything. The AM_ICONV macro was for ancient iconv() support (pre-2001).
Aki
On Mon, 2025-05-12 at 13:37 +0300, Aki Tuomi via dovecot wrote:
We opted to go via more straightforward route of dropping gettext requirement, since we don't really use it for anything. The AM_ICONV macro was for ancient iconv() support (pre-2001).
Aki
Terrific thank you.
I confirm things work out of the box now with git 8dd2ec82f63ba1bf9ddf1b74243e00185ebba9b1
-- Gene
participants (2)
-
Aki Tuomi
-
Genes Lists