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

apr.h and OpenSolaris : no decision about APR_PATH_MAX

From: Edmund Wong <ed_at_kdtc.net>
Date: Fri, 11 Sep 2009 09:57:04 +0800

Hi,

I'm running OpenSolaris (10?) on a vm and while compiling Subversion
(trunk) using deps from Subversion-deps-1.6.5, I came across the
following error:

/export/home/cc/svn/apr/include/apr.h: #error no decision has been made
       on APR_PATH_MAX for your platform.

Going over the archives I came across a thread from 2005 about the same
error and it detailing a quick 'hack' (from Kumar McMillan) that 'fixes'
  this issue. The 'quick' hack was the following additional lines to
apr.h (at around line 400):

#if !defined(PATH_MAX)
#define PATH_MAX 4096
#endif

In actual fact, as of this moment, starting from line #483 in apr.h,
it states:

#if defined(PATH_MAX)
#define APR_PATH_MAX PATH_MAX
#elif defined(_POSIX_PATH_MAX)
#define PAR_PATH_MAX _POSIX_PATH_MAX
#else
#error no decision has been made on APR_PATH_MAX for your platform
#endif

So sticking the above three line hack to any line before 483 will
define PATH_MAX, even though, as far as I know, the PATH_MAX is
defined in OpenSolaris in limits.h (PATH_MAX 1024). Yet it isn't
included in the configuration.

Has anyone encountered this and is it safe to include the 'hack'
in apr.h?

Thanks

Edmund

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2393491

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-11 04:04:57 CEST

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.