Boost C++ Libraries: Ticket #3743: support for partially broken compilers/platforms https://svn.boost.org/trac10/ticket/3743 <p> The following patch may not be complete, but it solved some problems for me on a GCC 2.95 platform. </p> <p> The patch does 3 things: </p> <ol><li>Replace #include&lt;limits&gt; with #include &lt;boost/limits.hpp&gt; which emulates a limits header for platforms that don't have one </li><li>It #ifdefs out any iostream related code for platforms where BOOST_NO_IOSTREAM is defined </li><li>It falls back to a second timer for the default deadline_timer in case BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK is not defined. It that's not defined there is no microsec_clock, and the current code fails to compile. </li></ol> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3743 Trac 1.4.3 arvid@… Wed, 09 Dec 2009 18:15:38 GMT attachment set https://svn.boost.org/trac10/ticket/3743 https://svn.boost.org/trac10/ticket/3743 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">broken_support.diff</span> </li> </ul> <p> compiler support patch </p> Ticket arvid@… Wed, 09 Dec 2009 18:18:30 GMT <link>https://svn.boost.org/trac10/ticket/3743#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3743#comment:1</guid> <description> <p> oh, actually, it does one more thing: </p> <p> If SIOCATMARK is not defined, it falls back to the posix call which was intended to replace the ioctl, sockatmark(). </p> <p> Also, I did not grep all sources for #include &lt;limits&gt;, I just fixed the ones that broke my build. You might want to look for other instances as well. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Tue, 05 Jan 2010 11:51:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3743#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3743#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/58703" title="Include boost/limits.hpp rather than &lt;limits&gt;, to support older ...">[58703]</a>) Include boost/limits.hpp rather than &lt;limits&gt;, to support older compilers. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3743" title="#3743: Patches: support for partially broken compilers/platforms (closed: fixed)">#3743</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Tue, 05 Jan 2010 12:20:12 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3743#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3743#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/58704" title="Drop back to second_clock if microsec_clock is unavailable. Refs #3743. ">[58704]</a>) Drop back to second_clock if microsec_clock is unavailable. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3743" title="#3743: Patches: support for partially broken compilers/platforms (closed: fixed)">#3743</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Tue, 05 Jan 2010 12:50:41 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3743#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3743#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/58705" title="Use sockatmark if SIOCATMARK is not defined. Refs #3743. ">[58705]</a>) Use sockatmark if SIOCATMARK is not defined. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3743" title="#3743: Patches: support for partially broken compilers/platforms (closed: fixed)">#3743</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Wed, 06 Jan 2010 12:27:08 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3743#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3743#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/58761" title="Disable iostreams-related functionality if BOOST_NO_IOSTREAMS is ...">[58761]</a>) Disable iostreams-related functionality if BOOST_NO_IOSTREAMS is defined. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3743" title="#3743: Patches: support for partially broken compilers/platforms (closed: fixed)">#3743</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Wed, 06 Jan 2010 22:44:50 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3743#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3743#comment:6</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/58782" title="Disable handler allocation and invocation hooks on g++ 2.x. Refs #3743. ">[58782]</a>) Disable handler allocation and invocation hooks on g++ 2.x. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3743" title="#3743: Patches: support for partially broken compilers/platforms (closed: fixed)">#3743</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Thu, 07 Jan 2010 22:18:18 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3743#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3743#comment:7</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/58793" title="Support platforms that don't define INET6_ADDRSTRLEN. Refs #3743. ">[58793]</a>) Support platforms that don't define INET6_ADDRSTRLEN. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3743" title="#3743: Patches: support for partially broken compilers/platforms (closed: fixed)">#3743</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Thu, 07 Jan 2010 22:22:01 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3743#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3743#comment:8</guid> <description> <p> If possible, could you please test the trunk to ensure all the issues have been addressed. Also, how would you describe this gcc 2.95-based target platform (for the release notes)? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Mon, 11 Jan 2010 02:34:08 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3743#comment:9 https://svn.boost.org/trac10/ticket/3743#comment:9 <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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/58883" title="Merge from trunk. Fixes #3743, #3670, #3822. ........ r58670 | ...">[58883]</a>) Merge from trunk. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3743" title="#3743: Patches: support for partially broken compilers/platforms (closed: fixed)">#3743</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3670" title="#3670: Bugs: endless loop in dev_poll_reactor on Solaris (closed: fixed)">#3670</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3822" title="#3822: Bugs: boost/asio/buffer.hpp MSVC workaround is inaccurately targeted (closed: fixed)">#3822</a>. </p> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/58670" title="Fix example to compile with MSVC 10 beta 2. ">r58670</a> | chris_kohlhoff | 2010-01-04 23:33:04 +1100 (Mon, 04 Jan 2010) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Fix example to compile with MSVC 10 beta 2. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/58671" title="Fix Win64 warnings. ">r58671</a> | chris_kohlhoff | 2010-01-04 23:33:42 +1100 (Mon, 04 Jan 2010) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Fix Win64 warnings. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/58703" title="Include boost/limits.hpp rather than &lt;limits&gt;, to support older ...">r58703</a> | chris_kohlhoff | 2010-01-05 22:51:41 +1100 (Tue, 05 Jan 2010) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> Include boost/limits.hpp rather than &lt;limits&gt;, to support older compilers. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3743" title="#3743: Patches: support for partially broken compilers/platforms (closed: fixed)">#3743</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/58704" title="Drop back to second_clock if microsec_clock is unavailable. Refs #3743. ">r58704</a> | chris_kohlhoff | 2010-01-05 23:20:10 +1100 (Tue, 05 Jan 2010) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Drop back to second_clock if microsec_clock is unavailable. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3743" title="#3743: Patches: support for partially broken compilers/platforms (closed: fixed)">#3743</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/58705" title="Use sockatmark if SIOCATMARK is not defined. Refs #3743. ">r58705</a> | chris_kohlhoff | 2010-01-05 23:50:39 +1100 (Tue, 05 Jan 2010) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Use sockatmark if SIOCATMARK is not defined. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3743" title="#3743: Patches: support for partially broken compilers/platforms (closed: fixed)">#3743</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/58740" title="Use buffer debugging workaround with MSVC 8 only. ">r58740</a> | chris_kohlhoff | 2010-01-06 13:38:39 +1100 (Wed, 06 Jan 2010) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Use buffer debugging workaround with MSVC 8 only. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/58761" title="Disable iostreams-related functionality if BOOST_NO_IOSTREAMS is ...">r58761</a> | chris_kohlhoff | 2010-01-06 23:27:05 +1100 (Wed, 06 Jan 2010) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Disable iostreams-related functionality if BOOST_NO_IOSTREAMS is defined. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3743" title="#3743: Patches: support for partially broken compilers/platforms (closed: fixed)">#3743</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/58762" title="Apply fix for reported excessive CPU usage under Solaris. Refs #3670. ">r58762</a> | chris_kohlhoff | 2010-01-06 23:36:51 +1100 (Wed, 06 Jan 2010) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Apply fix for reported excessive CPU usage under Solaris. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3670" title="#3670: Bugs: endless loop in dev_poll_reactor on Solaris (closed: fixed)">#3670</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/58782" title="Disable handler allocation and invocation hooks on g++ 2.x. Refs #3743. ">r58782</a> | chris_kohlhoff | 2010-01-07 09:44:48 +1100 (Thu, 07 Jan 2010) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Disable handler allocation and invocation hooks on g++ 2.x. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3743" title="#3743: Patches: support for partially broken compilers/platforms (closed: fixed)">#3743</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/58793" title="Support platforms that don't define INET6_ADDRSTRLEN. Refs #3743. ">r58793</a> | chris_kohlhoff | 2010-01-08 09:18:16 +1100 (Fri, 08 Jan 2010) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Support platforms that don't define INET6_ADDRSTRLEN. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3743" title="#3743: Patches: support for partially broken compilers/platforms (closed: fixed)">#3743</a>. </p> </blockquote> <p> ........ </p> Ticket