OpenSSH 7.3p1 can't be build on Solaris 10

Darren Tucker dtucker at
Tue Aug 2 14:06:40 AEST 2016

On Tue, Aug 2, 2016 at 2:02 PM, Darren Tucker <dtucker at> wrote:
> On Tue, Aug 2, 2016 at 1:44 PM, Darren Tucker <dtucker at> wrote:
> [...]
>> The failing condition is "if defined(_STDC_C99) &&
>> (defined(__XOPEN_OR_POSIX) && !defined(_XPG6))".  The above explains
>> where the XOPEN came from.  As to why you're seeing it, my guess is
>> your version of gcc defaults to -std=c99 and mine doesn't.  You can
>> try adding "-std=c89" to your CFLAGS and see if it builds.
> Alternatively, try adding -D_XPG6 to CFLAGS.

That may not be the right thing.  Looks like this might be a known GCC bug:

Darren Tucker (dtucker at
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860  37F4 9357 ECEF 11EA A6FA (new)
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

More information about the openssh-unix-dev mailing list