Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 704128 - dev-libs/boost-1.72.0: missing include: error: ‘begin’ is not a member of ‘boost’
Summary: dev-libs/boost-1.72.0: missing include: error: ‘begin’ is not a member of ‘bo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: David Seifert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-28 23:27 UTC by Louis Sautier (sbraz)
Modified: 2019-12-29 13:06 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Sautier (sbraz) gentoo-dev 2019-12-28 23:27:38 UTC
I have opened an upstream issue for this problem. The build stops after:
cd /var/tmp/portage/net-analyzer/icinga2-2.11.2/work/icinga2-2.11.2_build/lib/base && /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DBOOST_COROUTINES_NO_DEPRECATION_WARNING -DBOOST_FILESYSTEM_NO_DEPRECATED -I/var/tmp/portage/net-analyzer/icinga2-2.11.2/work/icinga2-2.11.2/third-party/nlohmann_json -I/var/tmp/portage/net-analyzer/icinga2-2.11.2/work/icinga2-2.11.2/third-party/utf8cpp/source -I/var/tmp/portage/net-analyzer/icinga2-2.11.2/work/icinga2-2.11.2 -I/var/tmp/portage/net-analyzer/icinga2-2.11.2/work/icinga2-2.11.2/lib -I/var/tmp/portage/net-analyzer/icinga2-2.11.2/work/icinga2-2.11.2_build -I/var/tmp/portage/net-analyzer/icinga2-2.11.2/work/icinga2-2.11.2_build/lib -I/var/tmp/portage/net-analyzer/icinga2-2.11.2/work/icinga2-2.11.2/third-party/execvpe -I/var/tmp/portage/net-analyzer/icinga2-2.11.2/work/icinga2-2.11.2/third-party/mmatch -I/var/tmp/portage/net-analyzer/icinga2-2.11.2/work/icinga2-2.11.2/third-party/socketpair   -DNDEBUG -O2 -pipe -march=native -lpthread  -pthread -Winvalid-pch -std=c++0x   -o CMakeFiles/base.dir/io-engine.cpp.o -c /var/tmp/portage/net-analyzer/icinga2-2.11.2/work/icinga2-2.11.2/lib/base/io-engine.cpp
In file included from /usr/include/boost/coroutine/coroutine.hpp:10,
                 from /usr/include/boost/coroutine/all.hpp:11,
                 from /usr/include/boost/asio/spawn.hpp:19,
                 from /var/tmp/portage/net-analyzer/icinga2-2.11.2/work/icinga2-2.11.2/lib/base/io-engine.hpp:16,
                 from /var/tmp/portage/net-analyzer/icinga2-2.11.2/work/icinga2-2.11.2/lib/base/io-engine.cpp:4:
/usr/include/boost/coroutine/asymmetric_coroutine.hpp: In function ‘typename boost::coroutines::pull_coroutine<R>::iterator boost::coroutines::begin(boost::coroutines::pull_coroutine<Arg>&)’:
/usr/include/boost/coroutine/asymmetric_coroutine.hpp:2364:17: error: ‘begin’ is not a member of ‘boost’
 2364 | { return boost::begin( c); }
      |                 ^~~~~
Comment 1 Louis Sautier (sbraz) gentoo-dev 2019-12-29 11:41:11 UTC
As icinga's dev found out, this is actually a boost bug listed in KNOWN ISSUES:
https://www.boost.org/users/history/version_1_72_0.html
The following patch fixes the problem:
https://www.boost.org/patches/1_72_0/0001-revert-cease-dependence-on-range.patch

Can you guys please add it to boost?
Comment 2 Larry the Git Cow gentoo-dev 2019-12-29 13:06:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51a79e39c1005fe618fe146872a931ce4ae2035c

commit 51a79e39c1005fe618fe146872a931ce4ae2035c
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2019-12-29 13:06:01 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2019-12-29 13:06:01 +0000

    dev-libs/boost: Include patch for net-analyzer/icinga2
    
    Closes: https://bugs.gentoo.org/704128
    Package-Manager: Portage-2.3.83, Repoman-2.3.20
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-libs/boost/boost-1.72.0.ebuild                 |  2 +
 ...t-1.72.0-revert-cease-dependence-on-range.patch | 49 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)