Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-33508

Fails to compile with Boost 1.66

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.4
    • Affects Version/s: None
    • Component/s: Build
    • Labels:
    • Fully Compatible
    • ALL
    • v3.6
    • Hide

      scons unittests --use-system-pcre --use-system-snappy --use-system-yaml --use-system-zlib --use-system-wiredtiger --use-sasl-client --ssl --disable-warnings-as-errors --use-system-boost

      With Boost 1.66 installed

      Show
      scons unittests --use-system-pcre --use-system-snappy --use-system-yaml --use-system-zlib --use-system-wiredtiger --use-sasl-client --ssl --disable-warnings-as-errors --use-system-boost With Boost 1.66 installed
    • Platforms 2018-03-26, Platforms 2018-04-09

      Mongo fails to compile with Boost 1.66.

      This change needs to be done:

      diff --git a/src/mongo/executor/network_interface_mock_test.cpp b/src/mongo/executor/network_interface_mock_test.cpp
      index b1a2e4edff..c41aad1f8c 100644
      --- a/src/mongo/executor/network_interface_mock_test.cpp
      +++ b/src/mongo/executor/network_interface_mock_test.cpp
      @@ -143,7 +143,7 @@ TEST_F(NetworkInterfaceMockTest, ConnectionHook) {
               [&](const HostAndPort& remoteHost) {
                   makeRequestCalled = true;
                   hostCorrectForRequest = (remoteHost == testHost());
      -            return boost::make_optional<RemoteCommandRequest>(expectedRequest);
      +            return boost::make_optional(expectedRequest);
               },
               [&](const HostAndPort& remoteHost, RemoteCommandResponse&& response) {
                   handleReplyCalled = true;
      
      

      Related to https://jira.mongodb.org/browse/SERVER-32516

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            mskalick Marek Skalický
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: