Description
Building current released subversion (1.9.x, 1.10.x, 1.11.x) or 1.12.0 RC1 against apr-1.7.0 will fail configure with
[...] configure: Configuring python swig binding checking for Python includes... (cached) -I$(PYTHON_INCLUDEDIR) checking for compiling Python extensions... x86_64-pc-linux-gnu-gcc -pthread -fPIC checking for linking Python extensions... x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -L. checking for linking Python libraries... -Wl,-O1 -Wl,--as-needed -L. checking for apr_int64_t Python/C API format string... configure: error: failed to recognize APR_INT64_T_FMT on this platform
I tried to debug the problem. The conftest.c file is
[...]
/* end confdefs.h. */
#include <apr.h>
MaTcHtHiS APR_INT64_T_FMT EnDeNd
and the test will validate the output of
gcc -E -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1 conftest.c
against one of the following regular expressions
/bin/grep -E 'MaTcHtHiS +"lld" +EnDeNd' /bin/grep -E 'MaTcHtHiS +"ld" +EnDeNd' /bin/grep -E 'MaTcHtHiS +"d" +EnDeNd'
However, the output of the command has changed between 1.6.5 - 1.7.0:
> @@ -2201,4 +2249,8 @@ > > typedef apr_uint64_t apr_uintptr_t; > # 48 "conftest.c" 2 > - MaTcHtHiS "ld" EnDeNd > + MaTcHtHiS > +# 48 "conftest.c" 3 4 > + "l" "d" > +# 48 "conftest.c" > + EnDeNd
So there's no match anymore.
Check is coming from build/ac-macros/swig.m4.
Additional note:
You will hit this error even if you try to configure with --without-swig.
This is Gentoo-Bug https://bugs.gentoo.org/682786.