[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

No decision has been made on APR_PATH_MAX for your platform

From: Ximon Eighteen <ximon.eighteen_at_int.greenpeace.org>
Date: 2005-11-26 20:55:26 CET

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
Received on Sat Nov 26 20:59:13 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.