There are two ways to solve this issue if I am not mistaken. First and easy one is to deliver fixed system header as part of GCC's fixed-includes. Initial GCC 4.7 package did not deliver any fixed headers
Another option is to fix the relevant headers in illumos itself. Andrzej On 25 May 2013 22:23, Alexander Pyhalov <[email protected]> wrote: > Hello, all. > > I've made preliminary port of aspell component for oi-hipster repository. It > is slightly modified version from ec-userland and is > accessible here: > https://github.com/pyhalov/oi-userland/tree/aspell/components/aspell . > > However, there is a problem: https://www.illumos.org/issues/3787 > > To build aspell with GCC >= 4.6 you should modify your system headers. > > The following lines should be changed (add _GNUG exceptions): > /usr/include/stdlib.h:43:#if __cplusplus >= 199711L && !defined(_GNUG__) > /usr/include/iso/stdlib_iso.h:62:#if __cplusplus >= 199711L && > !defined(__GNUG__) > /usr/include/iso/stdlib_iso.h:76:#if !defined(_SIZE_T) || ( __cplusplus >= > 199711L && !defined(__GNUG__)) > /usr/include/iso/stdlib_iso.h:131:#if __cplusplus >= 199711L && > !defined(__GNUG__) > /usr/include/iso/stdlib_iso.h:151:#if __cplusplus >= 199711L && > !defined(__GNUG__) > /usr/include/iso/stdlib_iso.h:168:#if __cplusplus >= 199711L && > !defined(__GNUG__) > /usr/include/iso/stdlib_iso.h:208:#if __cplusplus >= 199711L && > !defined(__GNUG__) > > it is related to the fix of http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773 > introduced in GCC 4.6 > In brief, earlier G++ reported __cplusplus to be 1. Now it is not always > true. This corrupted logic in > Solaris libraries headers. So, I don't know if this packet should be merged > in oi-hipster and what is the best way to resolve this. > > -- > System Administrator of Southern Federal University Computer Center > > > _______________________________________________ > oi-dev mailing list > [email protected] > http://openindiana.org/mailman/listinfo/oi-dev _______________________________________________ oi-dev mailing list [email protected] http://openindiana.org/mailman/listinfo/oi-dev
