[jira] [Commented] (MESOS-9329) CMake build on Fedora 28 fails due to libevent error
[ https://issues.apache.org/jira/browse/MESOS-9329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16845237#comment-16845237 ] Joseph Wu commented on MESOS-9329: -- Just to clarify, *older* versions of libevent do not have CMake build files. We could potentially bump libevent to [2.1.8-stable|https://github.com/libevent/libevent/releases/tag/release-2.1.8-stable] to get both autotools and CMake on the same version. > 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 >Priority: Major > > 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)
[jira] [Commented] (MESOS-9329) CMake build on Fedora 28 fails due to libevent error
[ https://issues.apache.org/jira/browse/MESOS-9329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16839483#comment-16839483 ] Alexander Rukletsov commented on MESOS-9329: Indeed, the autotools build uses a newer version of libevent, [2.0.22|https://github.com/apache/mesos/blob/a9a2acabd03181865055b77cf81e7bb310b236d6/3rdparty/libevent-2.0.22-stable.tar.gz]. We can't easily use it in the cmake build because newer versions do not support cmake, see MESOS-3529. Bottom line is: a cmake build on Linux with ssl and libevent enabled is currently not supported. > 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 >Priority: Major > > 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)