Builds fine in a clean chroot, you are probably missing some dependency .
what does pacman -Qs base-devel output ?
Thank you. Indeed, I still had autoconf-git 2.69 from 2018.
]]>what does pacman -Qs base-devel output ?
]]>Now type 'make' to build cyrus-sasl
make all-recursive
make[1]: Entering directory '/.snapshots/persist/builds/packages/libsasl/repos/core-x86_64/src/cyrus-sasl-2.1.27'
Making all in include
make[2]: Entering directory '/.snapshots/persist/builds/packages/libsasl/repos/core-x86_64/src/cyrus-sasl-2.1.27/include'
DOBSOLETE_CRAM_ATTR=1 -DOBSOLETE_DIGEST_ATTR=1 -I/usr/include/mysql -I/usr/include -I/usr/lib makemd5.c -o makemd5
/bin/sh: line 1: -DOBSOLETE_DIGEST_ATTR=1: command not found
make[2]: [<builtin>: makemd5] Error 127 (ignored)
rm -f md5global.h
./makemd5 md5global.h
make[2]: ./makemd5: No such file or directory
make[2]: *** [Makefile:813: md5global.h] Error 127
make[2]: Leaving directory '/.snapshots/persist/builds/packages/libsasl/repos/core-x86_64/src/cyrus-sasl-2.1.27/include'
make[1]: *** [Makefile:687: all-recursive] Error 1
make[1]: Leaving directory '/.snapshots/persist/builds/packages/libsasl/repos/core-x86_64/src/cyrus-sasl-2.1.27'
make: *** [Makefile:555: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
It's because CC_FOR_BUILD is not set by AX_PROG_CC_FOR_BUILD in configure.ac. But how did they build it then?
These macros:
>&2 echo before_proc_cc
AC_PROG_CC
>&2 echo before_prog_cc_for_build
AX_PROG_CC_FOR_BUILD
>&2 echo after
exit 1
print the following:
before_proc_cc
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 whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
before_prog_cc_for_build
checking how to run the C preprocessor... gcc -E
checking how to run the C preprocessor... -E
after