build error on OSX ElC; OpenSSL


Trying to build Bro on OSX (10.11), I get an error about not being able to find my OpenSSL. Any ideas?

Before attempting the config, I set the following env vars:

~/git/bro$ ./configure --with-openssl=/usr/local/ssl
Build Directory : build
Source Directory: /Users/heiland/git/bro
-- Found sed: /usr/local/bin/sed
-- Found PythonInterp: /Users/heiland/anaconda3/bin/python (found version "3.5.1")
-- Found FLEX: /usr/bin/flex (found version "2.5.35")
-- Found BISON: /usr/local/bin/bison
-- Found PCAP: /usr/lib/libpcap.dylib
-- Performing Test PCAP_LINKS_SOLO
-- Performing Test PCAP_LINKS_SOLO - Success
-- Looking for pcap_get_pfring_id
-- Looking for pcap_get_pfring_id - not found
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR)
CMake Error at aux/binpac/CMakeLists.txt:17 (message):
   Could not find prerequisite package 'OpenSSL'

CMake Error at aux/binpac/CMakeLists.txt:19 (message):
  Configuration aborted due to missing prerequisites


p.s. what’s recommended to search your mail archive - gmane?

Apple deprecated openssl.

Yes, but I built it. Turns out, I’ve got multiple versions lying around which might be giving me grief. Sigh.

~/git/bro$ /usr/local/ssl/bin/openssl


OpenSSL 1.0.2-beta2-dev xx XXX xxxx


~/git/bro$ which openssl
~/git/bro$ /Users/heiland/anaconda3/bin/openssl


OpenSSL 1.0.2g 1 Mar 2016


~/git/bro$ /usr/bin/openssl


OpenSSL 0.9.8zh 14 Jan 2016

I’ll dig around…

Got this working and will just report for the archive. Not entirely sure what the problem/fix was, but I:

1) upgraded cmake (to 3.5.2; previous was 2.8.12)
2) upgraded openssl: OpenSSL 1.0.2g 1 Mar 2016
3) made sure I wasn’t using the Anaconda Python distro (which also included openssl); rather using system Python (2.7.10)
4) upgraded couple other libs after bro warnings - CAF and swig
4) config’d via:
~/git/bro$ ./configure --with-openssl=/usr/local/ssl

and seemed to finally build OK:
~$ bro --version
bro version 2.4-454