[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 (JIRA)" <[email protected]>
Newsgroups gmane.comp.version-control.subversion.issues
Message-ID <[email protected]>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.