Red Hat Bugzilla – Bug 509250
Conflict when using boost filesystem and c++0x
Last modified: 2013-08-09 01:48:57 EDT
Description of problem:
When compiling with g++ using the -std=c++0x the tr1 component of the standard library gets pulled in and this conflicts with boost/filesystem/operations.hpp making boost.filesystem useless. This bug is probably also found when using tr1 directly at the same time as boost.filesystem.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Write any code that makes use of boost filesystem
2. Compile with -std=c++0x
Compilation fails due to name collisions/conflicts
Compilation succeeds as expected
Full error messages and a patch are available upstream. Link to upstream bug provided. Only the boost/filesystem/operations.hpp portion of the patch is actually required since boost itself is not compiled with this option. The patch does not break anything and does not effect abi (therefore no rebuilding of deps required).
Backporting this patch would be very much appreciated. Thanks in advance
Turns out that no backporting is necessary, the patch applies flawlessly as it is. I've included it and built new boost release. Can you report back whether it fixes your problem?
I am using Fedora 11 but only new builds appear to be for Fedora 12. I have however already confirmed that the header modification solves the problem by manually editing the header file as per the patch on my local system.
Sorry, I don't know why I though that your problem is with Rawhide package. I'll spin F11 fix later today.
boost-1.37.0-7.fc11 has been submitted as an update for Fedora 11.
boost-1.37.0-7.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update boost'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-7430
boost-1.37.0-7.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.