Boost C++ Libraries: Ticket #9918: chrono compilation error on Solaris, funciton timegm https://svn.boost.org/trac10/ticket/9918 <p> See bug 8696, which claims that timegm is available on Solaris 11 when the sunpro tool chain is used. That claim is not correct. The fix for bug 8696 needs to apply when <span class="underline">sun is defined, not just when both </span>sun and <span class="underline">GNU_C</span> are defined. </p> <p> Here is a fix: </p> <pre class="wiki">% diff time_point_io.hpp /tmp 39c39 &lt; || ( (defined(sun) || defined(__sun)) &amp;&amp; defined __GNUC__) \ --- &gt; || (defined(sun) || defined(__sun)) \ 44c44 &lt; || ( (defined(sun) || defined(__sun)) &amp;&amp; defined __GNUC__) \ --- &gt; || (defined(sun) || defined(__sun)) \ </pre><p> I made the minimal change here. I'm not sure that checking for "sun" is a good idea, since "sun" is in the user's namespace and might mean something other than compiling on SunOS. Maybe the original author knows of a reason to check for "sun" as well as for "<span class="underline">sun". </span></p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9918 Trac 1.4.3 Stephen Clamage <stephen.clamage@…> Thu, 17 Apr 2014 22:04:42 GMT <link>https://svn.boost.org/trac10/ticket/9918#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9918#comment:1</guid> <description> <p> Rats. I see that the underbars in macro names screwed up the formatting of the text. I don't see a way to edit the original note. Here are the diffs again: </p> <pre class="wiki">% diff time_point_io.hpp /tmp 39c39 &lt; || ( (defined(sun) || defined(__sun)) &amp;&amp; defined __GNUC__) \ --- &gt; || (defined(sun) || defined(__sun)) \ 44c44 &lt; || ( (defined(sun) || defined(__sun)) &amp;&amp; defined __GNUC__) \ --- &gt; || (defined(sun) || defined(__sun)) \ </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Fri, 18 Apr 2014 16:34:52 GMT</pubDate> <title>description changed https://svn.boost.org/trac10/ticket/9918#comment:2 https://svn.boost.org/trac10/ticket/9918#comment:2 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/9918?action=diff&amp;version=2">diff</a>) </li> </ul> Ticket viboes Fri, 18 Apr 2014 16:36:29 GMT status changed https://svn.boost.org/trac10/ticket/9918#comment:3 https://svn.boost.org/trac10/ticket/9918#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> I suspect that the use of sun is because sun compilers defines either sun or <span class="underline">sun. </span></p> Ticket Stephen Clamage <stephen.clamage@…> Fri, 18 Apr 2014 16:49:05 GMT <link>https://svn.boost.org/trac10/ticket/9918#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9918#comment:4</guid> <description> <p> All Sun compilers always define __sun when running on Solaris (SunOS). Old Sun compilers also defined sun, but that practice stopped some time ago. Maybe old versions of gcc or some other vendor's compilers didn't follow the practice of defining __sun. That I don't know. As I said before, unless someone knows of a specific reason for checking for sun, I suggest checking only for __sun. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Fri, 18 Apr 2014 18:44:25 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/9918#comment:5 https://svn.boost.org/trac10/ticket/9918#comment:5 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> <p> This doesn't works this way. The way it works is"until we don't have a reason to change something we don't change it :) </p> <p> <a class="ext-link" href="https://github.com/boostorg/chrono/commit/9e3c81e439b3de5ca3e0d109f6245301119c84de"><span class="icon">​</span>https://github.com/boostorg/chrono/commit/9e3c81e439b3de5ca3e0d109f6245301119c84de</a> </p> Ticket viboes Sun, 27 Apr 2014 13:19:21 GMT <link>https://svn.boost.org/trac10/ticket/9918#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9918#comment:6</guid> <description> <p> Please, let me know if the changes in develop fixes the issue. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 27 Apr 2014 13:49:54 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9918#comment:7 https://svn.boost.org/trac10/ticket/9918#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> <a class="ext-link" href="https://github.com/boostorg/chrono/commit/f66235d6b80838f7bf03118789af4b399cecd012"><span class="icon">​</span>https://github.com/boostorg/chrono/commit/f66235d6b80838f7bf03118789af4b399cecd012</a> </p> Ticket