Dick Hoogendijk wrote:
> The new claws-mail (v3.3.0) would not compile on sxde4. The former did
> compile OK on sxde3. Looking at the errors I found out it is some
> warning in /usr/include/sys/feature_tests.h that made the compile
> process stop. After removing the "warning" part claws-mail compiled
> well and also functions perfectly. I did not use the sun compiler
> (would not work), but hte gcc from sxde4.
> Now I wonder what I have done. Is it bad or what? The part from the
> warning file follows:
> 
> ####=== /usr/include/sys/feature_tests.h ===
> /*
>  * It is invalid to compile an XPG3, XPG4, XPG4v2, or XPG5 application
>  * using c99.  The same is true for POSIX.1-1990, POSIX.2-1992, POSIX.1b,
>  * and POSIX.1c applications. Likewise, it is invalid to compile an XPG6
>  * or a POSIX.1-2001 application with anything other than a c99 or later
>  * compiler.  Therefore, we force an error in both cases.
>  */
> /*
>  * #if defined(_STDC_C99) && (defined(__XOPEN_OR_POSIX) && !defined(_XPG6))
>  * #error "Compiler or options invalid for pre-UNIX 03 X/Open applications \
>  *    and pre-2001 POSIX applications"
>  * #elif !defined(_STDC_C99) && \
>  *    (defined(__XOPEN_OR_POSIX) && defined(_XPG6))
>  * #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications 
> \
>  *    require the use of c99"
>  * #endif
>  */
> /*
> 
> ##########
> 
> Any ideas, advice, knowledge welcome.


If you add

-xc99=%all

to your CFLAGS, does that help?

Apart from that, NEVER edit the files that are delivered under
/usr/include - they're written as they are for a collection of
reasons, and it's my experience (over many OSen) that if you think
there's a problem in /usr/include, then 999 times out of 1000
you're actually wrong :-)



James C. McPherson
--
Solaris kernel software engineer, system admin and troubleshooter
               http://www.jmcp.homeunix.com/blog
                   http://blogs.sun.com/jmcp
Find me on LinkedIn @ http://www.linkedin.com/in/jamescmcpherson


Reply via email to