You are not logged in.

#1 2025-05-07 16:25:54

GeneArch
Member
Registered: 2013-07-28
Posts: 100

[SOLVED] gettext 0.24.1 build question

I wasn't entirely sure where to ask this, hopefully this is reasonable place.

I have daily builds running on git HEAD for several packages.  One of them started  failing 'aclocal' and seems related to  updated gettext.

The package is dovecot
git source has not changed since april 15.

Error comes from:

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

I note that AM_ICONV seems to be defined at line 268 in

   /usr/share/gettext/m4/iconv.m4

Any help resolving this appreciated.

thanks!

Last edited by GeneArch (2025-05-07 17:20:28)

Offline

#2 2025-05-07 17:19:14

GeneArch
Member
Registered: 2013-07-28
Posts: 100

Re: [SOLVED] gettext 0.24.1 build question

The "fix" is to update the configure.ac (this is now required in gettext 0.24 and later it seems) -

Is there an "elegant" way to get the version - putting version numbers feels icky - but it does fix the problem and dovecot now builds fine.


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])

Offline

#3 2025-05-07 18:25:58

GeneArch
Member
Registered: 2013-07-28
Posts: 100

Re: [SOLVED] gettext 0.24.1 build question

And as pointed out here - the m4 files moved and the "right" fix = at least until autoreconf gets smarter is :

    autoreconf -fvi -I /usr/share/gettext/m4

Offline

Board footer

Powered by FluxBB