You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@subversion.apache.org by "Thomas Deutschmann (JIRA)" <ji...@apache.org> on 2019/04/09 18:49:00 UTC

[jira] [Created] (SVN-4813) Incompatible with apr-1.7.0: configure fails with "failed to recognize APR_INT64_T_FMT on this platform"

Thomas Deutschmann created SVN-4813:
---------------------------------------

             Summary: Incompatible with apr-1.7.0: configure fails with "failed to recognize APR_INT64_T_FMT on this platform"
                 Key: SVN-4813
                 URL: https://issues.apache.org/jira/browse/SVN-4813
             Project: Subversion
          Issue Type: Bug
          Components: compile
    Affects Versions: all
            Reporter: Thomas Deutschmann


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

 
{noformat}
[...]
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
{noformat}
I tried to debug the problem. The _conftest.c_ file is

 

 
{code:java}
[...]
/* end confdefs.h.  */
#include <apr.h>
                     MaTcHtHiS APR_INT64_T_FMT EnDeNd
{code}
and the test will validate the output of

 
{noformat}
gcc -E -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1 conftest.c{noformat}
against one of the following regular expressions

 
{noformat}
/bin/grep -E 'MaTcHtHiS +"lld" +EnDeNd'
/bin/grep -E 'MaTcHtHiS +"ld" +EnDeNd'
/bin/grep -E 'MaTcHtHiS +"d" +EnDeNd'{noformat}
However, the output of the command has changed between 1.6.5 - 1.7.0:

 

 
{code:java}
> @@ -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
{code}
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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)