Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
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)