Build on Solaris 11.2 chokes on __ATTR_DEPRECATED
Building illumos on a Solaris 11.2 server results in many errors like this:
syntax error before or at: __ATTR_DEPRECATED
The problem occurs when header files included from the illumos source are mixed with header files from the build host. Both gcc and the Studio compiler choke on that symbol.
A fix is to add this line near the end of usr/src/uts/common/sys/ccompile.h:
#define __ATTR_DEPRECATED /* ignore */
There may be better solutions, but this one works.