Installing Bro-1.5.1 Ubuntu 9.10 Problem with gcc

I am trying to install bro under Ubuntu 9.10
I did the following:
apt-get install libncurses5-dev
apt-get install g++
apt-get install bison
apt-get install flex
apt-get install libmagic-dev
apt-get install libgeoip-dev
apt-get install libssl-dev

Then I type the following as a root
./configure --enable shippedpcap
I got the following:

Bro Configuration Summary
==========================================================

- Debugging enabled: no
- OpenSSL support: yes
- Non-blocking main loop: yes
- Non-blocking resolver: yes
- Installation prefix: /usr/local/bro
- Perl interpreter: /usr/bin/perl
- Using basic_string: yes
- Using libmagic: yes
- Using perftools: no
- Binpac used: shipped with Bro
- Using libGeoIP: yes
- Enabled broctl: yes
- Enabled cluster: no
- Pcap used: shipped with Bro

Then I typed "make"
broccoli_intern_wrap.c:8557: error: ‘Swig_var_bro_debug_messages_get’ undeclared (first use in this function)
broccoli_intern_wrap.c:8557: error: ‘Swig_var_bro_debug_messages_set’ undeclared (first use in this function)
broccoli_intern_wrap.c:8558: warning: implicit declaration of function ‘SWIG_Python_SetConstant’
broccoli_intern_wrap.c:8558: warning: implicit declaration of function ‘SWIG_From_int’
error: command ‘gcc’ failed with exit status 1
make[4]: *** [pybroccoli] Error 1
make[4]: Leaving directory /home/shsaad/Apps/IDS/bro-1.5.1/aux/broctl'<br>make[3]: *** [all-recursive] Error 1<br>make[3]: Leaving directory /home/shsaad/Apps/IDS/bro-1.5.1/aux’
make[2]: *** [all] Error 2
make[2]: Leaving directory /home/shsaad/Apps/IDS/bro-1.5.1/aux'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory /home/shsaad/Apps/IDS/bro-1.5.1’
make: *** [all] Error 2

I do not know what is the problem exactly

Thanks
Sherif
|

I've been working on debian packages for Bro, you probably also need:

build-essential
python-dev
libpcap-dev

and don't use shippedpcap

and if you plan on running broctl, the 'time' package

Then it should build without any issues.

Do you have python-dev and python2.5-dev installed as well? If I remember correctly, the configure script doesn't really seem to look for the presence of the python libraries, so you can imagine the results if you don't have them installed when compiling the python-based broccoli. My home bro setup uses ubuntu, so I know it can be made to work. :slight_smile:

-Lou

That looks like a problem similar to one we have heard about
earlier: a config difference between your system and the system
generating the Python bindings for Broccoli.

There's an experimental patch to fix such problems, I'm attaching
it. Can you see if that helps already?

Thanks,

Robin

bro-swig-fix.diff (218 KB)