You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ximon Eighteen <xi...@int.greenpeace.org> on 2005/11/26 19:55:26 UTC

No decision has been made on APR_PATH_MAX for your platform

Hi all,

I'm seeing the error mentioned in the subject when running make swig-py.
I'm building on a RHEL 4 system. Searching Google and the haxx mailing
list archives turned up a few things including this:

  http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=19781

My system has /usr/include/limits.h, but it does not define PATH_MAX or
_POSIX_PATH_MAX. Configure *is* finding limits.h:-

  checking limits.h usability... yes
  checking limits.h presence... yes
  checking for limits.h... yes

My system has /usr/include/linux/limits.h which *does* define PATH_MAX,
but apparently like this user:

  http://svn.haxx.se/users/archive-2005-10/1028.shtml

it is not being included. -D_GNU_SOURCE *is* getting defined.

My system has syslimits.h, but in a strange location that is not found
by configure:

  # updatedb
  # locate syslimits.h:
  /usr/lib/gcc/i386-redhat-linux/3.4.3/include/syslimits.h

  checking sys/syslimits.h usability... no
  checking sys/syslimits.h presence... no
  checking for sys/syslimits.h... no

Changing the #error line in apr.h to #define APR_MAX_PATH 1024 instead
allows the make to complete.

Is this an acceptable "hack" ?

More information about my setup:

File versions being used:
  httpd-2.0.55
  subversion-1.2.3
  Python-2.4.2
  swig-1.3.27

I've tried building both using the APR with Subversion, and with the APR
with Apache. The commands detailed below are for the time I tried using
the Apache APR.

Commands issued in order (all issued as a non-root user):
  cd /data/dev/deleteme/build/Python-2.4.2
  ./configure --prefix=/data/dev/deleteme/run/Python-2.4.2
  make
  make install

  cd /data/dev/deleteme/build/swig-1.3.27
  ./configure --prefix=/data/dev/deleteme/run/swig-1.3.27
--with-python=/data/dev/deleteme/run/Python-2.4.2/bin/python
  make
  make install

  cd /data/dev/deleteme/run
  ln -s swig-1.3.27 swig

  cd /data/dev/deleteme/build/httpd-2.0.55
  ./configure --prefix=/data/dev/deleteme/run/httpd-2.0.55
--with-port=9011 --enable-dav --enable-so --enable-ssl --enable-deflate
  make
  make install

  cd /data/dev/deleteme/build/subversion-1.2.3
  ./configure --prefix=/data/dev/deleteme/run/subversion-1.2.3
--with-apxs=/data/dev/deleteme/run/httpd-2.0.55/bin/apxs --with-ssl
--with-swig=/data/dev/deleteme/run/swig
--with-apr=/data/dev/deleteme/run/httpd-2.0.55
--with-apr-util=/data/dev/deleteme/run/httpd-2.0.55
PYTHON=/data/dev/deleteme/run/Python-2.4.2/bin/python
  make
  make install

  cd /data/dev/deleteme/run
  ln -s subversion-1.2.3 subversion

  cd /data/dev/deleteme/build/subversion-1.2.3
  make swig-py

Then I see this:-

/data/dev/deleteme/run/swig/bin/swig  -python
-I/data/dev/deleteme/build/subversion-1.2.3/subversion/bindings/swig
-I/data/d
ev/deleteme/build/subversion-1.2.3/subversion/include
-I/data/dev/deleteme/run/swig-1.3.27/share/swig/1.3.27 -DSVN_SWIG_VERS
ION=103027 -DSWIG_TABLE_TYPE=subversion
-I/data/dev/deleteme/run/httpd-2.0.55/include
-I/data/dev/deleteme/run/httpd-2.0.55
/include
-I/data/dev/deleteme/build/subversion-1.2.3/subversion/bindings/swig
-I/data/dev/deleteme/build/subversion-1.2.3/s
ubversion/include -I/data/dev/deleteme/run/swig-1.3.27/share/swig/1.3.27
-DSVN_SWIG_VERSION=103027 -DSWIG_TABLE_TYPE=subvers
ion -I/data/dev/deleteme/run/httpd-2.0.55/include
-I/data/dev/deleteme/run/httpd-2.0.55/include  -I/data/dev/deleteme/run/P
ython-2.4.2/include/python2.4
-I/data/dev/deleteme/build/subversion-1.2.3/subversion/bindings/swig/python/libsvn_swig_py
-o
subversion/bindings/swig/python/svn_client.c
/data/dev/deleteme/build/subversion-1.2.3/subversion/bindings/swig/svn_client.i
/data/dev/deleteme/run/httpd-2.0.55/include/apr.h:400: Error: no
decision has been made on APR_PATH_MAX for your platform
make: *** [subversion/bindings/swig/python/svn_client.c] Error 1

Thanks,

Ximon


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: No decision has been made on APR_PATH_MAX for your platform

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 11/26/05, Ximon Eighteen <xi...@int.greenpeace.org> wrote:
> Hi all,
>
> I'm seeing the error mentioned in the subject when running make swig-py.
> I'm building on a RHEL 4 system. Searching Google and the haxx mailing
> list archives turned up a few things including this:
>
>   http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=19781
>
> My system has /usr/include/limits.h, but it does not define PATH_MAX or
> _POSIX_PATH_MAX. Configure *is* finding limits.h:-
>
>   checking limits.h usability... yes
>   checking limits.h presence... yes
>   checking for limits.h... yes
>
> My system has /usr/include/linux/limits.h which *does* define PATH_MAX,
> but apparently like this user:
>
>   http://svn.haxx.se/users/archive-2005-10/1028.shtml
>
> it is not being included. -D_GNU_SOURCE *is* getting defined.
>

The problem is that the correct cflags are not being used when calling
swig, it needs APR's cflags so that all the ifdefs work out.  You
should be able to run 'apr-config --cflags' or 'apr-config --cppflags'
to see the correct flags, and then modify the makefile to pass them to
swig.

This has been fixed in a more "correct" way in more current versions
of svn, but they have not yet been released, for the time being you
should be able to work around it via the method I just suggested
though.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org