Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
Trying to build Mesos using cmake with the options
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_SSL=1 -DENABLE_LIBEVENT=1
fails due to the following:
[ 1%] Building C object CMakeFiles/event_extra.dir/bufferevent_openssl.c.o /home/bevers/mesos/worktrees/master/build-cmake/3rdparty/libevent-2.1.5-beta/src/libevent-2.1.5-beta/bufferevent_openssl.c: In function ‘bio_bufferevent_new’: /home/bevers/mesos/worktrees/master/build-cmake/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; ^~ /home/bevers/mesos/worktrees/master/build-cmake/3rdparty/libevent-2.1.5-beta/src/libevent-2.1.5-beta/bufferevent_openssl.c: At top level: /home/bevers/mesos/worktrees/master/build-cmake/3rdparty/libevent-2.1.5-beta/src/libevent-2.1.5-beta/bufferevent_openssl.c:234:1: error: variable ‘methods_bufferevent’ has initializer but incomplete type static BIO_METHOD methods_bufferevent = { [...]
Since the autotools build does not have issues when enabling libevent and ssl, it seems most likely that the `libevent-2.1.5-beta` version used by default in the cmake build is somehow connected to the error message.
Attachments
Issue Links
- is related to
-
MESOS-3529 Transition Windows builds from beta version of libevent to stable.
- Resolved