I merged from master in a branch I'm working on and the following line is causing trouble…
In file included from /Users/seth/bro/bro.merging/src/Func.cc:531:
bro.bif: In function ‘Val* BifFunc::bro_routing0_data_to_addrs(Frame*, val_list*)’:
bro.bif:2073: error: ‘IPv6’ is not a member of ‘IPAddr’
I merged from master in a branch I'm working on and the following line is causing trouble…
In file included from /Users/seth/bro/bro.merging/src/Func.cc:531:
bro.bif: In function ‘Val* BifFunc::bro_routing0_data_to_addrs(Frame*, val_list*)’:
bro.bif:2073: error: ‘IPv6’ is not a member of ‘IPAddr’
That's correct for master, but I think I saw Robin may have moved that IP Family enum declaration into the global namespace in one branch (maybe log-threads). In your branch, you can probably try just removing the IPAddr:: scoping.
In your branch, you can probably try just removing the IPAddr:: scoping.
I actually tried that already…
/Users/seth/bro/bro.merging/src/IP.cc: In member function ‘RecordVal* IPv6_Hdr::BuildRecordVal(VectorVal*) const’:
/Users/seth/bro/bro.merging/src/IP.cc:77: error: no matching function for call to ‘AddrVal::AddrVal(const in6_addr&)’
/Users/seth/bro/bro.merging/src/IP.cc:78: error: no matching function for call to ‘AddrVal::AddrVal(const in6_addr&)’
/Users/seth/bro/bro.merging/src/IP.cc: In member function ‘void IPv6_Hdr_Chain::Init(const ip6_hdr*, bool, uint16)’:
/Users/seth/bro/bro.merging/src/IP.cc:317: error: no matching function for call to ‘Reporter::Weird(IPAddr&, const in6_addr&, const char [17])’
Those are because in topic/robin/log-threads, the appropriate IPAddr conversion ctors are marked as 'explicit', but they are not marked as such in master. I'd explicitly add the IPAddr() ctor at those lines to fix it since the implicit conversion might be harder to understand when someone's reading code.
The same thing happens when I merge master with my input branch. So - it does not seem to be branch-specific.
Looks like your branch is probably downstream from Robin's, so it makes sense you get the same thing?
Those are because in topic/robin/log-threads, the appropriate IPAddr
conversion ctors are marked as 'explicit', but they are not marked as
such in master.
Yeah, I believe I was running into some ambiguity without the
explicit.
I've done that and fixed it locally like I mentioned above. Let me
know if it's easier for you if I just push it,