[Bro-Dev] [JIRA] (BIT-1516) openbsd build issues

Justin Azoff (JIRA) jira at bro-tracker.atlassian.net
Tue Dec 29 10:42:00 PST 2015

    [ https://bro-tracker.atlassian.net/browse/BIT-1516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=23503#comment-23503 ] 

Justin Azoff commented on BIT-1516:

Trying to get the test suite to run:

sudo ln -s /usr/local/bin/python2.7 /usr/local/bin/python

to get it to find python..

The testing makefile fails with:

mktemp: insufficient number of Xs in template `brocov.tmp.XXX'

apparently you need 6 X's. same for aux/btest/sphinx/btest-rst-cmd

even though it seems to run fine, it outputs
  bro:/usr/lib/libc.so.73.1: /usr/local/lib/libbind/libbind.so.4.0 : WARNING: symbol(_res) size mismatch, relink your program

every time you run it, which is making btest think every test failed.. I added

grep -v 'relink your program'

to btest-diff in 2 places as a hack to work around that... and it is still showing up in some places..

Plugin testing looks to be broken:

plugins.api-version-mismatch ... failed
  % 'bash /home/vagrant/bro-2.4.1/testing/btest/.tmp/plugins.api-version-mismatch/api-version-mismatch.sh' failed unexpectedly (exit code 1)
  % cat .stderr
  find: -not: unknown option
  cat: src/Plugin.cc: No such file or directory

End result:

32 of 802 tests failed, 61 skipped

> openbsd build issues
> --------------------
>                 Key: BIT-1516
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-1516
>             Project: Bro Issue Tracker
>          Issue Type: Problem
>          Components: Bro
>    Affects Versions: 2.4
>         Environment: OpenBSD
>            Reporter: Justin Azoff
>            Priority: Low
>              Labels: openbsd
>         Attachments: openbsd_diag.log.gz
> 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:
> {code}
> -            HINTS ${BIND_ROOT_DIR}/lib
> +            HINTS ${BIND_ROOT_DIR}/lib/libbind
> {code}
> This probably needs to be 
> {code}
>     HINTS ${BIND_ROOT_DIR}/lib ${BIND_ROOT_DIR}/lib/libbind
> {code}
> or such to not break other platforms
> The second is that {code}pcap_offline_filter{code} 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 {code}wordexp{code} so src/broxygen/Manager.cc does not build. I ifdef'd it out most of {code}Manager::Manager{code} and bro built ok after that.  I'm not sure what it is doing there anyway..

This message was sent by Atlassian JIRA

More information about the bro-dev mailing list