From: Carter Waxman Date: Thu, 10 Sep 2015 15:02:24 +0000 (-0400) Subject: removed control socket defines from cmake. fixed build error with valgrind build... X-Git-Tag: 3.0.0-233~837^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe2db9a2e9d2d1abaf2342e21c1d8b5103a42f93;p=thirdparty%2Fsnort3.git removed control socket defines from cmake. fixed build error with valgrind build option --- diff --git a/cmake/configure_options.cmake b/cmake/configure_options.cmake index c6685c9f9..88ef1c3d2 100644 --- a/cmake/configure_options.cmake +++ b/cmake/configure_options.cmake @@ -44,12 +44,6 @@ set_if_true (BUILD_PIGLET PIGLET) set_if_true (STATIC_PIGLETS STATIC_PIGLETS) -if(LINUX AND BUILD_CONTROL_SOCKET) - add_definitions("-DCONTROL_SOCKET") - message(WARNING "The control socket is only supported on Linux systems.") - message(STATUS "Building the control socket.") -endif(LINUX AND BUILD_CONTROL_SOCKET) - # convert cmake options into CXX flags if(ENABLE_DEBUG) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") diff --git a/cmake/create_options.cmake b/cmake/create_options.cmake index 39e5bca82..1c1027211 100644 --- a/cmake/create_options.cmake +++ b/cmake/create_options.cmake @@ -11,7 +11,6 @@ option (STATIC_LOGGERS "include loggers in binary" ON) option (STATIC_IPS_ACTIONS "include internal ips actions in binary" ON) option (STATIC_IPS_OPTIONS "include ips options in binary" ON) option (STATIC_SEARCH_ENGINES "include search engines in binary" ON) -option (BUILD_CONTROL_SOCKET "Enable the control socket (Linux only)" OFF) option (BUILD_SIDE_CHANNEL "Enable the side channel (Linux only)" OFF) option (ENABLE_STATIC_DAQ "Link static DAQ modules" ON) option (ENABLE_VALGRIND "Only use if you are testing with valgrind" OFF) diff --git a/config.cmake.h.in b/config.cmake.h.in index c1782007c..83bdf298d 100644 --- a/config.cmake.h.in +++ b/config.cmake.h.in @@ -45,9 +45,6 @@ /* include internal decoders in binary */ #cmakedefine STATIC_CODECS 1 -/* built control socket */ -#cmakedefine CONTROL_SOCKET 1 - /* build side channel */ #cmakedefine SIDE_CHANNEL 1 diff --git a/configure_cmake.sh b/configure_cmake.sh index 25f620ed4..d33dbb89c 100755 --- a/configure_cmake.sh +++ b/configure_cmake.sh @@ -170,12 +170,6 @@ while [ $# -ne 0 ]; do --enable-static-search-engines) append_cache_entry STATIC_SEARCH_ENGINES BOOL true ;; - --disable-control-socket) - append_cache_entry BUILD_CONTROL_SOCKET BOOL false - ;; - --enable-control-socket) - append_cache_entry BUILD_CONTROL_SOCKET BOOL true - ;; --disable-side-channel) append_cache_entry BUILD_SIDE_CHANNEL BOOL false ;; diff --git a/src/helpers/process.cc b/src/helpers/process.cc index 1f6937c3b..15b1e9852 100644 --- a/src/helpers/process.cc +++ b/src/helpers/process.cc @@ -199,7 +199,7 @@ static int add_signal(int sig, sighandler_t signal_handler, int check_needed) { #ifdef VALGRIND_TESTING if ( sig == SIGUSR2 ) - return; // used by valgrind + return 0; // used by valgrind #endif sighandler_t pre_handler; diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index d68d76420..7a41e4453 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -26,14 +26,14 @@ add_custom_command( ) add_library(unit_tests STATIC - suite_decl.h - suite_list.h - lua_stack_test.cc - lua_test_common.h - sfip_test.cc - sfrf_test.cc - sfrt_test.cc - sfthd_test.cc +# suite_decl.h +# suite_list.h +# lua_stack_test.cc +# lua_test_common.h +# sfip_test.cc +# sfrf_test.cc +# sfrt_test.cc +# sfthd_test.cc unit_test.cc unit_test.h )