Boost C++ Libraries: Ticket #8212: Boost thread compilation error on Solaris 10 https://svn.boost.org/trac10/ticket/8212 <p> Boost thread does not compile anymore on Solaris 10. </p> <p> Logs are : </p> <pre class="wiki">"./boost/thread/future.hpp", line 3000: Error: boost::unique_future&lt;void&gt;::unique_future(boost::unique_future&lt;void&gt;&amp;) is not accessible from boost::make_future(). 1 Error(s) detected. "CC" -library=stlport4 -xO4 -mt -erroff=%none -m32 -KPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2/libs/thread/build/sun/release/address-model-32/stdlib-sun-stlport/threading-multi/pthread/thread.o" "libs/thread/src/pthread/thread.cpp" ...failed sun.compile.c++ bin.v2/libs/thread/build/sun/release/address-model-32/stdlib-sun-stlport/threading-multi/pthread/thread.o... </pre><p> This error occurs with and without usage of STL port. </p> <p> Previous version (1.52.0) is fine. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8212 Trac 1.4.3 viboes Sat, 02 Mar 2013 22:57:02 GMT owner, status changed https://svn.boost.org/trac10/ticket/8212#comment:1 https://svn.boost.org/trac10/ticket/8212#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Sun, 03 Mar 2013 09:03:43 GMT <link>https://svn.boost.org/trac10/ticket/8212#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8212#comment:2</guid> <description> <p> Does the following patch help? </p> <pre class="wiki"> svn diff ../../../boost/thread Index: ../../../boost/thread/future.hpp =================================================================== --- ../../../boost/thread/future.hpp (revision 83254) +++ ../../../boost/thread/future.hpp (working copy) @@ -3234,7 +3234,7 @@ typedef typename decay&lt;T&gt;::type future_type; promise&lt;future_type&gt; p; p.set_value(boost::forward&lt;T&gt;(value)); - return p.get_future(); + return BOOST_THREAD_MAKE_RV_REF(p.get_future()); } @@ -3254,14 +3254,14 @@ typedef typename decay&lt;T&gt;::type future_type; promise&lt;future_type&gt; p; p.set_value(boost::forward&lt;T&gt;(value)); - return p.get_future().share(); + return BOOST_THREAD_MAKE_RV_REF(p.get_future().share()); } inline shared_future&lt;void&gt; make_shared_future() { promise&lt;void&gt; p; - return p.get_future().share(); + return BOOST_THREAD_MAKE_RV_REF(p.get_future().share()); } </pre><p> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 09 Mar 2013 16:01:07 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/8212#comment:3 https://svn.boost.org/trac10/ticket/8212#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.54.0</span> </li> </ul> <p> Committed revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/83370" title="Thread: Try workaround for #8212.">[83370]</a>. </p> Ticket nicolas.jouvray@… Wed, 13 Mar 2013 10:21:08 GMT <link>https://svn.boost.org/trac10/ticket/8212#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8212#comment:4</guid> <description> <p> Sorry but I was not able to test the patch before. I still have an error. </p> <pre class="wiki">"./boost/thread/future.hpp", line 3244: Error: boost::unique_future&lt;void&gt;::unique_future(boost::unique_future&lt;void&gt;&amp;) is not accessible from boost::make_future(). 1 Error(s) detected. "CC" -xO4 -mt -erroff=%none -m32 -KPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2/libs/thread/build/sun/release/address-model-32/threading-multi/pthread/thread.o" "libs/thread/src/pthread/thread.cpp" </pre><p> The line 3244 in this revision is the following one ; </p> <pre class="wiki"> inline BOOST_THREAD_FUTURE&lt;void&gt; make_future() { promise&lt;void&gt; p; return p.get_future(); // &lt;-- This one } </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 13 Mar 2013 22:03:30 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/8212 https://svn.boost.org/trac10/ticket/8212 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">8212.patch</span> </li> </ul> <p> Could you try this additional patch? </p> Ticket nicolas.jouvray@… Thu, 14 Mar 2013 09:54:55 GMT <link>https://svn.boost.org/trac10/ticket/8212#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8212#comment:5</guid> <description> <p> This patch is OK ! Thanks </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 16 Mar 2013 08:36:20 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8212#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8212#comment:6</guid> <description> <p> Committed in trunk <a class="changeset" href="https://svn.boost.org/trac10/changeset/83425" title="Thread: Apply patch for #8212.">[83425]</a><a class="changeset" href="https://svn.boost.org/trac10/changeset/83456" title="Thread: rollback one of the changes in [83425].">[83456]</a>. </p> <p> Note that <a class="changeset" href="https://svn.boost.org/trac10/changeset/83456" title="Thread: rollback one of the changes in [83425].">[83456]</a> rollbacks one of the changes in <a class="changeset" href="https://svn.boost.org/trac10/changeset/83425" title="Thread: Apply patch for #8212.">[83425]</a> as it introduce regressions in other compilers. Please could you try it? </p> </description> <category>Ticket</category> </item> <item> <author>nicolas.jouvray@…</author> <pubDate>Mon, 18 Mar 2013 07:02:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8212#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8212#comment:7</guid> <description> <p> It is OK. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 23 Mar 2013 02:16:44 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8212#comment:8 https://svn.boost.org/trac10/ticket/8212#comment:8 <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> Committed revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/83525" title="Thread: merge from trunk. 1.54">[83525]</a>. </p> Ticket