Boost C++ Libraries: Ticket #1857: IA64, GCC 4.3, redefinition of 'struct boost::serialization::implementation_level<std::vector<long int, std::allocator<long int> > >' https://svn.boost.org/trac10/ticket/1857 <p> Hi, </p> <p> I get the following error message compiling with gcc 4.3.0 on ia64: </p> <pre class="wiki">/usr/local/include/boost/serialization/vector.hpp:185: error: redefinition of 'struct boost::serialization::implementation_level&lt;std::vector&lt;long int, std::allocator&lt;long int&gt; &gt; &gt;' /usr/local/include/boost/serialization/vector.hpp:185: error: previous definition of 'struct boost::serialization::implementation_level&lt;std::vector&lt;long int, std::allocator&lt;long int&gt; &gt; &gt;' /usr/local/include/boost/serialization/vector.hpp:185: error: redefinition of 'struct boost::serialization::implementation_level&lt;std::vector&lt;long unsigned int, std::allocator&lt;long unsigned int&gt; &gt; &gt;' /usr/local/include/boost/serialization/vector.hpp:185: error: previous definition of 'struct boost::serialization::implementation_level&lt;std::vector&lt;long unsigned int, std::allocator&lt;long unsigned int&gt; &gt; &gt;' </pre><p> This error can be reproduced with this small example </p> <pre class="wiki">#include &lt;boost/serialization/vector.hpp&gt; int main() { return 0; } </pre><p> Removing the lines </p> <pre class="wiki"> BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(signed long, C) \ BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(unsigned long, C) \ </pre><p> from boost/serialization/collection_traits.hpp solves this problem for me. </p> <p> Thanks for considering this issue. </p> <p> Stefan </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1857 Trac 1.4.3 Robert Ramey Tue, 06 May 2008 15:05:16 GMT <link>https://svn.boost.org/trac10/ticket/1857#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1857#comment:1</guid> <description> <p> Hmmmmmm - I don't think removing the above lines is a great idea. This would make your archives which use vectors unusable for programs built with a different compiler. </p> <p> This needs to be investigated some more. Is it possible that on this compiler "long int" is a synonym for some other type such that is also in the list? e.g int64_t ? </p> <p> As I said - needs more consideration. </p> <p> Robert Ramey </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Tue, 06 May 2008 15:05:35 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/1857#comment:2 https://svn.boost.org/trac10/ticket/1857#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket anonymous Thu, 08 May 2008 04:54:01 GMT <link>https://svn.boost.org/trac10/ticket/1857#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1857#comment:3</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/1857#comment:2" title="Comment 2">ramey</a>: </p> <p> You could test it by moving the declaration of line 185 to the front. Then the "bad" declarations should cause the error. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Tue, 10 Jun 2008 20:42:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1857#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1857#comment:4</guid> <description> <p> I think this has been addressed by fixing another problem. We'll keep an eye on it. </p> <p> Robert Ramey </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Tue, 10 Jun 2008 20:42:45 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1857#comment:5 https://svn.boost.org/trac10/ticket/1857#comment:5 <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> Ticket jlp@… Mon, 16 Jun 2008 12:04:31 GMT <link>https://svn.boost.org/trac10/ticket/1857#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1857#comment:6</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/1857#comment:4" title="Comment 4">ramey</a>: </p> <blockquote class="citation"> <p> I think this has been addressed by fixing another problem. We'll keep an eye on it. </p> </blockquote> <p> I have this same problem with GCC 4.3.1 on AMD64 on Linux and I would like to ask you which one was the other fix so I can test it here. </p> </description> <category>Ticket</category> </item> <item> <author>stefaan.deroeck@…</author> <pubDate>Sun, 24 Aug 2008 11:50:06 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1857#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1857#comment:7</guid> <description> <p> But it seems this was already fixed in the 1.36 release, my apologies. I should have been more thorough. </p> </description> <category>Ticket</category> </item> <item> <author>f.a.oliehoek@…</author> <pubDate>Wed, 15 Oct 2008 10:39:04 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1857#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1857#comment:8</guid> <description> <p> Hi, </p> <p> I am a bit confused here. What exactly was fixed "I think this has been addressed by fixing another problem" ? Is there a simple way to get it working on my current debian/lenny distro on AMD64? Should I follow the advise of Stefan Eckardt? </p> <p> (versions that are currently installed: ii libboost-serialization1.34.1 1.34.1-11 serialization library for C++ ii g++ 4:4.3.2-2 The GNU C++ compiler ) </p> <p> Or will version 1.34/35 simply not work? And is the only solution to upgrade to 1.36? (something I'd rather not do, as I've had bad experiences with upgrading to new boost versions) </p> <p> Thanks, Frans </p> </description> <category>Ticket</category> </item> <item> <author>fa.oliehoek@…</author> <pubDate>Wed, 15 Oct 2008 10:48:09 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1857#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1857#comment:9</guid> <description> <p> p.s.: It seems that the problem hit me since the gcc upgrade: </p> <p> [2008-10-06] gcc-4.3 4.3.2-1 MIGRATED to testing (Britney) <a class="ext-link" href="http://packages.qa.debian.org/g/gcc-4.3.html"><span class="icon">​</span>http://packages.qa.debian.org/g/gcc-4.3.html</a> </p> <p> Thanks! </p> </description> <category>Ticket</category> </item> <item> <author>gary.mirams@…</author> <pubDate>Thu, 21 May 2009 10:41:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1857#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1857#comment:10</guid> <description> <p> See this website for a quick fix: <a class="ext-link" href="http://www.nabble.com/-usr-include-boost-serialization-vector.hpp:126:-error:-td20801412.html"><span class="icon">​</span>http://www.nabble.com/-usr-include-boost-serialization-vector.hpp:126:-error:-td20801412.html</a> </p> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/1857#comment:9" title="Comment 9">fa.oliehoek@uva.nl</a>: </p> <blockquote class="citation"> <p> p.s.: It seems that the problem hit me since the gcc upgrade: </p> <p> [2008-10-06] gcc-4.3 4.3.2-1 MIGRATED to testing (Britney) <a class="ext-link" href="http://packages.qa.debian.org/g/gcc-4.3.html"><span class="icon">​</span>http://packages.qa.debian.org/g/gcc-4.3.html</a> </p> <p> Thanks! </p> </blockquote> </description> <category>Ticket</category> </item> </channel> </rss>