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

Enterprise builds failing to compile with lint failure

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL

      http://mci.10gen.com/ui/task/mongodb_mongo_master_enterprise_ubuntu1204_64_f6a77ea2f6ae26f8408055f395ccc000db6008a8_13_07_29_20_40_06_compile
      http://mci.10gen.com/ui/task/mongodb_mongo_master_enterprise_rhel_62_64_bit_f6a77ea2f6ae26f8408055f395ccc000db6008a8_13_07_29_20_40_06_compile

      configuring module: enterprise
      Checking for C++ header file net-snmp/net-snmp-config.h... (cached) yes
      Checking for sasl_version_info(0, 0, 0, 0, 0, 0) in C library sasl2...
      (cached) yes
      Checking for C library gssapi_krb5...
      (cached) yes
      Checking if __malloc_hook is declared volatile...
      (cached) yes
      scons: done reading SConscript files.
      scons: Building targets ...
      doLint(["lint"], [])
      src/mongo/db/modules/enterprise/src/audit/audit_event.h:51: The class AuditEvent probably needs a virtual destructor due to having virtual method(s), one declared at line 85. [runtime/virtual] [4]
      Heartbeat sent successfully at 2013-07-29 21:19:30.173582097 +0000 UTC
      Category 'runtime/virtual' errors found: 1
      Total errors found: 1
      scons: *** [lint] Exception : lint errors
      Traceback (most recent call last):
      File "/usr/lib/scons/SCons/Action.py", line 1062, in execute
      result = self.execfunction(target=target, source=rsources, env=env)
      File "/data/mci/compile/git@github.commongodb/mongo.git/master/SConstruct", line 1360, in doLint
      raise Exception( "lint errors" )
      Exception: lint errors
      scons: building terminated because of errors.
      

      https://mci.10gen.com/ui/task/mongodb_mongo_master_enterprise_rhel_57_64_bit_f6a77ea2f6ae26f8408055f395ccc000db6008a8_13_07_29_20_40_06_compile

      cc1plus: warnings being treated as errors
      src/mongo/db/modules/enterprise/src/audit/audit_event.h:51: warning: 'class mongo::audit::AuditEvent' has virtual functions but non-virtual destructor
      scons: *** [build/linux2/ssl/mongo/db/modules/enterprise/src/audit/audit.o] Error 1
      cc1plus: warnings being treated as errors
      src/mongo/db/modules/enterprise/src/audit/audit_event.h:51: warning: 'class mongo::audit::AuditEvent' has virtual functions but non-virtual destructor
      src/mongo/db/modules/enterprise/src/audit/audit_event.h: In copy constructor 'mongo::audit::AuthenticationEvent::AuthenticationEvent(const mongo::audit::AuthenticationEvent&)':
      src/mongo/db/modules/enterprise/src/audit/audit_event.h:52: error: 'mongo::audit::AuditEvent::AuditEvent(const mongo::audit::AuditEvent&)' is private
      src/mongo/db/modules/enterprise/src/audit/audit_authentication.cpp:22: error: within this context
      src/mongo/db/modules/enterprise/src/audit/audit_authentication.cpp: In function 'void mongo::audit::logAuthentication(mongo::ClientBasic*, const mongo::StringData&, const mongo::UserName&, mongo::ErrorCodes::Error)':
      src/mongo/db/modules/enterprise/src/audit/audit_authentication.cpp:62: note: synthesized method 'mongo::audit::AuthenticationEvent::AuthenticationEvent(const mongo::audit::AuthenticationEvent&)' first required here
      cc1plus: warnings being treated as errors
      src/mongo/db/modules/enterprise/src/audit/audit_event.h:51: warning: 'class mongo::audit::AuditEvent' has virtual functions but non-virtual destructor
      src/mongo/db/modules/enterprise/src/audit/audit_event.h: In copy constructor 'mongo::audit::AuthzCheckEvent::AuthzCheckEvent(const mongo::audit::AuthzCheckEvent&)':
      src/mongo/db/modules/enterprise/src/audit/audit_event.h:52: error: 'mongo::audit::AuditEvent::AuditEvent(const mongo::audit::AuditEvent&)' is private
      src/mongo/db/modules/enterprise/src/audit/audit_authz_check.cpp:20: error: within this context
      src/mongo/db/modules/enterprise/src/audit/audit_authz_check.cpp: In function 'void mongo::audit::logCommandAuthzCheck(mongo::ClientBasic*, const mongo::NamespaceString&, const mongo::mutablebson::Document&, mongo::ErrorCodes::Error)':
      src/mongo/db/modules/enterprise/src/audit/audit_authz_check.cpp:73: note: synthesized method 'mongo::audit::AuthzCheckEvent::AuthzCheckEvent(const mongo::audit::AuthzCheckEvent&)' first required here
      scons: *** [build/linux2/ssl/mongo/db/modules/enterprise/src/audit/audit_authentication.o] Error 1
      scons: *** [build/linux2/ssl/mongo/db/modules/enterprise/src/audit/audit_authz_check.o] Error 1
      scons: building terminated because of errors.
      

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            ian@mongodb.com Ian Whalen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: