[Bro] Build Fail on OS X Lion

Chuck L. mdmonk at gmail.com
Wed Nov 23 15:05:07 PST 2011


Here's the build log snippet after adding the code you suggested:

[ 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
In file included from /DG/BUILD/bro/build/src/netflow_pac.cc:3:
/DG/BUILD/bro/build/src/netflow_pac.h:19: error: ‘EventMgr’ does not name a type
/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
make[3]: *** [src/CMakeFiles/bro.dir/netflow_pac.cc.o] Error 1
make[2]: *** [src/CMakeFiles/bro.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

#-----------------------------------------------
Chuck Little
Security Engineer, Geek
GPG key: F14EAD4C
GPG fprint: AE4D 367F C946 919B CB8C
         5BD0 490D 8B9F F14E AD4C
#-----------------------------------------------

On Nov 23, 2011, at 3:18 PM, Siwek, Jonathan Luke wrote:

>> 
>> [ 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:
> 
> %extern{
> #include "net_util.h"
> #include "Event.h"
> #include "Type.h"
> extern EventMgr mgr;
> extern RecordType* conn_id;
> %}
> 
> +Jon

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20111123/e47a61bf/attachment.bin 


More information about the Bro mailing list