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

Python-SWIG Bindings (APR_PATH_MAX)

From: David Heppenstall <David.Heppenstall_at_rci.rogers.com>
Date: 2006-03-16 21:32:32 CET

Hi,

I'm running SPARC Solaris 9, Subversion 1.2.3, Python 2.4 and SWIG
1.3.28 - I'm having some issues compiling Subversion's Python-SWIG
bindings...

I have read that once I have Python and SWIG up and running, the proper
steps I should take are:

1. configure --with-swig:/path/to/swig
2. make
3. make install
4. make swig-py
5. make install-swig-py

I'm stuck on step 4. When I attempt to make swig-py, I get the following
error:
  subversion-1.2.3/apr/include/apr.h:393: Error: CPP #error "no decision
has been made on
  APR_PATH_MAX for your platform". Use the -cpperraswarn option to
continue swig
  processing.
  make: *** [subversion/bindings/swig/python/svn_client.c] Error 1

First question I suppose is, how exactly do I use this -cpperraswarn
option? Is this even a solution for this problem?

I have determined that configure is detecting limits.h:
  checking limits.h usability... yes
  checking limits.h presence... yes

And that limits.h is defining the PATH_MAX variables:
  #ifndef PATH_MAX
  #define PATH_MAX 1024 /* max # of characters in a path name
*/
  #define _POSIX_PATH_MAX 255

I have tried a hack I've come across to modify the apr.h file to
override this error, but resulted in more numerous and less readable
errors. So I suppose hacking the apr.h file isn't for me...

My goal is to simply create the library functions I need in
/usr/local/lib/python2.4/site-packages/

Thanks in advance for any assistance.

Yours,
 - Dave Heppenstall

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 16 21:33:56 2006

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