OK, got it working. hmm. this is the hack of all hacks, but I gave
up figuring out what *actually* is going wrong and added this
temporarily to apr.h (around line 400) :
/* kumar's dangerous hack */
#if !defined(PATH_MAX)
#define PATH_MAX 4096
#endif
I got 4096 from my system's limts.h ...
$ less /usr/include/linux/limits.h
#ifndef _LINUX_LIMITS_H
#define _LINUX_LIMITS_H
#define NR_OPEN 1024
#define NGROUPS_MAX 32 /* supplemental group IDs are available */
#define ARG_MAX 131072 /* # bytes of args + environ for exec() */
#define CHILD_MAX 999 /* no limit :-) */
#define OPEN_MAX 256 /* # open files a process may have */
#define LINK_MAX 127 /* # links a file may have */
#define MAX_CANON 255 /* size of the canonical input queue */
#define MAX_INPUT 255 /* size of the type-ahead buffer */
#define NAME_MAX 255 /* # chars in a file name */
#define PATH_MAX 4096 /* # chars in a path name */
#define PIPE_BUF 4096 /* # bytes in atomic write to a pipe */
#define RTSIG_MAX 32
#endif
should I report this as a bug?? I hesitate since this must be
White-Box-linux-specific; seems too obvious to have crept into a
release otherwise.
Well, thought I would post it since there were a few of us seeing the
error. I also had to fiddle with some other stuff,
http://svn.haxx.se/users/archive-2005-10/0828.shtml , but after that
import svn worked and svnlook.py ran ok.
K
On 10/21/05, Kumar McMillan <kumar.mcmillan@gmail.com> wrote:
> I too am getting this error running
>
> $ make swig-py
> /usr/local/bin/swig -python
> -I/home/kumar/build/subversion-1.2.3/subversion/bindings/swig
> -I/home/kumar/build/subversion-1.2.3/subversion/include
> -I/usr/local/share/swig/1.3.27 -DSVN_SWIG_VERSION=103027
> -DSWIG_TABLE_TYPE=subversion -I/home/kumar/build/apr-0.9.7/include
> -I/home/kumar/build/apr-util-0.9.7/include
> -I/usr/local/BerkeleyDB.4.3/include
> -I/home/kumar/build/subversion-1.2.3/subversion/bindings/swig
> -I/home/kumar/build/subversion-1.2.3/subversion/include
> -I/usr/local/share/swig/1.3.27 -DSVN_SWIG_VERSION=103027
> -DSWIG_TABLE_TYPE=subversion -I/home/kumar/build/apr-0.9.7/include
> -I/home/kumar/build/apr-util-0.9.7/include
> -I/usr/local/BerkeleyDB.4.3/include -I/usr/include/python2.2
> -I/home/kumar/build/subversion-1.2.3/subversion/bindings/swig/python/libsvn_swig_py
> -o subversion/bindings/swig/python/svn_client.c
> /home/kumar/build/subversion-1.2.3/subversion/bindings/swig/svn_client.i
> /home/kumar/build/apr-0.9.7/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
>
> ... and could not find any answers in the list archives.
> I have seen this happen before (other tools) so I know APR_PATH_MAX is
> defined in limits.h ... and there are many, most notably:
>
> /usr/include/linux/limits.h
> /usr/include/limits.h
> /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include/limits.h
> /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include/syslimits.h
> /usr/lib/gcc-lib/i386-redhat-linux7/2.96/include/limits.h
> /usr/lib/gcc-lib/i386-redhat-linux7/2.96/include/syslimits.h
>
> But how do I tell swig where this is??
>
> Subversion compiled just fine (1.2.3 source). I am on White Box Linux.
> $ uname -a
> Linux XXXX.com 2.4.27rimu1-3um #1 Thu Sep 9 02:48:08 UTC 2004 i686
> i686 i386 GNU/Linux
>
> Here is my configure ...
>
> ./configure --with-ssl --with-apr=../apr-0.9.7
> --with-apr-util=../apr-util-0.9.7
> --with-berkeley-db=/usr/local/BerkeleyDB.4.3 --with-neon=/usr/local
> --prefix=/usr/local
>
> [some version numbers that were not in the configure]:
> $ swig -version
> SWIG Version 1.3.27
> $ python -V
> Python 2.4.2
>
> everything else built fine and subversion tests are passing.
> /usr/local/bin/swig was accessible in $PATH and I saw that get picked
> up during configure.
>
>
> Any ideas? I would rather not hack up the code to #include limits.h :D
>
>
> thanks, Kumar
>
>
>
> > From: PJ Hyett <pjhyett_at_gmail.com>
> > Date: 2005-10-21 21:58:46 CEST
> >
> > Hi guys,
> > I'm getting this error while running make swig-rb. The rest of the
> > configure/make/make install process went smoothly. Full output:
> >
> > pj:~/Desktop/subversion-1.2.3-2 pj$ make swig-rb
> > /usr/local/bin/swig -ruby
> > -I/Users/pj/Desktop/subversion-1.2.3-2/subversion/bindings/swig
> > -I/Users/pj/Desktop/subversion-1.2.3-2/subversion/include
> > -I/usr/local/share/swig/1.3.27 -DSVN_SWIG_VERSION=103027
> > -DSWIG_TABLE_TYPE=subversion
> > -I/Users/pj/Desktop/subversion-1.2.3-2/apr/include
> > -I/Users/pj/Desktop/subversion-1.2.3-2/apr-util/include
> > -I/Users/pj/Desktop/subversion-1.2.3-2/apr-util/xml/expat/lib
> > -I/Users/pj/Desktop/subversion-1.2.3-2/subversion/bindings/swig
> > -I/Users/pj/Desktop/subversion-1.2.3-2/subversion/include
> > -I/usr/local/share/swig/1.3.27 -DSVN_SWIG_VERSION=103027
> > -DSWIG_TABLE_TYPE=subversion
> > -I/Users/pj/Desktop/subversion-1.2.3-2/apr/include
> > -I/Users/pj/Desktop/subversion-1.2.3-2/apr-util/include
> > -I/Users/pj/Desktop/subversion-1.2.3-2/apr-util/xml/expat/lib -I.
> > -I/usr/local/lib/ruby/1.8/powerpc-darwin8.2.0
> > -I/Users/pj/Desktop/subversion-1.2.3-2/subversion/bindings/swig/ruby/libsvn_swig_ruby
> > -o subversion/bindings/swig/ruby/svn_client.c
> > /Users/pj/Desktop/subversion-1.2.3-2/subversion/bindings/swig/svn_client.i
> > /Users/pj/Desktop/subversion-1.2.3-2/apr/include/apr.h:393: Error: no
> > decision has been made on APR_PATH_MAX for your platform
> > make: *** [subversion/bindings/swig/ruby/svn_client.c] Error 1
> >
> > -PJ
> > http://pjhyett.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 25 19:22:55 2005