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

Unable to build unittests: error: 'log' is not a member of 'mongo::unittest'

    • Type: Icon: Bug Bug
    • Resolution: Community Answered
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.2.17
    • Component/s: None
    • Server Triage
    • ALL

      Hello,

       

      I used to build my own MongoDB packages but 4.217 cannot be built correctly:

      src/mongo/client/mongo_uri_test.cpp: In member function 'virtual void mongo::{anonymous}::UnitTest_SuiteNameMongoURITestNamesrvRecordTest::_doTest()':
      src/mongo/client/mongo_uri_test.cpp:1005:19: error: 'log' is not a member of 'mongo::unittest'
       1005 |  mongo::unittest::log() << "Testing URI: " << test.uri << '\n';
            |                   ^~~

      It does really looks like a bug to me.

       

      Regards, Adam.

            Assignee:
            backlog-server-triage [HELP ONLY] Backlog - Triage Team
            Reporter:
            acecile@le-vert.net Adam Adam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: