Benno Evers created MESOS-9329:
----------------------------------
Summary: CMake build on Fedora 28 fails due to libevent error
Key: MESOS-9329
URL: https://issues.apache.org/jira/browse/MESOS-9329
Project: Mesos
Issue Type: Bug
Reporter: Benno Evers
Trying to build Mesos using cmake with the options
{noformat}
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_SSL=1 -DENABLE_LIBEVENT=1
{noformat}
fails due to the following:
{noformat}
[ 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 = {
[...]
{noformat}
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)