Created attachment 363342 [details] thin-provisioning-tools-0.2.8-r1:20131115-195921.log sys-block/thin-provisioning-tools-0.2.8-r1 fails to build with Boost 1.55. ... [CXX] persistent-data/data-structures/bitset.cc persistent-data/data-structures/bitset.cc:201:1: error: reference to ‘bitset’ is ambiguous bitset::bitset(tm_ptr tm) ^ In file included from persistent-data/data-structures/bitset.cc:2:0: ./persistent-data/data-structures/bitset.h:49:8: note: candidates are: class persistent_data::bitset class bitset { ^ In file included from /usr/include/boost/detail/container_fwd.hpp:96:0, from /usr/include/boost/functional/hash/extensions.hpp:17, from /usr/include/boost/functional/hash/hash.hpp:540, from /usr/include/boost/functional/hash.hpp:6, from /usr/include/boost/intrusive/detail/utilities.hpp:33, from /usr/include/boost/intrusive/circular_list_algorithms.hpp:19, from ./persistent-data/cache.h:24, from ./persistent-data/block.h:23, from ./persistent-data/transaction_manager.h:22, from ./persistent-data/data-structures/btree.h:23, from ./persistent-data/data-structures/array.h:23, from persistent-data/data-structures/bitset.cc:1: /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include/g++-v4/bitset:748:11: note: template<long unsigned int _Nb> class std::bitset class bitset ^ persistent-data/data-structures/bitset.cc:201:1: error: ‘bitset’ does not name a type bitset::bitset(tm_ptr tm) ^ ... make: *** [persistent-data/data-structures/bitset.o] Error 1 * ERROR: sys-block/thin-provisioning-tools-0.2.8-r1::gentoo failed (compile phase): * emake failed
Created attachment 363374 [details, diff] prefix bitset with namespace to avoid ambiguity due to "using namespace" statements, there is an ambiguity between std::bitset and persistent_data::bitset. this patch fixes it for me.
(In reply to Denys Duchier from comment #1) > this patch fixes it for me. btw, my patch was merged upstream.
I'm having this same problem as I unmasked boost 1.55 for some development work. If the patch is rolled into a masked portage version I will gladly test it. Thanks!
InCVS.
*** Bug 508470 has been marked as a duplicate of this bug. ***
*** Bug 510328 has been marked as a duplicate of this bug. ***