[SERVER-62543] Unable to build unittests: error: 'log' is not a member of 'mongo::unittest' Created: 11/Jan/22  Updated: 27/Oct/23  Resolved: 25/Jan/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.2.17
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Adam Adam Assignee: Backlog - Triage Team
Resolution: Community Answered Votes: 0
Labels: tests
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-62544 Unable to build unittests: error: 'lo... Closed
is duplicated by SERVER-62544 Unable to build unittests: error: 'lo... Closed
Assigned Teams:
Server Triage
Operating System: ALL
Participants:

 Description   

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.



 Comments   
Comment by Dmitry Agranat [ 25/Jan/22 ]

acecile@le-vert.net, For this issue, we'd like to encourage you to start by asking our community for help by posting on the MongoDB Developer Community Forums. I would also recommend posting in our Community Forum system details (distro, version, etc), version of gcc or clang you are using, and exact SCons invocation.

Comment by Adam Adam [ 11/Jan/22 ]

Sorry, wrong version here, it's 4.4.11

Generated at Thu Feb 08 05:55:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.