Michael Park created MESOS-6942:
-----------------------------------
Summary: CMake build with `-DENABLE_LIBEVENT=ON` looks for system
openssl.
Key: MESOS-6942
URL: https://issues.apache.org/jira/browse/MESOS-6942
Project: Mesos
Issue Type: Bug
Components: cmake
Reporter: Michael Park
Trying to build with CMake with {{-DENABLE_LIBEVENT=ON}} on Ubuntu without
{{openssl}} installed produces the following error message. On OS X, it doesn't
know to use the brew installed {{openssl}}.
{code}
-- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY
-- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY - Failed
CMake Error at
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388
(_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.5/Modules/FindOpenSSL.cmake:370
(find_package_handle_standard_args)
CMakeLists.txt:591 (find_package)
-- Configuring incomplete, errors occurred!
See also
"/BUILD/3rdparty/libevent-2.1.5-beta/src/libevent-2.1.5-beta-build/CMakeFiles/CMakeOutput.log".
See also
"/BUILD/3rdparty/libevent-2.1.5-beta/src/libevent-2.1.5-beta-build/CMakeFiles/CMakeError.log".
-- Cache values
// Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS
used) Debug Release RelWithDebInfo MinSizeRel.
CMAKE_BUILD_TYPE:STRING=
// Limited configurations
CMAKE_CONFIGURATION_TYPES:STRING=Debug;Release
// Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local
// Define if libevent should be built with shared libraries instead of archives
EVENT__BUILD_SHARED_LIBRARIES:BOOL=OFF
// Enable running gcov to get a test coverage report (only works with
GCC/CLang). Make sure to enable -DCMAKE_BUILD_TYPE=Debug as well.
EVENT__COVERAGE:BOOL=OFF
// Defines if libevent should build without the benchmark exectuables
EVENT__DISABLE_BENCHMARK:BOOL=OFF
// Define if libevent should build without support for a debug mode
EVENT__DISABLE_DEBUG_MODE:BOOL=OFF
// Disable verbose warnings with GCC
EVENT__DISABLE_GCC_WARNINGS:BOOL=OFF
// Define if libevent should not allow replacing the mm functions
EVENT__DISABLE_MM_REPLACEMENT:BOOL=OFF
// Define if libevent should build without support for OpenSSL encrpytion
EVENT__DISABLE_OPENSSL:BOOL=OFF
// Disable the regress tests
EVENT__DISABLE_REGRESS:BOOL=OFF
// Disable sample files
EVENT__DISABLE_SAMPLES:BOOL=OFF
// If tests should be compiled or not
EVENT__DISABLE_TESTS:BOOL=OFF
// Define if libevent should not be compiled with thread support
EVENT__DISABLE_THREAD_SUPPORT:BOOL=OFF
// Enable gcc function sections
EVENT__ENABLE_GCC_FUNCTION_SECTIONS:BOOL=OFF
// Enable compiler security checks
EVENT__ENABLE_GCC_HARDENING:BOOL=OFF
// Make all GCC warnings into errors
EVENT__ENABLE_GCC_WARNINGS:BOOL=OFF
// Enables verbose debugging
EVENT__ENABLE_VERBOSE_DEBUG:BOOL=OFF
// When crosscompiling forces running a test program that verifies that Kqueue
works with pipes. Note that this requires you to manually run the test program
on the the cross compilation target to verify that it works. See cmake
documentation for try_run for more details
EVENT__FORCE_KQUEUE_CHECK:BOOL=OFF
// Path to a file.
OPENSSL_INCLUDE_DIR:PATH=OPENSSL_INCLUDE_DIR-NOTFOUND
3rdparty/CMakeFiles/libevent-2.1.5-beta.dir/build.make:111: recipe for target
'3rdparty/libevent-2.1.5-beta/src/libevent-2.1.5-beta-stamp/libevent-2.1.5-beta-configure'
failed
make[3]: ***
[3rdparty/libevent-2.1.5-beta/src/libevent-2.1.5-beta-stamp/libevent-2.1.5-beta-configure]
Error 1
make[3]: Leaving directory '/BUILD'
CMakeFiles/Makefile2:534: recipe for target
'3rdparty/CMakeFiles/libevent-2.1.5-beta.dir/all' failed
make[2]: Leaving directory '/BUILD'
make[2]: *** [3rdparty/CMakeFiles/libevent-2.1.5-beta.dir/all] Error 2
CMakeFiles/Makefile2:546: recipe for target
'3rdparty/CMakeFiles/libevent-2.1.5-beta.dir/rule' failed
make[1]: *** [3rdparty/CMakeFiles/libevent-2.1.5-beta.dir/rule] Error 2
make[1]: Leaving directory '/BUILD'
Makefile:234: recipe for target
'3rdparty/CMakeFiles/libevent-2.1.5-beta.dir/rule' failed
make: *** [3rdparty/CMakeFiles/libevent-2.1.5-beta.dir/rule] Error 2
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)