/usr/include/mongo/client/../pch.h:116:15: error: expected unqualified-id before string constant
FlowTable.cc: In the function ‘void FlowTable::initNLListener()’:FlowTable.cc:144:68: error: ‘nl_cache_mngr_add_cache’ was not declared in this scope
CXXLD rfclient
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(sock.o): In function `mongo::Socket::~Socket()':
(.text+0x1086): undefined reference to `SSL_shutdown'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(sock.o): In function `mongo::Socket::~Socket()':
(.text+0x1092): rundefined reference to `SSL_free'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(sock.o): In function `mongo::Socket::_handleSendError(int, char const*)':
(.text+0x2276): undefined reference to `SSL_get_error'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::SSLManager(mongo::SSLParams const&)':
(.text+0x1cf5): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::cleanupThreadLocals()':
(.text+0x2c3): undefined reference to `ERR_remove_state'
collect2: error: ld returned 1 exit status
make[1]: *** [rfclient] Error 1
The ssl library is missing. Install it with apt-get install libssl-dev
And add -lssl -lcryptoddo makefile.
It should resolve the problem.
Cheers,
Trung