[Bro] building bro w/ dynamic libpcap?

Johanna Amann johanna at icir.org
Fri Mar 3 15:12:41 PST 2017


You seem to be missing the libcap.so -> libpcap.so.1(.7.4) symlink. So
that would be expected behavior in this case (I am not even sure you can
easily tell a linker to link against a file with a .so.1 file extension).

Johanna

On Fri, Mar 03, 2017 at 02:00:21PM -0800, Bond Masuda wrote:
> Hello,
> 
> Trying to build bro with pf_ring's libpcap, but the 'configure' script 
> seems to choose static libpcap.a over libpcap.so:
> 
> $ ./configure --with-pcap=/usr/local
> Build Directory : build
> Source Directory: /home/bmasuda/RPMBUILD/BUILD/bro-2.4.1
> -- Found sed: /usr/bin/sed
> -- Found Perl: /usr/bin/perl (found version "5.16.3")
> -- Found FLEX: 2.5.37
> -- Found BISON: /usr/bin/bison
> -- Found PCAP: /usr/local/lib/libpcap.a
> 
> pf_ring is installed in /usr/local/lib:
> 
> $ ls -l /usr/local/lib
> total 3536
> drwxr-xr-x. 2 root root      96 Mar  3 07:35 daq
> -rw-r--r--. 1 root root  461618 Mar  2 21:13 libpcap.a
> lrwxrwxrwx. 1 root root      16 Mar  3 07:35 libpcap.so.1 -> 
> libpcap.so.1.7.4
> -rwxr-xr-x. 1 root root 1452912 Mar  2 21:13 libpcap.so.1.7.4
> -rw-r--r--. 1 root root  692966 Mar  2 21:13 libpfring.a
> -rwxr-xr-x. 1 root root  517664 Mar  2 21:13 libpfring.so
> lrwxrwxrwx. 1 root root      17 Mar  3 07:35 libsfbpf.so.0 -> 
> libsfbpf.so.0.0.1
> -rwxrwxr-x. 1 root root  486933 Oct 10  2015 libsfbpf.so.0.0.1
> 
> I would like for bro to be linked dynamically with the libpcap.so 
> instead of libpcap.a. How can I specify this?
> 
> Above example is with bro 2.4.1, but same thing with 2.5 as well.
> 
> Thanks,
> Bond
> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro
> 


More information about the Bro mailing list