Summary: | =dev-libs/boost-1.67.0: dev-libs/mongo-cxx-driver-1.1.2-r1 : src/.../command_writer.cpp:68:78: error: next is not a member of boost | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Ultrabug <ultrabug> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cpp+disabled, office, slyfox |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 671712 | ||
Attachments: |
emerge-info.txt
dev-libs:mongo-cxx-driver-1.1.2-r1:20181118-115540.log emerge-history.txt environment etc.portage.tbz2 logs.tbz2 temp.tbz2 mongo-cxx-driver-1.1.2-boost-next.patch |
Description
Toralf Förster
2018-11-18 12:08:34 UTC
Created attachment 555560 [details]
emerge-info.txt
Created attachment 555562 [details]
dev-libs:mongo-cxx-driver-1.1.2-r1:20181118-115540.log
Created attachment 555564 [details]
emerge-history.txt
Created attachment 555566 [details]
environment
Created attachment 555568 [details]
etc.portage.tbz2
Created attachment 555570 [details]
logs.tbz2
Created attachment 555572 [details]
temp.tbz2
it is a boost bug https://github.com/boostorg/lockfree/commit/12726cda009a855073b9bedbdce57b6ce7763da2.patch I suggest handling in gentoo on the boost side. I had closer look at it in dev-libs/mongo-cxx-driver. The package uses boost::next directly: src/mongo/client/wire_protocol_writer.cpp:80 const std::vector<WriteOperation*>::const_iterator next = boost::next(batch_iter); It should include headers that provide boost::next(): https://www.boost.org/doc/libs/1_67_0/libs/fusion/doc/html/fusion/iterator/functions/next.html Namely #include <boost/fusion/iterator/next.hpp> #include <boost/fusion/include/next.hpp> Assigning back to dev-libs/mongo-cxx-driver maintainer. Created attachment 555840 [details, diff]
mongo-cxx-driver-1.1.2-boost-next.patch
mongo-cxx-driver-1.1.2-boost-next.patch seems to be enough to fix build failure.
Toralf, does it build fine for you with boost-1.67.0-r1? I think it's a genuine mongo-cxx-driver bug. It still fails for me the same: src/mongo/client/command_writer.cpp:68:78: note: suggested alternative: 'exa' const std::vector<WriteOperation*>::const_iterator next = boost::next(batch_iter); ^~~~ exa Indeed, it is still not solved - tested it on this image with boost-1.67.0-r1 The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a49d1c1409f75c4af9bf5f539bc06c1c7950e03a commit a49d1c1409f75c4af9bf5f539bc06c1c7950e03a Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2018-12-01 12:59:21 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-12-01 12:59:39 +0000 dev-libs/mongo-cxx-driver: tweak for boost-167, bug #671422 Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/671422 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> .../files/mongo-cxx-driver-1.1.2-boost-next.patch | 21 +++++++++++++++++++++ .../mongo-cxx-driver-1.1.2-r1.ebuild | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) |