[Bro] Bro 2.1 - compiling on RHEL5 64bit

Siwek, Jonathan Luke jsiwek at illinois.edu
Mon Oct 8 13:28:58 PDT 2012


> 
> /usr/local/src/bro-2.1/src/logging/writers/ElasticSearch.cc:51: warning: converting to 'uint64' from 'double'
> /usr/local/src/bro-2.1/src/logging/writers/ElasticSearch.cc: In member function 'bool logging::writer::ElasticSearch::HTTPSend(CURL*)':
> /usr/local/src/bro-2.1/src/logging/writers/ElasticSearch.cc:376: error: 'CURLOPT_CONNECTTIMEOUT_MS' was not declared in this scope
> /usr/local/src/bro-2.1/src/logging/writers/ElasticSearch.cc:377: error: 'CURLOPT_TIMEOUT_MS' was not declared in this scope

It's an issue with the optional ElasticSearch log writer using some things that are only in newer versions of lib curl.  It's fixed in git repository commits b73809d54f96 and 1ce76da90f4a, so you could try porting those as patches to your copy of the 2.1 source.

But if you don't care at all about ElasticSearch, you could do this quick hack to the top-level CMakeLists.txt to disable it:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2c8a726..17cf6d0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -134,7 +134,7 @@ set(USE_ELASTICSEARCH false)
 set(USE_CURL false)
 find_package(CURL)
 
-if (CURL_FOUND)
+if (false)
   set(USE_ELASTICSEARCH true)
   set(USE_CURL true)
   include_directories(BEFORE ${CURL_INCLUDE_DIR})



More information about the Bro mailing list