Ingo Klöcker <kloec...@kde.org> writes: > On Donnerstag, 8. Mai 2025 10:30:00 Mitteleuropäische Sommerzeit Daniel > Cerqueira wrote: >> Jacob Bachmeyer <jcb62...@gmail.com> writes: >> > On 5/7/25 09:54, Daniel Cerqueira wrote: >> >> I am having trouble compiling pinentry. I always compile all the GnuPG >> >> suite, so I don't install any GnuPG program by my package manager (which >> >> is pacman). > [...] >> >> Here is the compile error that I get: >> >> >> >> ``` >> >> $ ./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 m4/iconv.m4:10: AM_ICONV_LINKFLAGS_BODY is expanded from... >> >> m4/iconv.m4:21: AM_ICONV_LINK is expanded from... >> >> m4/iconv.m4:246: AM_ICONV is expanded from... >> >> configure.ac:341: the top level >> > >> > Check your Autoconf installation. A quick Web search suggests that >> > you may need to install the "gettext" package. >> >> I already had gettext installed. I have also have now updated gettext, >> to the latest version (0.25), and I still get the same error message as >> above. > > On my system, AC_LIB_PREPARE_PREFIX is defined in > /usr/share/aclocal/lib-prefix.m4 which is part of the gettext-tools package. > > By the way, you wouldn't run into this problem if you build pinentry (and the > rest of GnuPG) from the official release tarballs. > > Regards, > Ingo
Hi Ingo. My AC_LIB_PREPARE_PREFIX is at /usr/share/gettext/m4/lib-prefix.m4 , which comes with the gettext package. Which was already installed. I still get the same error, when compiling pinentry from the official tarball: ``` $ wget https://www.gnupg.org/ftp/gcrypt/pinentry/pinentry-1.3.1.tar.bz2 (...) $ tar xf pinentry-1.3.1.tar.bz2 $ cd pinentry-1.3.1/ $ ./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 m4/iconv.m4:10: AM_ICONV_LINKFLAGS_BODY is expanded from... m4/iconv.m4:21: AM_ICONV_LINK is expanded from... m4/iconv.m4:246: AM_ICONV is expanded from... configure.ac:341: the top level configure.ac:341: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd m4/iconv.m4:10: AM_ICONV_LINKFLAGS_BODY is expanded from... m4/iconv.m4:21: AM_ICONV_LINK is expanded from... m4/iconv.m4:246: AM_ICONV is expanded from... configure.ac:341: the top level 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 autogen.sh: You may now run: ./configure --enable-maintainer-mode && make $ ./configure --enable-maintainer-mode checking for a BSD-compatible install... /usr/bin/install -c checking whether sleep supports fractional seconds... yes checking filesystem timestamp resolution... 0.01 checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking xargs -n works... yes checking whether make supports the include directive... yes (GNU style) checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for wchar.h... yes checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking whether to enable maintainer-specific portions of Makefiles... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking whether make sets $(MAKE)... (cached) yes checking whether build environment is sane... yes checking for gcc... (cached) gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking how to run the C preprocessor... gcc -E checking for ranlib... ranlib checking for g++... g++ checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking dependency style of g++... gcc3 checking whether ln -s works... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for windres... no checking for gitlog-to-changelog... no checking if gcc ignores unknown -Wno-* options... yes checking if gcc supports -Wdeclaration-after-statement... yes checking if gcc supports -Wpointer-arith... yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for langinfo.h... yes checking for termio.h... yes checking for locale.h... yes checking for utime.h... yes checking for wchar.h... (cached) yes checking for seteuid... yes checking for stpcpy... yes checking for mmap... yes checking for stat... yes checking for mlock... yes checking for sysconf... yes checking for getpagesize... yes checking whether mlock is broken... no checking for uint32_t... yes checking for gpg-error-config... no checking for gpgrt-config... /usr/local/bin/gpgrt-config configure: Use gpgrt-config with /usr/local/lib as gpg-error-config checking for GPG Error - version >= 1.16... yes (1.51) configure: Use gpgrt-config as libassuan-config checking for LIBASSUAN - version >= 2.1.0... yes (3.0.0) checking LIBASSUAN API version... okay checking for byte... no checking for ulong... yes checking for u64... no checking for ncursesw... yes checking for ncurses include dir... none ./configure: line 9875: syntax error near unexpected token `iconv' ./configure: line 9875: ` AC_LIB_LINKFLAGS_BODY(iconv)' ``` Ingo, can you try to see if you also get this error, and tell me your result? Can someone tell me if is just my system that gets this error? CONFIDENTIALITY WARNING The information transmitted in this message is for the exclusive use of the person or entity to which it is addressed and might contain privileged and or confidential information. If you are not the intended recipient of this message, you are prohibited from printing, duplicating, disseminating or otherwise using or acting in reliance upon this information. If you have received this message in error, please notify the sender immediately, delete this information from your computer and destroy all copies. GDPR SECURITY I use end-to-end encryption on my communications by emails. You should too! Ask me "How can I also end-to-end cipher my communications by email?", and I'll share how. -- The pioneers of a warless world are the youth that refuse military service. ~ Albert Einstein
signature.asc
Description: PGP signature
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org https://lists.gnupg.org/mailman/listinfo/gnupg-users