[Bro] bro 1.1-current compile error

jmzhou.ml at gmail.com jmzhou.ml at gmail.com
Thu Jul 13 15:00:49 PDT 2006


Hi, apology if this has been reported/fixed. I'm compiling bro on
Mac OS X 10.4.7 (gcc 4.0.1) and get error as the following:


g++ -DHAVE_CONFIG_H -I. -I. -I..  -I. -I../src/binpac -I../src -I. -I.. -Ilibedit   -O -W -Wall -Wno-unused   -g -O2 -c -o TCP.o `test -f TCP.cc || echo './'`TCP.cc
TCP.cc: In member function 'virtual void TCP_Connection::NextPacket(double, int, const IP_Hdr*, int, int, const u_char*&, int&, int&, const pcap_pkthdr*, const u_char*, int)':
TCP_Endpoint.h:170: error: 'uint32 TCP_Endpoint::ack_seq' is protected
TCP.cc:768: error: within this context
TCP_Endpoint.h:170: error: 'uint32 TCP_Endpoint::ack_seq' is protected
TCP.cc:777: error: within this context
make[4]: *** [TCP.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


A quick (crude) fix is to modify TCP_Endpoint.h and move the line
"uint32 start_seq, last_seq, ack_seq;" above "protected:".

Other than this, it seems everything is working smoothly. :-)

Cheers,

Jimmy



More information about the Bro mailing list