Boost C++ Libraries: Ticket #10558: boost 1.56 and gcc.4.9.1 invalid use of incomplete type 'struct boost::detail::shared_state_base' https://svn.boost.org/trac10/ticket/10558 <p> Trying a build with gcc4.9.1 in pkgsrc and am encountering the following: </p> <p> gcc.compile.c++ bin.v2/libs/thread/build/gcc-4.9.1/release/threading-multi/pthread/thread.o libs/thread/src/pthread/thread.cpp: In destructor 'virtual boost::detail::thread_data_base::~thread_data_base()': libs/thread/src/pthread/thread.cpp:56:21: error: invalid use of incomplete type 'struct boost::detail::shared_state_base' </p> <blockquote> <p> (*i)-&gt;make_ready(); </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> In file included from ./boost/thread/thread_only.hpp:17:0, </p> <blockquote> <p> from libs/thread/src/pthread/thread.cpp:11: </p> </blockquote> <p> ./boost/thread/pthread/thread_data.hpp:84:16: error: forward declaration of 'struct boost::detail::shared_state_base' </p> <blockquote> <p> struct shared_state_base; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> In file included from ./boost/system/system_error.hpp:14:0, </p> <blockquote> <p> from ./boost/thread/exceptions.hpp:22, from ./boost/thread/pthread/thread_data.hpp:10, from ./boost/thread/thread_only.hpp:17, from libs/thread/src/pthread/thread.cpp:11: </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10558 Trac 1.4.3 viboes Sun, 28 Sep 2014 22:24:19 GMT owner, status changed https://svn.boost.org/trac10/ticket/10558#comment:1 https://svn.boost.org/trac10/ticket/10558#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, 28 Sep 2014 22:33:51 GMT <link>https://svn.boost.org/trac10/ticket/10558#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10558#comment:2</guid> <description> <p> The file <code></code><code>libs/thread/src/pthread/thread.cpp</code><code></code> includes already the file <code></code><code>&lt;boost/thread/future.hpp&gt;</code><code></code> which defines <code></code><code>shared_state_base</code><code></code>. </p> <p> I don't see where is the problem. </p> </description> <category>Ticket</category> </item> <item> <author>Richard PALO <richard@…></author> <pubDate>Tue, 30 Sep 2014 05:24:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10558#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10558#comment:3</guid> <description> <p> I try to attach the output of preprocess only with '-E -dD' but even compressed the output is &gt; 365K perhaps that will give some insight. If I can mail it somewhere let me know. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 02 Oct 2014 20:46:21 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10558#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10558#comment:4</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/10558#comment:3" title="Comment 3">Richard PALO &lt;richard@…&gt;</a>: </p> <blockquote class="citation"> <p> I try to attach the output of preprocess only with '-E -dD' but even compressed the output is &gt; 365K perhaps that will give some insight. If I can mail it somewhere let me know. </p> </blockquote> <p> Yes please, sent it to vicente.botet at wanadoo.fr </p> </description> <category>Ticket</category> </item> <item> <author>Richard PALO <richard@…></author> <pubDate>Sat, 04 Oct 2014 14:05:34 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10558#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10558#comment:5</guid> <description> <p> I'm going to put this to sleep for now, the original report was done in an environment upgraded from gcc 4.7.3 to 4.9.1 where perhaps something went awry during the boost components upgrade. Building in a pristine gcc 4.9.1 environment did not manifest this error. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 08 Oct 2014 05:23:13 GMT</pubDate> <title>status changed; resolution set; milestone deleted https://svn.boost.org/trac10/ticket/10558#comment:6 https://svn.boost.org/trac10/ticket/10558#comment:6 <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">worksforme</span> </li> <li><strong>milestone</strong> <span class="trac-field-deleted">To Be Determined</span> </li> </ul> <p> Please reopen it when you see it again. </p> Ticket anonymous Fri, 26 Feb 2016 17:14:42 GMT <link>https://svn.boost.org/trac10/ticket/10558#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10558#comment:7</guid> <description> <p> I'm also getting the same errors with boost 1.54 and gcc 4.8 </p> </description> <category>Ticket</category> </item> <item> <author>zhaojeff2012@…</author> <pubDate>Thu, 15 Mar 2018 06:35:12 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10558#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10558#comment:8</guid> <description> <p> I'm also getting the same errors in xcode with boost 1.60 and gcc 4.2.1 </p> <pre class="wiki"> ~ gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/4.2.1 Apple LLVM version 9.0.0 (clang-900.0.39.2) Target: x86_64-apple-darwin17.3.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Fri, 13 Apr 2018 07:08:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10558#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10558#comment:9</guid> <description> <p> We are now in boost-1.66 and are releasing boost-1.66. </p> <p> Have you this problem in this version? </p> </description> <category>Ticket</category> </item> </channel> </rss>