openbsd build issues
Someone on IRC asked about bro on openbsd issues. I took a look and here is what I have found so far. There are 3 issues:
bro needs the libbind port installed to build, but cmake has trouble finding it
Changing FindBIND.cmake lets configure works:
This probably needs to be
or such to not break other platforms
The second is that
does not exist in the version of pcap it has (though I did my testing on openbsd 5.5 so the latest (5.8) may be different)
Finally, openbsd does not have
so src/broxygen/Manager.cc does not build. I ifdef'd it out most of
and bro built ok after that. I'm not sure what it is doing there anyway..
I've applied the patch to the branch now.
Thanks Jon for helping with this ticket.
I will do a little more testing, then I'll apply the patch to my branch.
Great, thank you .
Do you just want to apply the new patch to your topic, or should I do that during merging?
Yeah, mtime2.patch should be alright.
I've attached an improved patch (mtime2.patch).
This patch does the following:
1) if bro is run without "-X", then don't even try to get the mtime of bro
2) if bro is run with "-X" it will try to get the mtime of bro as before, but now
it will just use the PATH as-is (no tilde expansion)
3) if bro fails to get the mtime of bro for any reason, then it will abort with
an error message as before, but now the error message text has been improved
to give the user a clue of what to do (just run bro with a relative or absolute path).
Jon, does this patch look OK?