Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 231259

Summary: Compiling kdevplatform fails with GCC 4.3 (boost includes redefinition error)
Product: Gentoo Linux Reporter: Jure Repinc <jlp.bugs>
Component: Current packagesAssignee: C++ Team [disbanded] <cpp+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: fauli, SebastianLuther
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 234902    
Bug Blocks:    

Description Jure Repinc 2008-07-09 03:18:43 UTC
After I upgraded to GCC 4.3.1 I could no longer compile kdevplatforma from KDE SVN trunk. It appears that some boost includes are causing some errors with GCC 4.3.

Reproducible: Always

Steps to Reproduce:
1. Try to compile kdevplatform from KDE SVN trunk or check out the testcase from this Boost bug report: http://svn.boost.org/trac/boost/ticket/1857
Actual Results:  
You get errors like
In file included from /home/kde-devel/kde/src/KDE/kdevplatform/plugins/teamwork/lib/network/messageimpl.cpp:23:
/usr/include/boost/serialization/vector.hpp:185: error: redefinition of ‘struct boost::serialization::implementation_level<std::vector<long int, std::allocator<long int> > >’
/usr/include/boost/serialization/vector.hpp:185: error: previous definition of ‘struct boost::serialization::implementation_level<std::vector<long int, std::allocator<long int> > >’
/usr/include/boost/serialization/vector.hpp:185: error: redefinition of ‘struct boost::serialization::implementation_level<std::vector<long unsigned int, std::allocator<long unsigned int> > >’
/usr/include/boost/serialization/vector.hpp:185: error: previous definition of ‘struct boost::serialization::implementation_level<std::vector<long unsigned int, std::allocator<long unsigned int> > >’

Expected Results:  
All should compile just fine.

While looking for more information on this problem I have found the Boost bug report: http://svn.boost.org/trac/boost/ticket/1857
Here it is mentioned that the problem is fixed but there is not more information what fix was used. It would be nice if someone with more knowhow could find the correct patch and add it to the ebuild.
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2008-11-01 20:36:23 UTC
What boost version did you use?
Comment 2 Jure Repinc 2008-11-01 23:41:42 UTC
It is dev-libs/boost-1.35.0-r2
Comment 3 Andreas Nilsson 2008-12-04 21:08:55 UTC
As I understand this is bug in a boost with newer GCC on 64bit platforms. It is fixed in >=1.36, so a versionbump may be in order.
Comment 4 Sebastian Luther (few) 2009-11-24 18:10:52 UTC
Does this happen with dev-libs/boost-1.35.0-r5?