<div dir="ltr"><div><div><div>Hi Siegmar,<br><br></div>1) For the linking errors you should provide the full build log but it could just be an issue with the order of arguments passed to Solaris ld, or if you compiled gcc to use GNU ld, the same issue might occur if the configure script assumes Solaris => Solaris ld.<br>
<br></div>2) I keep this sticky note on my wiki:<br><br><h3 class="" id="compiler_or_options_invalid_for_pre-unix_03_x_open_applications_and_pre-2001_posix_applications">"Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"</h3>
<pre class="">/usr/gcc/4.6/lib/gcc/i386-pc-solaris2.11/4.6.3/include-fixed/sys/feature_tests.h:362:2:
error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications
and pre-2001 POSIX applications"</pre>
<p>
Conflict of standards between _XOPEN_SOURCE and C99 extensions.
</p>
<pre class="">#if defined(_STDC_C99) && (defined(__XOPEN_OR_POSIX) && !defined(_XPG6))</pre>As GCC standards do not match ANSI/ISO/POSIX standards strictly you need to specify the standard you want to comply with.<br>
</div><div>Usually adding -D_XOPEN_SOURCE=500 (or 600) and/or -D__EXTENSIONS__ to your compiler flags is a good start.<br><br></div><div>Read the 'standards' manpage for further explanations, it is well documented.<br>
</div><div><br></div><div>Best regards<br><br>Aurelien<br></div><div><div><br clear="all"><div><br>-- <br><div dir="ltr"><font style="font-family:courier new,monospace" size="1">-------------------------------------------------------------------------------<br>
LARCHER Aurélien | KTH, School of Computer Science and Communication<br>
Work: <a value="+4687907142">+46 (0) 8 790 71 42</a> | Lindstedtsvägen 5, Plan <font size="1">4<font size="1">,</font></font> 100 44 Stockholm, SWEDEN<br>-------------------------------------------------------------------------------<br>
</font></div>
</div></div></div></div>