Boost C++ Libraries: Ticket #3231: boost::thread fails to compile with the sun CC compiler https://svn.boost.org/trac10/ticket/3231 <p> I can't compile the thread library on solaris using the sun compiler. </p> <p> common.mkdir bin.v2/libs/thread/build/sun common.mkdir bin.v2/libs/thread/build/sun/release common.mkdir bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport common.mkdir bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi common.mkdir bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/pthread sun.compile.c++ bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/pthread/thread.o "libs/thread/src/pthread/thread.cpp", line 77: Error: The operation "boost::shared_ptr&lt;boost::detail::tss_cleanup_function&gt; &amp;&amp; void*" is illegal. </p> <table class="wiki"> <tr>"libs/thread/src/pthread/thread.cpp", line 588: Error: The operation "boost::shared_ptr&lt;boost::detail::tss_cleanup_function&gt; <td> void*" is illegal. </td></tr></table> <p> 2 Error(s) detected. </p> <blockquote> <p> "CC" -library=stlport4 -xO4 -mt -erroff=%none -KPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/pthread/thread.o" "libs/thread/src/pthread/thread.cpp" </p> </blockquote> <p> ...failed sun.compile.c++ bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/pthread/thread.o... sun.compile.c++ bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/pthread/exceptions.o sun.compile.c++ bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/pthread/once.o ...skipped &lt;pbin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi&gt;libboost_thread-sw-mt-1_40.so.1.40.0 for lack of &lt;pbin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi&gt;pthread/thread.o... ...skipped &lt;p/home/meerkoef/boost/sun5/lib&gt;libboost_thread-sw-mt-1_40.so.1.40.0 for lack of &lt;pbin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi&gt;libboost_thread-sw-mt-1_40.so.1.40.0... ...skipped &lt;p/home/meerkoef/boost/sun5/lib&gt;libboost_thread-sw-mt.so for lack of &lt;p/home/meerkoef/boost/sun5/lib&gt;libboost_thread-sw-mt-1_40.so.1.40.0... common.mkdir bin.v2/libs/date_time/build/sun/release/link-static ...on 7500th target... </p> <p> The compiler version used is: CC -V CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25 </p> <p> The boost version used is the boost-trunk of today svn info Path: . URL: <a class="ext-link" href="http://svn.boost.org/svn/boost/trunk"><span class="icon">​</span>http://svn.boost.org/svn/boost/trunk</a> Repository Root: <a class="ext-link" href="http://svn.boost.org/svn/boost"><span class="icon">​</span>http://svn.boost.org/svn/boost</a> Repository UUID: b8fc166d-592f-0410-95f2-cb63ce0dd405 Revision: 54497 Node Kind: directory Schedule: normal Last Changed Author: rogeeff Last Changed Rev: 54495 Last Changed Date: 2009-06-29 05:44:38 +0200 (Mon, 29 Jun 2009) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3231 Trac 1.4.3 Steven Watanabe Mon, 29 Jun 2009 15:09:56 GMT component changed; owner set https://svn.boost.org/trac10/ticket/3231#comment:1 https://svn.boost.org/trac10/ticket/3231#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Anthony Williams</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">thread</span> </li> </ul> Ticket nstewart@… Fri, 07 May 2010 15:20:21 GMT <link>https://svn.boost.org/trac10/ticket/3231#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3231#comment:2</guid> <description> <p> Frank, </p> <p> Is this still an issue in boost 1.42.0? I seem to able to compile boost::thread with <a class="missing wiki">SunStudio</a> 12. </p> <ul><li>Nigel </li></ul> </description> <category>Ticket</category> </item> <item> <author>frank@…</author> <pubDate>Mon, 10 May 2010 10:42:04 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3231#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3231#comment:3</guid> <description> <p> It was fixed in the current trunk a few weeks ago. As far as i know the fix is not contained in the recent 1.43 release. </p> <ul><li>Frank </li></ul> </description> <category>Ticket</category> </item> <item> <author>nigels@…</author> <pubDate>Mon, 10 May 2010 12:33:28 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/3231#comment:4 https://svn.boost.org/trac10/ticket/3231#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.40.0</span> → <span class="trac-field-new">Boost 1.44.0</span> </li> </ul> Ticket Anthony Williams Fri, 21 May 2010 17:10:35 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3231#comment:5 https://svn.boost.org/trac10/ticket/3231#comment:5 <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> Ticket