Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491364 - sys-block/thin-provisioning-tools-0.2.8-r1 with dev-libs/boost-1.55 - persistent-data/data-structures/bitset.cc:201:1: error: reference to ‘bitset’ is ambiguous
Summary: sys-block/thin-provisioning-tools-0.2.8-r1 with dev-libs/boost-1.55 - persist...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: Normal normal with 1 vote (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PATCH
: 508470 510328 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-15 20:08 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2014-05-16 10:34 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
thin-provisioning-tools-0.2.8-r1:20131115-195921.log (thin-provisioning-tools-0.2.8-r1:20131115-195921.log,30.62 KB, text/x-log)
2013-11-15 20:08 UTC, Arfrever Frehtes Taifersar Arahesis
Details
prefix bitset with namespace to avoid ambiguity (bitset.patch,3.57 KB, patch)
2013-11-16 16:56 UTC, Denys Duchier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2013-11-15 20:08:28 UTC
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
Comment 1 Denys Duchier 2013-11-16 16:56:44 UTC
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.
Comment 2 Denys Duchier 2013-11-18 19:05:31 UTC
(In reply to Denys Duchier from comment #1)
> this patch fixes it for me.

btw, my patch was merged upstream.
Comment 3 Michael Behrns-Miller 2013-12-14 03:31:19 UTC
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!
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-12-28 00:37:28 UTC
InCVS.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2014-05-12 11:57:02 UTC
*** Bug 508470 has been marked as a duplicate of this bug. ***
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2014-05-16 10:34:17 UTC
*** Bug 510328 has been marked as a duplicate of this bug. ***