openssh build failure on High Sierra (10.13.2)

Zube Zube at stat.colostate.edu
Thu Jan 25 23:54:14 AEDT 2018


On Tue Jan 23 01:58:47 PM, Damien Miller wrote:

> > /usr/include/sys/syslog.h:227:124: error: expected ',' or ';' before
> > '__asm'
> >  void syslog(int, const char *, ...) __printflike(2, 3)
> >  __not_tail_called __DARWIN_ALIAS_STARTING(__MAC_10_13, __IPHONE_NA,
> >  __DARWIN_EXTSN(syslog));
> 
> You could try grepping /usr/include for the definition of
> __DARWIN_ALIAS_STARTING to see where that is and seeing if including
> the file where it lives near the top on includes.h fixes it.
> 
> (I don't have a High Sierra host, so can't help directly - sorry)

No worries.  Thank you for taking the time to reply.  

This page:

https://discussions.apple.com/thread/8127677

suggests two workarounds:

Adding gcc option -U__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__

or

Adding gcc option -mmacosx-version-min=10.12 (from gcc6)

I chose the latter and added it to CFLAGS.  It compiled cleanly.

Cheers,
Zube



More information about the openssh-unix-dev mailing list