Problem in compiling Bro on an Ubuntu 7.10 system (probably something with lpcap)

Hello to all,

I am an Intrusion Detection Researcher from Greece. I try to create an experimental setup, in order to test data fusion methods for combining alerts from different IDSs.

I am trying to setup Bro IDS on an Ubuntu 7.10 system. I have tried both 1.2 and 1.3 versions and I get the same error when I run the ./configure command :

checking for local pcap library… not found
checking for pcap_open_live in -lpcap… no
checking for pcap_open_live in -lpcap… no
configure: error: see the INSTALL doc for more info

I guess I am missing something. I have Snort installed on the same system, I hope this does not create a problem.

Whoever can help, please post to me a probable solution.

Thank you in advance.

The whole output of the ./configure command is

giorgos@m1330:~/Desktop/bro-1.3.2$ ./configure
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking target system type… i686-pc-linux-gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for gawk… no
checking for mawk… mawk
checking whether make sets $(MAKE)… yes
checking for style of include used by make… GNU
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ANSI C… none needed
checking dependency style of gcc… gcc3
checking for flex… flex
checking for yywrap in -lfl… yes
checking lex output file root… lex.yy
checking whether yytext is a pointer… yes
checking for bison… bison -y
checking for g++… g++
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking dependency style of g++… gcc3
checking for a BSD-compatible install… /usr/bin/install -c
checking whether make sets $(MAKE)… (cached) yes
checking for ranlib… ranlib
checking for gzip… gzip
checking for OPENSSL_add_all_algorithms_conf in -lcrypto… no
checking for perl5… no
checking for perl… /usr/bin/perl
checking for chown… /bin/chown
checking Linux kernel version… 2
checking for special C compiler options needed for large files… no
checking for _FILE_OFFSET_BITS value needed for large files… 64
checking for _LARGE_FILES value needed for large files… no
checking how to run the C preprocessor… gcc -E
checking for egrep… grep -E
checking for ANSI C header files… yes
checking return type of signal handlers… void
checking for sigset… yes
checking for int32_t using gcc… yes
checking for u_int32_t using gcc… yes
checking for u_int16_t using gcc… yes
checking for u_int8_t using gcc… yes
checking whether time.h and sys/time.h may both be included… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h … . yes
checking for unistd.h… yes
checking for memory.h… (cached) yes
checking netinet/in.h usability… yes
checking netinet/in.h presence… yes
checking for netinet/in.h… yes
checking socket.h usability… no
checking socket.h presence… no
checking for socket.h… no
checking getopt.h usability… yes
checking getopt.h presence… yes
checking for getopt.h… yes
checking for net/ethernet.h… yes
checking for netinet/ether.h… yes
checking for netinet/if_ether.h… yes
checking for sys/ethernet.h… no
checking for netinet/ip6.h… yes
checking for socklen_t… yes
checking if syslog returns int… no
checking if we should declare socket and friends… no
checking for gethostbyname… yes
checking for socket… yes
checking for putmsg in -lstr… no
checking for local pcap library… not found
checking for pcap_open_live in -lpcap… no
checking for pcap_open_live in -lpcap… no
configure: error: see the INSTALL doc for more info

Most likely you need to install the libpcap-dev or libpcap0.8-dev
package. Likewise for other libraries.

  Bernhard

Hello again,

I installed libcap-debv but no luck.

I am attaching the config.log file.

Please check it to see if you can discover the problem…

2008/1/25, Bernhard Ager <ager@net.in.tum.de>:

config.log (40.5 KB)

It doesn't find the library:

    configure:8312: gcc -o conftest -g -O2 conftest.c -lpcap >&5
    /usr/bin/ld: cannot find -lpcap

While I can't help with the Ubuntu installation, you could try to
configure with "--enable-shippedpcap". That links against a libpcap
shipped with Bro.

Robin

Just repeat installing libraries. In this case, you'll need some
flavor of libssl or openssl and the corresponding "dev" package. There
might be more unresolved dependencies like this, and the solution is
always the same :slight_smile:

  Bernhard