[SERVER-10068] authentication_table.cpp missing from src\mongo\client\mongo_client_lib.cpp Created: 01/Jul/13  Updated: 10/Dec/14  Resolved: 13/Aug/13

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: 2.4.4
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Raul Guerrero Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7 x64 MSVC 2012 Boost 1.42


Operating System: ALL
Steps To Reproduce:

Open the simple_client_demo VS project.
Add all needed include paths for the project to run.
Run the project.

Participants:

 Description   

I've been trying to get the C++ client driver to work on Windows, but I haven't been able to build a simple example.

The error I'm getting is this:
src\mongo\client\mongo_client_lib.cpp(68): fatal error C1083: Cannot open include file: 'authentication_table.cpp': No such file or directory



 Comments   
Comment by Stennie Steneker (Inactive) [ 13/Aug/13 ]

Hi Raul,

Sorry you had difficulties getting the C++ driver to work on Windows.

As per Andrew's reply, the mongo_client_lib.cpp approach to building the client library is deprecated.

We are working on improving the C++ build process on Windows including issues like SERVER-9771 (support for building the C++ driver as a DLL on Windows).

Per your comment, I will close this issue.

Thanks,
Stephen

Comment by Raul Guerrero [ 12/Aug/13 ]

Hi Andrew,

This issue has been open for a while, I never got around to get the C++ mongo driver to work in Windows so I just gave up, for the moment we moved the services we have on C++ to Java, and the ones we couldn't, the new POCO C++ library version has a basic mongo driver implemented by themselves, and it works like a charm, it still doesn't support as much features as the Java version, but supports the basic CRUDs and searches, and, unlike the official one, this one builds easily in all platforms that POCO supports.
Could you please close this one? it wasn't resolved but from what you said, it will never be.
thanks

Comment by Andrew Morrow (Inactive) [ 02/Jul/13 ]

Hi Raul -

The mongo_client_lib.cpp approach to building the client library should be considered deprecated (it is not maintained and is slated for removal). The file that it is referencing was deleted on master last year.

Thanks,
Andrew

Comment by Raul Guerrero [ 01/Jul/13 ]

After removing the include file from mongo_client_lib.cpp, I still get all this build errors:

