[Bro] Build Fail on OS X Lion

Chuck L. mdmonk at gmail.com
Wed Nov 23 18:31:20 PST 2011


My bad. I had created another Extern struct. I changed it to your recommendations. Log snippet follows:

Scanning dependencies of target bro
[ 25%] Building C object src/CMakeFiles/bro.dir/version.c.o
[ 26%] Building CXX object src/CMakeFiles/bro.dir/binpac-lib_pac.cc.o
[ 26%] Building CXX object src/CMakeFiles/bro.dir/binpac_bro-lib_pac.cc.o
[ 26%] Building CXX object src/CMakeFiles/bro.dir/bittorrent_pac.cc.o
[ 26%] Building CXX object src/CMakeFiles/bro.dir/dce_rpc_pac.cc.o
[ 27%] Building CXX object src/CMakeFiles/bro.dir/dce_rpc_simple_pac.cc.o
[ 27%] Building CXX object src/CMakeFiles/bro.dir/dhcp_pac.cc.o
[ 27%] Building CXX object src/CMakeFiles/bro.dir/dns_pac.cc.o
[ 27%] Building CXX object src/CMakeFiles/bro.dir/dns_tcp_pac.cc.o
[ 27%] Building CXX object src/CMakeFiles/bro.dir/http_pac.cc.o
[ 29%] Building CXX object src/CMakeFiles/bro.dir/ncp_pac.cc.o
[ 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:14: 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
c: 303-898-4997
#-----------------------------------------------

On Nov 23, 2011, at 5:00 PM, Siwek, Jonathan Luke wrote:

>> 
>> Here's the build log snippet after adding the code you suggested:
> 
> The errors look even funkier now -- when you added code to net_flow.pac, was it just the two new lines in the %extern block or did you add a whole other block?  I meant the former (a single %extern block that looks like what I showed).
> 
> Also, can you send your build/CMakeCache.txt so I can check the environment?
> 
> +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/0b254803/attachment.bin 


More information about the Bro mailing list