[SERVER-4178] Shared client doesn't compile - references code for server side components. Created: 31/Oct/11  Updated: 11/Jul/16  Resolved: 02/Nov/11

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: 2.0.0
Fix Version/s: 2.0.2, 2.1.0

Type: Bug Priority: Major - P3
Reporter: Douglas Hubler Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: compile
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Fedora 14 64bit
git sha b2910bcc5e55ee7d29f83476db0fd1c577690b71


Attachments: File 0001-SERVER-4178-shared-library-did-not-compile-needed-to.patch    
Operating System: Linux
Participants:

 Description   

Running this command
scons --prefix=/tmp/mongoroot --sharedclient --full all install

(attaching patch momentarily)

You get this error message
==================================
/home/dhubler/temp/mongodb-src-r2.0.0/db/security_commands.cpp:112: undefined reference to `mongo::CmdAuthenticate::getUserObj(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, mongo::BSONObj&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
/home/dhubler/temp/mongodb-src-r2.0.0/db/security_commands.cpp:136: undefined reference to `mongo::CmdAuthenticate::authenticate(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
db/security_commands.os: In function `CmdLogout':
/home/dhubler/temp/mongodb-src-r2.0.0/db/security_common.h:79: undefined reference to `vtable for mongo::CmdLogout'
collect2: ld returned 1 exit status
scons: *** [libmongoclient.so] Error 1



 Comments   
Comment by Eliot Horowitz (Inactive) [ 02/Nov/11 ]

this was resolved by a different commit:
https://github.com/mongodb/mongo/commit/c74b40f65ae1f88369bce99fe873516f77cbe4cc

Comment by Douglas Hubler [ 31/Oct/11 ]

patch to separate server side and client side code

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