Compiling error with pinentry

Frank Guthausen fg.gnupg at shimps.de
Fri May 9 19:00:50 CEST 2025


Hello Daniel.

I don't know much about Parabola but can provide some
hints from the Debian world, which lead to an educated
guess.

On Thu, 08 May 2025 21:06:05 +0100
Daniel Cerqueira <dan.git at lispclub.com> wrote:
> 
> My AC_LIB_PREPARE_PREFIX is at /usr/share/gettext/m4/lib-prefix.m4 ,
> which comes with the gettext package.  Which was already installed.

$  apt-file find lib-prefix.m4
gettext: /usr/share/aclocal/lib-prefix.m4

> I still get the same error, when compiling pinentry from the official
> tarball:
> [...]
> $ ./autogen.sh 
> autogen.sh: Running aclocal -I m4 ...
> autogen.sh: Running autoheader...
> autogen.sh: Running automake --gnu ...
> autogen.sh: Running autoconf ...
> configure.ac:341: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but
> not m4_defun'd 

Without gettext installed, I can reproduce this warning.

> configure:9869: error: possibly undefined macro: AC_LIB_PREPARE_PREFIX
>       If this token and others are legitimate, please use
> m4_pattern_allow. See the Autoconf documentation.
> configure:9870: error: possibly undefined macro: AC_LIB_RPATH
> configure:9875: error: possibly undefined macro: AC_LIB_LINKFLAGS_BODY
> configure:9883: error: possibly undefined macro: AC_LIB_APPENDTOVAR

I cannot reproduce these errors.

> $ ./configure --enable-maintainer-mode
> [...]
> ./configure: line 9875: syntax error near unexpected token `iconv'
> ./configure: line 9875: `      AC_LIB_LINKFLAGS_BODY(iconv)'

Without gettext installed, I can reproduce this error (with a different
line number).

When I install gettext and run autogen.sh again, the warning doesn't
show up again and the obtained configure script doesn't throw any
errors anymore.

> Can someone tell me if is just my system that gets this error?

My guess is: despite having gettext installed, the autogen.sh
script doesn't know the location where the required data is
installed on your system. This leads to effects similar as if
gettext wasn't installed at all.

The next step would be to figure out the reason
why the gettext data seems to be unknown, which
might require some better knowledge of Parabola
than I can provide.
-- 
kind regards
Frank
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 659 bytes
Desc: OpenPGP digital signature
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20250509/77624c03/attachment.sig>


More information about the Gnupg-users mailing list