Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-8867

CMake: Bundled libevent v2.1.5-beta doesn't compile with OpenSSL 1.1.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • cmake
    • None
    • Fedora 28 with OpenSSL 1.1.0h, cmake -G Ninja -D ENABLE_LIBEVENT=ON -D ENABLE_SSL=ON

    Description

      Compiling libevent 2.1.5 beta with OpenSSL 1.1.0 fails with errors like

      /home/vagrant/mesos/build/3rdparty/libevent-2.1.5-beta/src/libevent-2.1.5-beta/bufferevent_openssl.c: In function ‘bio_bufferevent_new’:
      /home/vagrant/mesos/build/3rdparty/libevent-2.1.5-beta/src/libevent-2.1.5-beta/bufferevent_openssl.c:112:3: error: dereferencing pointer to incomplete type ‘BIO’ {aka ‘struct bio_st’}
        b->init = 0;
         ^~
      

      As this is the version currently bundled by CMake, builds with ENABLE_LIBEVENT=ON, ENABLE_SSL=ON will fail to compile.

      Libevent supports OpenSSL 1.1.0 beginning with v2.1.7-rc (see https://github.com/libevent/libevent/pull/397)

      Attachments

        Activity

          People

            Unassigned Unassigned
            nfnt Jan Schlicht
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: