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

Fails to compile with Boost 1.66

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.4
    • Component/s: Build
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.6
    • Steps To Reproduce:
      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
    • Sprint:
      Platforms 2018-03-26, Platforms 2018-04-09

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: