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

Compiling current master with a "too new" libssl2 (1.0.2e-1) breaks compilation

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.3.1
    • Component/s: Build
    • None
    • Fully Compatible
    • ALL
    • Platforms 16 (06/24/16)

      I tried compiling mongodb + enterprise modules today, and ran into the following compile failure:

      In file included from src/third_party/asio-asio-1-11-0/asio/include/asio/ssl/impl/src.hpp:22:0,
                       from src/third_party/asio-asio-1-11-0/asio/src/asio_ssl.cpp:11:
      src/third_party/asio-asio-1-11-0/asio/include/asio/ssl/impl/context.ipp: In constructor 'asio::ssl::context::context(asio::ssl::context_base::method)':
      src/third_party/asio-asio-1-11-0/asio/include/asio/ssl/impl/context.ipp:88:29: error: '::SSLv3_method' has not been declared
           handle_ = ::SSL_CTX_new(::SSLv3_method());
                                   ^
      src/third_party/asio-asio-1-11-0/asio/include/asio/ssl/impl/context.ipp:91:29: error: '::SSLv3_client_method' has not been declared
           handle_ = ::SSL_CTX_new(::SSLv3_client_method());
                                   ^
      src/third_party/asio-asio-1-11-0/asio/include/asio/ssl/impl/context.ipp:94:29: error: '::SSLv3_server_method' has not been declared
           handle_ = ::SSL_CTX_new(::SSLv3_server_method());
      

      adam.midvidy concluded:

      15:46 <Αdam> your openssl version is actually too *new*
      15:46 <Αdam> and SSLv3_method has been removed
      15:47 <Αdam> and the version of standalone asio we have hasn't worked around that yet
      

      As a separate note, he suggested to use

      --with-system-asio

      , but that breaks in a different way (see upcoming ticket).

            Assignee:
            mira.carey@mongodb.com Mira Carey
            Reporter:
            derick Derick Rethans
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: