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

Compiling Error encountered in Mongodb 3.6.8

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 3.6.8
    • None
    • None
    • ALL
    • Hide

      Run...

      $ scons --ssl --disable-warnings-as-errors --prefix=/usr core install

      ...from top source directory.

      Show
      Run... $ scons --ssl --disable-warnings-as-errors --prefix=/usr core install ...from top source directory.

    Description

      Compiling error encountered while compiling mongodb 3.6.8.  Compilation ended with the following statements...

      Compiling build/opt/mongo/util/net/ssl_manager.o
      In file included from src/third_party/boost-1.60.0/boost/mpl/aux_/na_assert.hpp:23,
      from src/third_party/boost-1.60.0/boost/mpl/arg.hpp:25,
      from src/third_party/boost-1.60.0/boost/mpl/placeholders.hpp:24,
      from src/third_party/boost-1.60.0/boost/iterator/iterator_categories.hpp:17,
      from src/third_party/boost-1.60.0/boost/iterator/iterator_facade.hpp:14,
      from src/third_party/boost-1.60.0/boost/range/iterator_range_core.hpp:27,
      from src/third_party/boost-1.60.0/boost/range/iterator_range.hpp:13,
      from src/third_party/boost-1.60.0/boost/range/as_literal.hpp:22,
      from src/third_party/boost-1.60.0/boost/algorithm/string/trim.hpp:19,
      from src/third_party/boost-1.60.0/boost/algorithm/string.hpp:19,
      from src/mongo/util/net/ssl_manager.cpp:34:
      src/third_party/boost-1.60.0/boost/mpl/assert.hpp:188:21: warning: unnecessary parentheses in declaration of 'assert_arg' [-Wparentheses]
      failed ************ (Pred::************
      ^
      src/third_party/boost-1.60.0/boost/mpl/assert.hpp:193:21: warning: unnecessary parentheses in declaration of 'assert_not_arg' [-Wparentheses]
      failed ************ (boost::mpl::not_<Pred>::************
      ^
      src/mongo/util/net/ssl_manager.cpp: In function 'void mongo::recordTLSVersion(const SSL*)':
      src/mongo/util/net/ssl_manager.cpp:1499:20: error: 'struct mongo::TLSVersionCounts' has no member named 'tls13'; did you mean 'tls10'?
      counts.tls13.addAndFetch(1);
      ^~~~~
      tls10
      scons: *** [build/opt/mongo/util/net/ssl_manager.o] Error 1
      scons: building terminated because of errors.
      build/opt/mongo/util/net/ssl_manager.o failed: Error 1

      Compilation started with the following statement...

      $ scons --ssl --disable-warnings-as-errors --prefix=/usr core install

      Error corrected by modifying struct TLSVersionCounts in file src/mongo/util/net/ssl_manager.h by inserting new line 111 with text...

      AtomicInt64 tls13;

      This error was encountered in system running Slackware (Linux) x86_64 Current with OpenSSL 1.1.1 and 1.0.20 installed.

      No patch file provided. Again, this was encountered and tested in version 3.6.8. Not sure if this applies to any other (newer, major version) releases.

      Attachments

        Activity

          People

            nick.brewer Nick Brewer
            alex@xbasics.com Alex Alvarez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: