Boost C++ Libraries: Ticket #3662: Define _SVID_SOURCE and _POSIX_SOURCE for Comeau https://svn.boost.org/trac10/ticket/3662 <p> According to <a class="ext-link" href="http://www.comeaucomputing.com/4.3.0/minor/linux/"><span class="icon">​</span>manual</a> of Comeau C++ 4.3, on Linux </p> <blockquote> <p> <em>In order to use some POSIX or SVID extension routines/struct's, it may be necessary to define _POSIX_SOURCE or _SVID_SOURCE</em> </p> </blockquote> <p> The attached patch adds these definitions to Jamfile.v2 for the build. However, I don't know where it would be required else, for example, when Boost.Test is used in <em>included</em> mode, etc. </p> <p> My environment: </p> <ul><li>Linux 32-bit </li><li>Comeau C/C++ 4.3.10.1 </li><li>GCC 4.3.3 </li></ul> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3662 Trac 1.4.3 mloskot <mateusz@…> Mon, 23 Nov 2009 23:57:35 GMT attachment set https://svn.boost.org/trac10/ticket/3662 https://svn.boost.org/trac10/ticket/3662 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">como-posix-svid-defines.patch</span> </li> </ul> <p> Patch adding &lt;define&gt; entries enabling POSIX support from Comeau </p> Ticket mloskot <mateusz@…> Tue, 24 Nov 2009 02:47:46 GMT <link>https://svn.boost.org/trac10/ticket/3662#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3662#comment:1</guid> <description> <p> Gennadiy, </p> <p> GI found another workaround which is simpler and seems to solve number of other issues related to C99 and POSIX. It is define of _ GNU_SOURCE in Jamfile: </p> <pre class="wiki">&lt;toolset&gt;como-linux:&lt;define&gt;_GNU_SOURCE=1 </pre><p> Quick test shows that it enables C99 features like even snprintf and vsnprintf as well as POSIX features like time functions or signals. </p> <p> I've just discovered this define while trying to enable signal.h definitions, but I'm going to consult it with Comeau team, so in case you'd be up to, please do not apply these patches here neither the patch I added today ago for <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3558" title="#3558: Bugs: como throws error: the global scope has no snprintf (closed: wontfix)">#3558</a> . I'm going to confirm all these and run more tests. Sorry for making noise in the tickets, but I think it may be relevant to have some steps documented. Thanks for patience! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gennadiy Rozental</dc:creator> <pubDate>Sat, 28 Nov 2009 09:34:27 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3662#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3662#comment:2</guid> <description> <p> Is it fixed already in common Jamfile? </p> </description> <category>Ticket</category> </item> <item> <author>Mateusz Loskot (mloskot) <mateusz@…></author> <pubDate>Sat, 28 Nov 2009 19:48:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3662#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3662#comment:3</guid> <description> <p> I have submitted those fixes in separate ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3692" title="#3692: Patches: Jamroot update for Comeau C++ compiler (closed: fixed)">#3692</a> for Boost Build. I think this ticket can be closed. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gennadiy Rozental</dc:creator> <pubDate>Mon, 30 Nov 2009 08:04:37 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3662#comment:4 https://svn.boost.org/trac10/ticket/3662#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> Ticket