Hi,
I would like to port some changes that I developed for MongoDB v4.2 to v4.4, however I’m not able to build the database of the latter branch.
Build command:
python3 buildscripts/scons.py CC=gcc-8 CXX=g++-8 mongod
Errors:
src/mongo/db/auth/role_graph_builtin_roles.cpp: In function ‘mongo::Status mongo::{anonymous}::_mongoInitializerFunction_AuthorizationBuiltinRoles(mongo::InitializerContext*)’:
src/mongo/db/auth/role_graph_builtin_roles.cpp:182:24: error: ‘getDefaultRWConcern’ is not a member of ‘mongo::ActionType’
<< ActionType::getDefaultRWConcern // clusterManager gets this also
^~~~~~~~~~~~~~~~~~~
src/mongo/db/auth/role_graph_builtin_roles.cpp:247:24: error: ‘getDefaultRWConcern’ is not a member of ‘mongo::ActionType’
<< ActionType::getDefaultRWConcern // clusterMonitor gets this also
^~~~~~~~~~~~~~~~~~~
src/mongo/db/auth/role_graph_builtin_roles.cpp:248:24: error: ‘setDefaultRWConcern’ is not a member of ‘mongo::ActionType’
<< ActionType::setDefaultRWConcern
^~~~~~~~~~~~~~~~~~~
src/mongo/db/auth/role_graph_builtin_roles.cpp:258:24: error: ‘refineCollectionShardKey’ is not a member of ‘mongo::ActionType’
<< ActionType::refineCollectionShardKey;
^~~~~~~~~~~~~~~~~~~~~~~~
src/mongo/db/auth/role_graph_builtin_roles.cpp: In function ‘void mongo::{anonymous}::addEnableShardingPrivileges(mongo::PrivilegeVector*)’:
src/mongo/db/auth/role_graph_builtin_roles.cpp:311:49: error: ‘refineCollectionShardKey’ is not a member of ‘mongo::ActionType’
enableShardingActions.addAction(ActionType::refineCollectionShardKey);
^~~~~~~~~~~~~~~~~~~~~~~~
Compiling build/opt/mongo/s/client/parallel.o"
It seems like scons is not able to generate the actionType’s source file, what should I do?
Thank you