[Bro] Bro 2.3.2 and pf_ring 6.0.2

Michał Purzyński michalpurzynski1 at gmail.com
Thu Feb 12 08:11:16 PST 2015


/usr/bin/gcc    -Wall -Wno-unused
-DCHECK_FUNCTION_EXISTS=pcap_get_pfring_id
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o
cmTryCompileExec -rdynamic /opt/pfring/lib/libpcap.so
-Wl,-rpath,/opt/pfring/lib

/usr/bin/ld: warning: libsnf.so.0, needed by
/opt/pfring/lib/libpcap.so, not found (try using -rpath or
-rpath-link)

/opt/pfring/lib/libpcap.so: undefined reference to `clock_gettime'

/opt/pfring/lib/libpcap.so: undefined reference to `snf_ring_open at snf_0.1'


Uhm, looks like I have mixed in the snf == Myricom somehow in here.
Looks like it's a bad idea to build pfring and myricom linked pcap
applications on the same host.


Sorry for the noise and thanks for the hint where to look for errors :-)





On Thu, Feb 12, 2015 at 4:35 PM, Siwek, Jon <jsiwek at illinois.edu> wrote:
>
>> On Feb 12, 2015, at 9:14 AM, Michał Purzyński <michalpurzynski1 at gmail.com> wrote:
>>
>> When trying to build Bro 2.3.2 with libpcap from pf_ring 6.0.2
>> (./configure --with-pcap=/usr/local/lib, where libpcap-1.1.1-ring is
>> installed) I get errors:
>>
>> -- Looking for include files HAVE_PCAP_INT_H
>> -- Looking for include files HAVE_PCAP_INT_H - not found.
>> -- Looking for pcap_freecode
>> -- Looking for pcap_freecode - not found
>> -- No implementation for pcap_freecode()
>> -- Performing Test LIBPCAP_PCAP_COMPILE_NOPCAP_HAS_ERROR_PARAMETER
>> -- Performing Test LIBPCAP_PCAP_COMPILE_NOPCAP_HAS_ERROR_PARAMETER - Failed
>> -- Performing Test LIBPCAP_PCAP_COMPILE_NOPCAP_NO_ERROR_PARAMETER
>> -- Performing Test LIBPCAP_PCAP_COMPILE_NOPCAP_NO_ERROR_PARAMETER - Failed
>> CMake Error at cmake/PCAPTests.cmake:58 (message):
>>  Can't determine if pcap_compile_nopcap takes an error parameter
>> Call Stack (most recent call first):
>>  CMakeLists.txt:176 (include)
>> -- Configuring incomplete, errors occurred!
>
> Can you send the contents of build/CMakeFiles/CMakeError.log ?
>
> - Jon



More information about the Bro mailing list