[Bug 2945] sshd unstable on Illumos (and probably Solaris) when compiled in XPG4 mode

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Dec 21 03:03:48 AEDT 2018


https://bugzilla.mindrot.org/show_bug.cgi?id=2945

--- Comment #4 from andy at omniosce.org ---
This applies in Solaris to XPG4 and above, so XPG6 too. If the modules
are not being inserted, then the test code might have been built
without XPG4 or 6 - it depends on the how the compiler you are using is
configured but did you compile with std=C90 or above?

Look at `gcc -dumpspecs` for the startfile_arch section and if it
includes values-xpg4.o or values-xpg6.o then you are compiling to that
standard with the right flags, otherwise not.

This is from Solaris 11.3, gcc 7.3

*startfile_arch:
%{ansi:values-Xc.o%s; :values-Xa.o%s}     
%{std=c99|std=c9x|std=gnu99|std=gnu9x:values-xpg6.o%s}     
%{std=c11|std=c1x|std=gnu11|std=gnu1x:values-xpg6.o%s}     
%{std=c++11|std=c++0x|std=gnu++11|std=gnu++0x:values-xpg6.o%s}     
%{std=c++14|std=c++1y|std=gnu++14|std=gnu++1y:values-xpg6.o%s}     
%{std=c++1z|std=gnu++1z:values-xpg6.o%s}

so to get an xpg6 build, you need at least -std=c99.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list