[Bro] Build Fail on OS X Lion

Siwek, Jonathan Luke jsiwek at illinois.edu
Wed Nov 23 14:18:05 PST 2011

> [ 29%] Building CXX object src/CMakeFiles/bro.dir/netflow_pac.cc.o
> In file included from /DG/BUILD/bro/build/src/netflow_pac.cc:3:
> /DG/BUILD/bro/build/src/netflow_pac.h:13: error: expected initializer before ‘*’ token
> /DG/BUILD/bro/build/src/netflow_pac.cc: In member function ‘bool binpac::NetFlow::NetFlow_Flow::deliver_v5_header(binpac::uint16, binpac::uint32, binpac::uint32, binpac::uint32, binpac::uint32, binpac::uint8, binpac::uint8, binpac::uint16)’:
> /DG/BUILD/bro/build/src/netflow_pac.cc:158: error: ‘mgr’ was not declared in this scope
> /DG/BUILD/bro/build/src/netflow_pac.cc: In member function ‘bool binpac::NetFlow::NetFlow_Flow::deliver_v5_record(binpac::uint32, binpac::uint32, binpac::uint32, binpac::uint16, binpac::uint16, binpac::uint32, binpac::uint32, binpac::uint32, binpac::uint32, binpac::uint16, binpac::uint16, binpac::uint8, binpac::uint8, binpac::uint8, binpac::uint16, binpac::uint16, binpac::uint8, binpac::uint8)’:
> /DG/BUILD/bro/build/src/netflow_pac.cc:225: error: ‘mgr’ was not declared in this scope

So I didn't notice anything different about your netflow_pac.cc/netflow_pac.h from mine that seemed suspect, but now I'm thinking the errors might be legit (not sure what differs in your environment, though).  What happens if you edit your src/netflow.pac to have an %extern block that looks like:

#include "net_util.h"
#include "Event.h"
#include "Type.h"
extern EventMgr mgr;
extern RecordType* conn_id;


More information about the Bro mailing list