1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl mongo::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class mongo::StringData const &)" (??6mongo@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV12@ABVStringData@0@@Z) referenced in function "public: virtual class mongo::Logstream & __thiscall mongo::Logstream::operator<<(class mongo::StringData const &)" (??6Logstream@mongo@@UAEAAV01@ABVStringData@1@@Z)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "public: static char const * __cdecl mongo::ErrorCodes::errorString(enum mongo::ErrorCodes::Error)" (?errorString@ErrorCodes@mongo@@SAPBDW4Error@12@@Z) referenced in function "public: char const * __thiscall mongo::Status::codeString(void)const " (?codeString@Status@mongo@@QBEPBDXZ)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "public: __thiscall mongo::Status::Status(enum mongo::ErrorCodes::Error,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (??0Status@mongo@@QAE@W4Error@ErrorCodes@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function "private: class mongo::Status __thiscall mongo::JParse::parseError(class mongo::StringData const &)" (?parseError@JParse@mongo@@AAE?AVStatus@2@ABVStringData@2@@Z)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "public: _thiscall mongo::Status::Status(enum mongo::ErrorCodes::Error,char const ,int)" (??0Status@mongo@@QAE@W4Error@ErrorCodes@1@PBDH@Z) referenced in function "public: static class mongo::Status __cdecl mongo::Logstream::registerExtraLogContextFn(void (_cdecl)(class mongo::_BufBuilder<class mongo::TrivialAllocator> &))" (?registerExtraLogContextFn@Logstream@mongo@@SA?AVStatus@2@P6AXAAV?$_BufBuilder@VTrivialAllocator@mongo@@@2@@Z@Z)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "public: __thiscall mongo::Status::Status(class mongo::Status const &)" (??0Status@mongo@@QAE@ABV01@@Z) referenced in function "protected: virtual void __thiscall mongo::DBClientWithCommands::_auth(class mongo::BSONObj const &)" (?_auth@DBClientWithCommands@mongo@@MAEXABVBSONObj@2@@Z)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "public: __thiscall mongo::Status::~Status(void)" (??1Status@mongo@@QAE@XZ) referenced in function "public: class std::vector<class mongo::BSONElement,class std::allocator<class mongo::BSONElement> > __thiscall mongo::BSONElement::Array(void)const " (?Array@BSONElement@mongo@@QBE?AV?$vector@VBSONElement@mongo@@V?$allocator@VBSONElement@mongo@@@std@@@std@@XZ)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "public: bool __thiscall mongo::Status::operator!=(class mongo::Status const &)const " (??9Status@mongo@@QBE_NABV01@@Z) referenced in function "private: bool __thiscall mongo::JParse::acceptField(class mongo::StringData const &)" (?acceptField@JParse@mongo@@AAE_NABVStringData@2@@Z)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "private: static struct mongo::Status::ErrorInfo * __cdecl mongo::Status::getOKInfo(void)" (?getOKInfo@Status@mongo@@CAPAUErrorInfo@12@XZ) referenced in function "public: static class mongo::Status __cdecl mongo::Status::OK(void)" (?OK@Status@mongo@@SA?AV12@XZ)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "private: __thiscall mongo::Status::Status(struct mongo::Status::ErrorInfo *)" (??0Status@mongo@@AAE@PAUErrorInfo@01@@Z) referenced in function "public: static class mongo::Status __cdecl mongo::Status::OK(void)" (?OK@Status@mongo@@SA?AV12@XZ)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl mongo::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,enum mongo::ErrorCodes::Error)" (??6mongo@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV12@W4Error@ErrorCodes@0@@Z) referenced in function "class mongo::BSONObj __cdecl mongo::fromjson(char const *,int *)" (?fromjson@mongo@@YA?AVBSONObj@1@PBDPAH@Z)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "class mongo::Status __cdecl mongo::parseNumberFromStringWithBase<long>(class mongo::StringData const &,int,long *)" (??$parseNumberFromStringWithBase@J@mongo@@YA?AVStatus@0@ABVStringData@0@HPAJ@Z) referenced in function "private: void __thiscall mongo::BSONArrayBuilder::fill(class mongo::StringData const &)" (?fill@BSONArrayBuilder@mongo@@AAEXABVStringData@2@@Z)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "public: _thiscall mongo::GlobalInitializerRegisterer::GlobalInitializerRegisterer(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class boost::function<class mongo::Status __cdecl(class mongo::InitializerContext *)> const &,class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > const &,class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > const &)" (0GlobalInitializerRegisterer@mongo@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$function@$$A6A?AVStatus@mongo@@PAVInitializerContext@2@@Z@boost@@ABV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@3@2@Z) referenced in function "void __cdecl mongo::`anonymous namespace'::`dynamic initializer for '_mongoInitializerRegisterer_throwSockExcep''(void)" (_E_mongoInitializerRegisterer_throwSockExcep@?A0x335d1ab3@mongo@@YAXXZ)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > _cdecl mongo::_makeStringVector(int,...)" (?_makeStringVector@mongo@@YA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@HZZ) referenced in function "void __cdecl mongo::`anonymous namespace'::`dynamic initializer for '_mongoInitializerRegisterer_throwSockExcep''(void)" (??_E_mongoInitializerRegisterer_throwSockExcep@?A0x335d1ab3@mongo@@YAXXZ)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "public: _thiscall mongo::FailPoint::FailPoint(void)" (0FailPoint@mongo@@QAE@XZ) referenced in function "void __cdecl mongo::`dynamic initializer for 'throwSockExcep''(void)" (_EthrowSockExcep@mongo@@YAXXZ)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "public: void __thiscall mongo::FailPoint::shouldFailCloseBlock(void)" (?shouldFailCloseBlock@FailPoint@mongo@@QAEXXZ) referenced in function "public: bool __thiscall mongo::FailPoint::shouldFail(void)" (?shouldFail@FailPoint@mongo@@QAE_NXZ)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "private: enum mongo::FailPoint::RetCode __thiscall mongo::FailPoint::slowShouldFailOpenBlock(void)" (?slowShouldFailOpenBlock@FailPoint@mongo@@AAE?AW4RetCode@12@XZ) referenced in function "public: enum mongo::FailPoint::RetCode __thiscall mongo::FailPoint::shouldFailOpenBlock(void)" (?shouldFailOpenBlock@FailPoint@mongo@@QAE?AW4RetCode@12@XZ)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "public: class mongo::Status __thiscall mongo::FailPointRegistry::addFailPoint(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class mongo::FailPoint *)" (?addFailPoint@FailPointRegistry@mongo@@QAE?AVStatus@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVFailPoint@2@@Z) referenced in function "class mongo::Status __cdecl mongo::_mongoInitializerFunction_throwSockExcep(class mongo::InitializerContext *)" (?_mongoInitializerFunction_throwSockExcep@mongo@@YA?AVStatus@1@PAVInitializerContext@1@@Z)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "class mongo::FailPointRegistry * __cdecl mongo::getGlobalFailPointRegistry(void)" (?getGlobalFailPointRegistry@mongo@@YAPAVFailPointRegistry@1@XZ) referenced in function "class mongo::Status __cdecl mongo::_mongoInitializerFunction_throwSockExcep(class mongo::InitializerContext *)" (?_mongoInitializerFunction_throwSockExcep@mongo@@YA?AVStatus@1@PAVInitializerContext@1@@Z)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "class mongo::Status __cdecl mongo::validateBSON(char const *,unsigned __int64)" (?validateBSON@mongo@@YA?AVStatus@1@PBD_K@Z) referenced in function "public: class mongo::BSONObj __thiscall mongo::DbMessage::nextJsObj(void)" (?nextJsObj@DbMessage@mongo@@QAE?AVBSONObj@2@XZ)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "class mongo::Status __cdecl mongo::bsonExtractStringField(class mongo::BSONObj const &,class mongo::StringData const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *)" (?bsonExtractStringField@mongo@@YA?AVStatus@1@ABVBSONObj@1@ABVStringData@1@PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "protected: virtual void __thiscall mongo::DBClientWithCommands::_auth(class mongo::BSONObj const &)" (?_auth@DBClientWithCommands@mongo@@MAEXABVBSONObj@2@@Z)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "class mongo::Status __cdecl mongo::bsonExtractBooleanFieldWithDefault(class mongo::BSONObj const &,class mongo::StringData const &,bool,bool *)" (?bsonExtractBooleanFieldWithDefault@mongo@@YA?AVStatus@1@ABVBSONObj@1@ABVStringData@1@_NPA_N@Z) referenced in function "protected: virtual void __thiscall mongo::DBClientWithCommands::_auth(class mongo::BSONObj const &)" (?_auth@DBClientWithCommands@mongo@@MAEXABVBSONObj@2@@Z)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "public: static class mongo::SecureRandom * __cdecl mongo::SecureRandom::create(void)" (?create@SecureRandom@mongo@@SAPAV12@XZ) referenced in function "private: static struct mongo::OID::MachineAndPid __cdecl mongo::OID::genMachineAndPid(void)" (?genMachineAndPid@OID@mongo@@CA?AUMachineAndPid@12@XZ)
1>mongo_client_lib.obj : error LNK2019: unresolved external symbol "class mongo::Status __cdecl mongo::parseNumberFromStringWithBase<unsigned int>(class mongo::StringData const &,int,unsigned int *)" ($parseNumberFromStringWithBase@I@mongo@@YA?AVStatus@0@ABVStringData@0@HPAI@Z) referenced in function "class mongo::Status __cdecl mongo::parseNumberFromString<unsigned int>(class mongo::StringData const &,unsigned int *)" ($parseNumberFromString@I@mongo@@YA?AVStatus@0@ABVStringData@0@PAI@Z)
1>mongo_client_lib.obj : error LNK2001: unresolved external symbol "class mongo::Status (__cdecl* mongo::saslClientAuthenticate)(class mongo::DBClientWithCommands *,class mongo::BSONObj const &)" (?saslClientAuthenticate@mongo@@3P6A?AVStatus@1@PAVDBClientWithCommands@1@ABVBSONObj@1@@ZA)
1>mongo_client_lib.obj : error LNK2001: unresolved external symbol "char const * const mongo::saslCommandMechanismFieldName" (?saslCommandMechanismFieldName@mongo@@3QBDB)
1>mongo_client_lib.obj : error LNK2001: unresolved external symbol "char const * const mongo::saslCommandPasswordFieldName" (?saslCommandPasswordFieldName@mongo@@3QBDB)
1>mongo_client_lib.obj : error LNK2001: unresolved external symbol "char const * const mongo::saslCommandPrincipalFieldName" (?saslCommandPrincipalFieldName@mongo@@3QBDB)
1>mongo_client_lib.obj : error LNK2001: unresolved external symbol "char const * const mongo::saslCommandPrincipalSourceFieldName" (?saslCommandPrincipalSourceFieldName@mongo@@3QBDB)
1>mongo_client_lib.obj : error LNK2001: unresolved external symbol "char const * const mongo::saslCommandDigestPasswordFieldName" (?saslCommandDigestPasswordFieldName@mongo@@3QBDB)
1>C:\mongodb-src-r2.4.4\src\mongo\client\examples\Debug\simple_client_demo.exe : fatal error LNK1120: 29 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Comment by Raul Guerrero [ 01/Jul/13 ]

I've also looked at the github repository, and the file is missing in there as well.

Generated at Thu Feb 08 03:22:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.