# Error while trying to compile Bro

**URL:** <https://community.zeek.org/t/error-while-trying-to-compile-bro/1346>\
**Category:** Zeek\
**Created:** [June 8, 2008, 4:11pm UTC](https://community.zeek.org/t/error-while-trying-to-compile-bro/1346 "2008-06-08T16:11:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory\_Edigarov](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@Gregory\_Edigarov](https://community.zeek.org/u/Gregory_Edigarov)\
**Post date:** [June 8, 2008, 4:11pm UTC](https://community.zeek.org/t/error-while-trying-to-compile-bro/1346/1 "2008-06-08T16:11:56Z")

</div>

Hello,

I am trying to get bro working on my system:  
$ uname -a  
OpenBSD [edigarov.sa.net.ua](http://edigarov.sa.net.ua/) 4.3 GENERIC#0 amd64  
$

I am getting the following error.  
As Bro is written in C++, and I am not a speciallist in this language (I am a C guy, after all) I am asking you to help:

gmake[4]: Entering directory `/usr/home/greg/bro-1.2.1/src' if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../src/binpac/lib -I../src -I. -I.. -Ilibedit -O -W -Wall -Wno-unused -g -O2 -MT TCP_Rewriter.o -MD -MP -MF ".deps/TCP_Rewriter.Tpo" -c -o TCP_Rewriter.o TCP_Rewriter.cc; \ then mv -f ".deps/TCP_Rewriter.Tpo" ".deps/TCP_Rewriter.Po"; else rm -f ".deps/TCP_Rewriter.Tpo"; exit 1; fi TCP_Rewriter.cc: In member function `int TCP\_TracePacket::Finish(pcap\_pkthdr\*&,  
const u\_char\*&, int&, unsigned int, unsigned int)’:  
TCP\_Rewriter.cc:328: error: no match for ‘operator=’ in ’  
this-\>TCP\_TracePacket::pcap\_hdr.pcap\_pkthdr::ts =  
double\_to\_timeval(double)()’  
/usr/include/net/bpf.h:129: error: candidates are: bpf\_timeval&  
bpf\_timeval::operator=(const bpf\_timeval&)  
gmake[4]: \*\*\* [TCP\_Rewriter.o] Error 1  
gmake[4]: Leaving directory `/usr/home/greg/bro-1.2.1/src' gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory `/usr/home/greg/bro-1.2.1/src’  
gmake[2]: \*\*\* [all] Error 2  
gmake[2]: Leaving directory `/usr/home/greg/bro-1.2.1/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/home/greg/bro-1.2.1’  
gmake: \*\*\* [all] Error 2

Thanks a lot in advance.

---

<div class="post-metadata">

**Author:** ![jean-philippe\_luiggi](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@jean-philippe\_luiggi](https://community.zeek.org/u/jean-philippe_luiggi)\
**Post date:** [June 8, 2008, 10:28pm UTC](https://community.zeek.org/t/error-while-trying-to-compile-bro/1346/2 "2008-06-08T22:28:37Z")

</div>

Hello everybody,

I can't remember if i compiled directly (aka without tweaks) Bro 1.2.1  
on OpenBSD (i'm sure it was not 4.3) but speaking of the last  
release of Bro (1.3.2), it works perfectly on the last release of  
"puffy".

May i suggest you switch/use 1.3.2 because the  
following line remember me to the problems i ran into.

> /usr/include/net/bpf.h:129: error: candidates are: bpf\_timeval&  
> bpf\_timeval::operator=(const bpf\_timeval&)

With regards,

Jean-Philippe.

---

<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:38pm UTC](https://community.zeek.org/t/error-while-trying-to-compile-bro/1346/3 "2022-05-06T15:38:34Z")

</div>


