# Installing Bro-1.5.1 Ubuntu 9.10 Problem with gcc

**URL:** <https://community.zeek.org/t/installing-bro-1-5-1-ubuntu-9-10-problem-with-gcc/1579>\
**Category:** Zeek\
**Created:** [February 11, 2010, 3:05pm UTC](https://community.zeek.org/t/installing-bro-1-5-1-ubuntu-9-10-problem-with-gcc/1579 "2010-02-11T15:05:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssm\_as](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@ssm\_as](https://community.zeek.org/u/ssm_as)\
**Post date:** [February 11, 2010, 3:05pm UTC](https://community.zeek.org/t/installing-bro-1-5-1-ubuntu-9-10-problem-with-gcc/1579/1 "2010-02-11T15:05:47Z")

</div>

> 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  
> |

---

<div class="post-metadata">

**Author:** ![Justin\_Azoff](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@Justin\_Azoff](https://community.zeek.org/u/Justin_Azoff)\
**Post date:** [February 11, 2010, 4:08pm UTC](https://community.zeek.org/t/installing-bro-1-5-1-ubuntu-9-10-problem-with-gcc/1579/2 "2010-02-11T16:08:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Lou\_Ruppert1](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@Lou\_Ruppert1](https://community.zeek.org/u/Lou_Ruppert1)\
**Post date:** [February 11, 2010, 4:14pm UTC](https://community.zeek.org/t/installing-bro-1-5-1-ubuntu-9-10-problem-with-gcc/1579/3 "2010-02-11T16:14:40Z")

</div>

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. 🙂

-Lou

---

<div class="post-metadata">

**Author:** ![robin](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/robin/32/599_2.png) [@robin](https://community.zeek.org/u/robin)\
**Post date:** [February 11, 2010, 4:15pm UTC](https://community.zeek.org/t/installing-bro-1-5-1-ubuntu-9-10-problem-with-gcc/1579/4 "2010-02-11T16:15:22Z")

</div>

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](https://community.zeek.org/uploads/short-url/xk4FMlrZvX1L1YsSRULlv1R8jGj.diff) (218 KB)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:39pm UTC](https://community.zeek.org/t/installing-bro-1-5-1-ubuntu-9-10-problem-with-gcc/1579/5 "2022-05-06T15:39:01Z")

</div>


