Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-922

Fails to build using OpenSSL version 1.1.0

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: legacy-1.1.1
    • Component/s: Build, Portability
    • None

      When trying to build legacy-1.1.1 using openssl version 1.1.0 I obtain the following error:

      g++ -o build/linux2/ssl/mongo/util/net/ssl_manager.o -c -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wnon-virtual-dtor -Woverloaded-virtual -fPIC -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -pipe -O3 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-missing-braces -DMONGO_EXPOSE_MACROS -D_FILE_OFFSET_BITS=64 -DMONGO_HAVE___THREAD -DBOOST_THREAD_USES_DATETIME -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_POSIX_MONOTONIC_CLOCK -DMONGO_HAVE_TIMEGM -DMONGO_HAVE_FIPS_MODE_SET -DLIBMONGOCLIENT_BUILDING -DSTATIC_LIBMONGOCLIENT -Ibuild/linux2/ssl -Isrc -Ibuild/linux2/ssl/mongo -Isrc/mongo src/mongo/util/net/ssl_manager.cpp
      src/mongo/util/net/ssl_manager.cpp: In member function 'void mongo::

      {anonymous}::SSLThreadInfo::lock_callback(int, int, const char*, int)':
      src/mongo/util/net/ssl_manager.cpp:98:20: error: 'CRYPTO_LOCK' was not declared in this scope
      if (mode & CRYPTO_LOCK) {
      ^
      src/mongo/util/net/ssl_manager.cpp: In member function 'bool mongo::{anonymous}

      ::SSLManager::setSubjectName(const string&, std::_cxx11::string&)':
      src/mongo/util/net/ssl_manager.cpp:631:43: error: 'BIO_s_file_internal' was not declared in this scope
      BIO* in = BIO_new(BIO_s_file_internal());

      Compilation succeed if I downgrade to OpenSSL version 1.0.2h.

            Assignee:
            david.golden@mongodb.com David Golden
            Reporter:
            giuliopaci Giulio Paci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: