Project

General

Profile

Bug #5395

Build on Solaris 11.2 chokes on __ATTR_DEPRECATED

Added by Gary Mills about 6 years ago. Updated almost 6 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
tools - gate/build tools
Start date:
2014-12-05
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

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.

Also available in: Atom PDF