Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671422 - =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
Summary: =dev-libs/boost-1.67.0: dev-libs/mongo-cxx-driver-1.1.2-r1 : src/.../command_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: boost-1.71
  Show dependency tree
 
Reported: 2018-11-18 12:08 UTC by Toralf Förster
Modified: 2018-12-01 12:59 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.88 KB, text/plain)
2018-11-18 12:08 UTC, Toralf Förster
Details
dev-libs:mongo-cxx-driver-1.1.2-r1:20181118-115540.log (dev-libs:mongo-cxx-driver-1.1.2-r1:20181118-115540.log,20.89 KB, text/plain)
2018-11-18 12:08 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,315.97 KB, text/plain)
2018-11-18 12:08 UTC, Toralf Förster
Details
environment (environment,53.49 KB, text/plain)
2018-11-18 12:08 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,15.25 KB, application/x-bzip)
2018-11-18 12:08 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,2.86 KB, application/x-bzip)
2018-11-18 12:08 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,16.01 KB, application/x-bzip)
2018-11-18 12:08 UTC, Toralf Förster
Details
mongo-cxx-driver-1.1.2-boost-next.patch (mongo-cxx-driver-1.1.2-boost-next.patch,486 bytes, patch)
2018-11-20 23:36 UTC, Sergei Trofimovich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-11-18 12:08:34 UTC
src/mongo/client/command_writer.cpp: In member function ‘virtual void mongo::CommandWriter::write(const mongo::StringData&, const std::vector<mongo::WriteOperation*>&, bool, bool, const mongo::WriteConcern*, mongo::WriteResult*)’:
src/mongo/client/command_writer.cpp:68:78: error: ‘next’ is not a member of ‘boost’
    const std::vector<WriteOperation*>::const_iterator next = boost::next(batch_iter);
                                                                     ^~~~


  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib_libressl_20181110-220243

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems)
  [2]   ruby24 (with Rubygems)
  [3]   ruby25 (with Rubygems) *



emerge -qpvO dev-libs/mongo-cxx-driver
[ebuild   R   ] dev-libs/mongo-cxx-driver-1.1.2-r1  USE="libressl ssl -debug -sasl -static-libs"
Comment 1 Toralf Förster gentoo-dev 2018-11-18 12:08:37 UTC
Created attachment 555560 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-11-18 12:08:40 UTC
Created attachment 555562 [details]
dev-libs:mongo-cxx-driver-1.1.2-r1:20181118-115540.log
Comment 3 Toralf Förster gentoo-dev 2018-11-18 12:08:43 UTC
Created attachment 555564 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-11-18 12:08:46 UTC
Created attachment 555566 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-11-18 12:08:49 UTC
Created attachment 555568 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-11-18 12:08:52 UTC
Created attachment 555570 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-11-18 12:08:55 UTC
Created attachment 555572 [details]
temp.tbz2
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-20 10:08:56 UTC
I suggest handling in gentoo on the boost side.
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-20 23:08:31 UTC
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.
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-20 23:36:01 UTC
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.
Comment 12 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-25 13:31:00 UTC
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
Comment 13 Toralf Förster gentoo-dev 2018-11-25 16:51:43 UTC
Indeed, it is still not solved - tested it on this image with boost-1.67.0-r1
Comment 14 Larry the Git Cow gentoo-dev 2018-12-01 12:59:47 UTC
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(-)