Stop in subversion-perl

Don Hinton don.hinton at vanderbilt.edu
Sat Nov 5 21:34:32 GMT 2005


Hi Gerard:

On Saturday 05 November 2005 13:57, Gerard Seibert wrote:
> I am sure that someone else has all ready asked this question, but I have
> not come across it.
>
> When trying to build 'subversion-perl', I receive this error message:
>
> //Start error message Snippet//
>
> /usr/local/bin/swig -noproxy -nopm -perl
> -I../../../../../subversion/bindings/sw
> ig -I../../../../../subversion/bindings/swig/perl/libsvn_swig_perl
> -I../../../..
> /../subversion/include -I/usr/local/include/apr-1  -o core.c
> ../../../../../subv
> ersion/bindings/swig/core.i
> /usr/local/include/apr-1/apr.h:389: Error: no decision has been made on
> APR_PATH
> _MAX for your platform
> *** Error code 1

Since the swig preprocessor doesn't load all the system headers, unless you 
pass -includeall, it has not way to know that they system defined PATH_MAX, 
i.e., it doesn't load limits.h, et al. 

I'm not sure what the right fix would be, but you can edit apr.i and add 
#define PATH_MAX 1024, or whatever it's supposed to be on your system, just 
before %include apr.h.  

apr.i can be found here:

/usr/ports/devel/subversion-perl/work/subversion-1.2.3/subversion/bindings/swig/apr.i

As for the correct value, this is what I get:

$ cpp -dM /usr/local/include/apr-1/apr.h |grep PATH_MAX
#define _XOPEN_PATH_MAX 1024
#define _POSIX_PATH_MAX 256
#define APR_PATH_MAX PATH_MAX
#define PATH_MAX 1024

So 1024 looks right...

hth...
don

btw, I don't like the new logo either...

>
> Stop in
> /usr/ports/devel/subversion-perl/work/subversion-1.2.3/subversion/bindin
> gs/swig/perl/native.
> *** Error code 1
>
> Stop in /usr/ports/devel/subversion-perl/work/subversion-1.2.3.
> *** Error code 1
>
> Stop in /usr/ports/devel/subversion-perl.
>
> //end error message snippet//
>
> What can I do to alleviate this situation?

-- 
Don Hinton <don.hinton at vanderbilt.edu>                    615.480.5667
ISIS, Vanderbilt University
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20051105/85c2bf45/attachment.bin


More information about the freebsd-questions mailing list