[Bro] Bro 2.3.2 and pf_ring 6.0.2

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


Yep, confirmed

LDFLAGS exported to "-Wl,--no-as-needed -lrt" is needed or the
configure fails on Ubuntu with

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


On Thu, Feb 12, 2015 at 5:10 PM, Lou Ruppert <himself at louruppert.com> wrote:
> Siwek, Jon:
>>
>>> 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 ?
>
> I wish I'd thought of that. Instead I kludged a quick solution:
>
> LDFLAGS="-Wl,--no-as-needed -lrt" ./configure
>
> I'm not sure why that bit of ugliness helps, but it got me up and
> running again.
>
> -lou
>
>
>
> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro



More information about the Bro mailing list