Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4178

Shared client doesn't compile - references code for server side components.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.2, 2.1.0
    • Affects Version/s: 2.0.0
    • Component/s: Internal Client
    • Environment:
      Fedora 14 64bit
      git sha b2910bcc5e55ee7d29f83476db0fd1c577690b71
    • Linux

      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

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            dhubler Douglas Hubler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: