RE: 5.7.16 compilation fails due to libevent references in xplugin
Sorry, I should have specified this is on RHEL 6.7 -Original Message- From: Pitts, Matthew W. Sent: Wednesday, October 26, 2016 12:13 PM To: 'mysql@lists.mysql.com' Subject: 5.7.16 compilation fails due to libevent references in xplugin I am trying to compile mysql-boost 5.7.16 from source to run it from a specific account/directory but I am running into an error [1] that seems to indicate that a libevent symbol cannot be found. I'm not very familiar with the mysql source, but it seems to include its own copy of libevent, so this error seems rather odd. I have been building and running mysql 5.6 versions in a similar manner, but I want to upgrade to 5.7. I could probably disable the xplugin build, but I would like to include it for possible future use of document storage. [2] shows my cmake configure command and [3] shows the configure output If this message would be more appropriate for another list, please let me know. Any guidance is greatly appreciated. Thanks, Matthew Pitts [1] [ 66%] Built target protobuf [ 66%] Built target protoc Scanning dependencies of target xplugin [ 66%] Building CXX object rapid/plugin/x/CMakeFiles/xplugin.dir/ngs/src/time_socket_events.cc.o /path/to/my/app/home/src/build/mysql/current/rapid/plugin/x/ngs/src/time_soc ket_events.cc: In member function void ngs::Time_and_socket_events::break_loop(): /path/to/my/app/home/src/build/mysql/current/rapid/plugin/x/ngs/src/time_soc ket_events.cc:165: error: event_base_loopbreak was not declared in this scope make[2]: *** [rapid/plugin/x/CMakeFiles/xplugin.dir/ngs/src/time_socket_events.cc.o] Error 1 make[1]: *** [rapid/plugin/x/CMakeFiles/xplugin.dir/all] Error 2 make: *** [all] Error 2 Failed to compile, skipping package creation [2] cmake . \ -DBUILD_CONFIG=mysql_release \ -DINSTALL_LAYOUT=RPM \ -DCMAKE_INSTALL_PREFIX=$HOME/local \ -DMYSQL_DATADIR=$HOME/var/lib/mysql \ -DSYSCONFDIR=$HOME/local/etc \ -DMYSQL_UNIX_ADDR=$HOME/var/run/mysql/mysqld.sock \ -DWITH_MYSQLD_USER=$USER \ -DMYSQL_MAINTAINER_MODE=OFF \ -DWITH_DEBUG=OFF \ -DINSTALL_SQLBENCHDIR= \ -DINSTALL_MYSQLTESTDIR= \ -DWITH_INNOBASE_STORAGE_ENGINE=1 \ -DWITH_ZLIB=$HOME/local \ -DWITH_READLINE=system \ -DWITH_SSL=$HOME/local \ -DWITH_BOOST=./boost [3] -- Running cmake version 2.8.12.2 -- Could NOT find Git (missing: GIT_EXECUTABLE) -- Configuring with MAX_INDEXES = 64U -- The C compiler identification is GNU 4.4.7 -- The CXX compiler identification is GNU 4.4.7 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for include file libaio.h -- Looking for include file libaio.h - found -- Looking for io_queue_init in aio -- Looking for io_queue_init in aio - found -- Looking for SHM_HUGETLB -- Looking for SHM_HUGETLB - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of void * -- Check size of void * - done -- SIZEOF_VOIDP 8 -- Performing Test HAVE_C_FLOATING_POINT_OPTIMIZATION_PROBLEMS -- Performing Test HAVE_C_FLOATING_POINT_OPTIMIZATION_PROBLEMS - Failed -- Performing Test HAVE_CXX_FLOATING_POINT_OPTIMIZATION_PROBLEMS -- Performing Test HAVE_CXX_FLOATING_POINT_OPTIMIZATION_PROBLEMS - Failed -- MySQL 5.7.16 -- Packaging as: mysql-5.7.16-Linux-x86_64 -- Local boost dir /path/to/my/app/home/src/build/mysql/current/boost/boost_1_59_0 -- Found /path/to/my/app/home/src/build/mysql/current/boost/boost_1_59_0/boost/versio n.hpp -- BOOST_VERSION_NUMBER is #define BOOST_VERSION 105900 -- BOOST_INCLUDE_DIR /path/to/my/app/home/src/build/mysql/current/boost/boost_1_59_0 -- Performing Test HAVE_LLVM_LIBCPP -- Performing Test HAVE_LLVM_LIBCPP - Failed -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Looking for floor -- Looking for floor - not found -- Looking for floor in m -- Looking for floor in m - found -- Looking for gethostbyname_r -- Looking for gethostbyname_r - found -- Looking for bind -- Looking for bind - found -- Looking for crypt -- Looking for crypt - not found -- Looking for crypt in crypt -- Looking for crypt in crypt - found -- Looking for setsockopt -- Looking for setsockopt - found -- Looking for dlopen -- Looking for dlopen - not found -- Looking for dlopen in dl -- Looking for dlopen in dl - found -- Looking for sched_yield -- Looking for sched_yield
5.7.16 compilation fails due to libevent references in xplugin
I am trying to compile mysql-boost 5.7.16 from source to run it from a specific account/directory but I am running into an error [1] that seems to indicate that a libevent symbol cannot be found. I'm not very familiar with the mysql source, but it seems to include its own copy of libevent, so this error seems rather odd. I have been building and running mysql 5.6 versions in a similar manner, but I want to upgrade to 5.7. I could probably disable the xplugin build, but I would like to include it for possible future use of document storage. [2] shows my cmake configure command and [3] shows the configure output If this message would be more appropriate for another list, please let me know. Any guidance is greatly appreciated. Thanks, Matthew Pitts [1] [ 66%] Built target protobuf [ 66%] Built target protoc Scanning dependencies of target xplugin [ 66%] Building CXX object rapid/plugin/x/CMakeFiles/xplugin.dir/ngs/src/time_socket_events.cc.o /path/to/my/app/home/src/build/mysql/current/rapid/plugin/x/ngs/src/time_soc ket_events.cc: In member function void ngs::Time_and_socket_events::break_loop(): /path/to/my/app/home/src/build/mysql/current/rapid/plugin/x/ngs/src/time_soc ket_events.cc:165: error: event_base_loopbreak was not declared in this scope make[2]: *** [rapid/plugin/x/CMakeFiles/xplugin.dir/ngs/src/time_socket_events.cc.o] Error 1 make[1]: *** [rapid/plugin/x/CMakeFiles/xplugin.dir/all] Error 2 make: *** [all] Error 2 Failed to compile, skipping package creation [2] cmake . \ -DBUILD_CONFIG=mysql_release \ -DINSTALL_LAYOUT=RPM \ -DCMAKE_INSTALL_PREFIX=$HOME/local \ -DMYSQL_DATADIR=$HOME/var/lib/mysql \ -DSYSCONFDIR=$HOME/local/etc \ -DMYSQL_UNIX_ADDR=$HOME/var/run/mysql/mysqld.sock \ -DWITH_MYSQLD_USER=$USER \ -DMYSQL_MAINTAINER_MODE=OFF \ -DWITH_DEBUG=OFF \ -DINSTALL_SQLBENCHDIR= \ -DINSTALL_MYSQLTESTDIR= \ -DWITH_INNOBASE_STORAGE_ENGINE=1 \ -DWITH_ZLIB=$HOME/local \ -DWITH_READLINE=system \ -DWITH_SSL=$HOME/local \ -DWITH_BOOST=./boost [3] -- Running cmake version 2.8.12.2 -- Could NOT find Git (missing: GIT_EXECUTABLE) -- Configuring with MAX_INDEXES = 64U -- The C compiler identification is GNU 4.4.7 -- The CXX compiler identification is GNU 4.4.7 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for include file libaio.h -- Looking for include file libaio.h - found -- Looking for io_queue_init in aio -- Looking for io_queue_init in aio - found -- Looking for SHM_HUGETLB -- Looking for SHM_HUGETLB - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of void * -- Check size of void * - done -- SIZEOF_VOIDP 8 -- Performing Test HAVE_C_FLOATING_POINT_OPTIMIZATION_PROBLEMS -- Performing Test HAVE_C_FLOATING_POINT_OPTIMIZATION_PROBLEMS - Failed -- Performing Test HAVE_CXX_FLOATING_POINT_OPTIMIZATION_PROBLEMS -- Performing Test HAVE_CXX_FLOATING_POINT_OPTIMIZATION_PROBLEMS - Failed -- MySQL 5.7.16 -- Packaging as: mysql-5.7.16-Linux-x86_64 -- Local boost dir /path/to/my/app/home/src/build/mysql/current/boost/boost_1_59_0 -- Found /path/to/my/app/home/src/build/mysql/current/boost/boost_1_59_0/boost/versio n.hpp -- BOOST_VERSION_NUMBER is #define BOOST_VERSION 105900 -- BOOST_INCLUDE_DIR /path/to/my/app/home/src/build/mysql/current/boost/boost_1_59_0 -- Performing Test HAVE_LLVM_LIBCPP -- Performing Test HAVE_LLVM_LIBCPP - Failed -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Looking for floor -- Looking for floor - not found -- Looking for floor in m -- Looking for floor in m - found -- Looking for gethostbyname_r -- Looking for gethostbyname_r - found -- Looking for bind -- Looking for bind - found -- Looking for crypt -- Looking for crypt - not found -- Looking for crypt in crypt -- Looking for crypt in crypt - found -- Looking for setsockopt -- Looking for setsockopt - found -- Looking for dlopen -- Looking for dlopen - not found -- Looking for dlopen in dl -- Looking for dlopen in dl - found -- Looking for sched_yield -- Looking for sched_yield - found -- Looking for clock_gettime -- Looking for clock_gettime - not found -- Looking for clock_gettime in rt -- Looking for clock_gettime in rt - found -- Looking for timer_create -- Looking for timer_create - not found -- Looking for