reporting...
Tim Rice
tim at multitalents.net
Wed Dec 19 08:14:56 EST 2012
On Tue, 18 Dec 2012, Darren Tucker wrote:
> On Mon, Dec 17, 2012 at 03:22:22PM -0500, hays wrote:
> > Got this building portable openssh on os x 10.8.2, reporting as requested.
> >
> > checking for sandbox_init... yes
> > checking sandbox.h usability... no
> > checking sandbox.h presence... yes
> > configure: WARNING: sandbox.h: present but cannot be compiled
>
> could you please take a look in config.log and see what the actual error
> message is? it'll be a compile error before the error above, but in
> between that there'll be lots of #defines and configure settings.
>
> thanks.
I had a look at this on my Lion box.
........
In file included from conftest.c:101:
/usr/include/sandbox.h:98:29: error: sandbox/private.h: No such file or directory
........
Indeed sandbox/private.h does not exist.
The offending code looks like this
#ifdef __APPLE_API_PRIVATE
#ifndef _SANDBOX_INTERNAL_
#define _SANDBOX_INDIRECT_
#include <sandbox/private.h>
#undef _SANDBOX_INDIRECT_
#endif
#endif
Now we're not defining __APPLE_API_PRIVATE anywhere.
"gcc -E -dM - < /dev/null" doesn't show __APPLE_API_PRIVATE
Digging deeper, I find it is defined in sys/appleapiopts.h
that sys/types.h pulls in.
The __APPLE_API_PRIVATE (and __APPLE_API_EVOLVING, __APPLE_API_UNSTABLE,
and __APPLE_API_OBSOLETE) are guarded with a
#ifndef __APPLE_API_STRICT_CONFORMANCE
so if we want to quiet down that warning we could define
__APPLE_API_STRICT_CONFORMANCE before testing for sandbox.h
--
Tim Rice Multitalents
tim at multitalents.net
More information about the openssh-unix-dev
mailing list