build/Debug/GNU-Linux-x86/_ext/1924343699/NpcFactory.o: In function `mongo::ourmalloc(unsigned long)': NpcFactory.cpp:(.text._ZN5mongo9ourmallocEm[mongo::ourmalloc(unsigned long)]+0x29): undefined reference to `mongo::printStackAndExit(int)' build/Debug/GNU-Linux-x86/_ext/1924343699/NpcFactory.o: In function `mongo::ourrealloc(void*, unsigned long)': NpcFactory.cpp:(.text._ZN5mongo10ourreallocEPvm[mongo::ourrealloc(void*, unsigned long)]+0x34): undefined reference to `mongo::printStackAndExit(int)' /tmp/cc5q1cl0.o: In function `mongo::DBException::traceIfNeeded(mongo::DBException const&)': mongo_client_lib.cpp:(.text+0x5be): undefined reference to `mongo::printStackTrace(std::basic_ostream >&)' /tmp/cc5q1cl0.o: In function `mongo::msgasserted(int, char const*)': mongo_client_lib.cpp:(.text+0xe99): undefined reference to `mongo::printStackTrace(std::basic_ostream >&)' /tmp/cc5q1cl0.o: In function `mongo::sayDbContext(char const*)': mongo_client_lib.cpp:(.text+0x2049): undefined reference to `mongo::printStackTrace(std::basic_ostream >&)' /tmp/cc5q1cl0.o: In function `mongo::PeriodicTask::Runner::run()': mongo_client_lib.cpp:(.text+0x2f57): undefined reference to `mongo::sleepsecs(int)' /tmp/cc5q1cl0.o: In function `mongo::task::Task::run()': mongo_client_lib.cpp:(.text+0xa93c): undefined reference to `mongo::sleepmillis(long long)' /tmp/cc5q1cl0.o: In function `mongo::ReplicaSetMonitor::_check(bool)': mongo_client_lib.cpp:(.text+0x2953d): undefined reference to `mongo::sleepsecs(int)' /tmp/cc5q1cl0.o: In function `mongo::compareDottedFieldNames(std::basic_string, std::allocator > const&, std::basic_string, std::allocator > const&, mongo::LexNumCmp const&)': mongo_client_lib.cpp:(.text+0x2e998): undefined reference to `mongo::LexNumCmp::cmp(char const*, char const*) const' /tmp/cc5q1cl0.o: In function `mongo::BSONIteratorSorted::ElementFieldCmp::ElementFieldCmp(bool)': mongo_client_lib.cpp:(.text+0x31d85): undefined reference to `mongo::LexNumCmp::LexNumCmp(bool)' /tmp/cc5q1cl0.o: In function `mongo::BSONIteratorSorted::ElementFieldCmp::ElementFieldCmp(bool)': mongo_client_lib.cpp:(.text+0x31db1): undefined reference to `mongo::LexNumCmp::LexNumCmp(bool)' /tmp/cc5q1cl0.o: In function `mongo::BSONIteratorSorted::ElementFieldCmp::operator()(char const*, char const*) const': mongo_client_lib.cpp:(.text+0x31de7): undefined reference to `mongo::LexNumCmp::operator()(char const*, char const*) const' /tmp/cc5q1cl0.o: In function `mongo::breakpoint()': mongo_client_lib.cpp:(.text._ZN5mongo10breakpointEv[mongo::breakpoint()]+0xf): undefined reference to `mongo::mongo_breakpoint()' /tmp/cc5q1cl0.o: In function `mongo::BSONObjBuilderValueStream::operator<<(mongo::DateNowLabeler&)': mongo_client_lib.cpp:(.text._ZN5mongo25BSONObjBuilderValueStreamlsERNS_14DateNowLabelerE[mongo::BSONObjBuilderValueStream::operator<<(mongo::DateNowLabeler&)]+0x12): undefined reference to `mongo::jsTime()' /tmp/cc5q1cl0.o: In function `mongo::Timer::micros() const': mongo_client_lib.cpp:(.text._ZNK5mongo5Timer6microsEv[mongo::Timer::micros() const]+0x2c): undefined reference to `mongo::Timer::_countsPerSecond' /tmp/cc5q1cl0.o: In function `mongo::Timer::now() const': mongo_client_lib.cpp:(.text._ZNK5mongo5Timer3nowEv[mongo::Timer::now() const]+0xd): undefined reference to `mongo::curTimeMicros64()' /tmp/cc5q1cl0.o: In function `mongo::LoggingManager::start(std::basic_string, std::allocator > const&, bool)': mongo_client_lib.cpp:(.text._ZN5mongo14LoggingManager5startERKSsb[mongo::LoggingManager::start(std::basic_string, std::allocator > const&, bool)]+0x1fa): undefined reference to `mongo::terseCurrentTime(bool)' /tmp/cc5q1cl0.o: In function `mongo::LoggingManager::rotate()': mongo_client_lib.cpp:(.text._ZN5mongo14LoggingManager6rotateEv[mongo::LoggingManager::rotate()]+0xb8): undefined reference to `mongo::terseCurrentTime(bool)' /tmp/cc5q1cl0.o: In function `mongo::ReplicaSetMonitorWatcher::run()': mongo_client_lib.cpp:(.text._ZN5mongo24ReplicaSetMonitorWatcher3runEv[mongo::ReplicaSetMonitorWatcher::run()]+0x4a): undefined reference to `mongo::sleepsecs(int)' collect2: ld returned 1 exit status