Error while trying to compile Bro


I am trying to get bro working on my system:
$ uname -a
OpenBSD 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; \ then mv -f ".deps/TCP_Rewriter.Tpo" ".deps/TCP_Rewriter.Po"; else rm -f ".deps/TCP_Rewriter.Tpo"; exit 1; fi In member function int TCP_TracePacket::Finish(pcap_pkthdr*&,
const u_char*&, int&, unsigned int, unsigned int)’: error: no match for ‘operator=’ in ’
this->TCP_TracePacket::pcap_hdr.pcap_pkthdr::ts =
/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.

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

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,