Bro and OpenBSD 4.0 issues

Hello Christian,

How are you? I really appreciate the response back. I have attached the
config.log from my last attempted build, which I used the "make" program
that came default with the base install. I tried it again with "gmake" and
received the same errors. In regards to the build I use, here are the
packages I use:

OpenBSD 4.0
bsd, bsd.rd, base40.tgz, comp40.tgz, etc40.tgz, man40.tgz, misc40.tgz

Updates
1. I install the latest version of libpcap.

Thank you,

Tim Fowler

config.log (63.5 KB)

Hello Tim,

Beside of the fact you run the "base" OpenBSD 4.0 and myself the
development's version, i can't figure out (yet) where's the problem.

In didn't notice in the files you sent (but i may be wrong) the result of the "make".
Could you send it please ?

Best regards.

Hi Tim,

thanks for that. Your config.log points out a few things very useful to
us:

- The check for netinet/if_ether.h fails, but not because the file
doesn't exist, but because on OpenBSD compiling a program with it
requires additional headers to be included:

/usr/include/netinet/if_ether.h:140: error: field `ea_hdr' has incomplete type
/usr/include/netinet/if_ether.h:158: error: field `ac_if' has incomplete type
/usr/include/netinet/if_ether.h:161: error: syntax error before "LIST_HEAD"
/usr/include/netinet/if_ether.h:166: error: syntax error before "LIST_ENTRY"
/usr/include/netinet/if_ether.h:222: error: syntax error before "LIST_ENTRY"

- ns_msg is (correctly, I believe) not found, and thus nonblocking DNS
is disabled. As far as we're concerned, our configuration checks work
fine here and we simply can't support nonblocking DNS on OpenBSD at the
moment. Patches are very welcome.

Regarding your build errors, it seems from the output you have posted in
your follow-up email that you also have encountered the parse.cc
problem, since the build stops there. See my mail from yesterday for
possible workarounds.

Cheers,
Christian.

Hello,

Hi Tim,

thanks for that. Your config.log points out a few things very useful to
us:

- The check for netinet/if_ether.h fails, but not because the file
doesn't exist, but because on OpenBSD compiling a program with it
requires additional headers to be included:

/usr/include/netinet/if_ether.h:140: error: field `ea_hdr' has incomplete type
/usr/include/netinet/if_ether.h:158: error: field `ac_if' has incomplete type
/usr/include/netinet/if_ether.h:161: error: syntax error before "LIST_HEAD"
/usr/include/netinet/if_ether.h:166: error: syntax error before "LIST_ENTRY"
/usr/include/netinet/if_ether.h:222: error: syntax error before "LIST_ENTRY"

I didn't get these problems with Current's release, so i built a "simple"
GENERIC installation in order being in the same setup as Tim.

- ns_msg is (correctly, I believe) not found, and thus nonblocking DNS
is disabled. As far as we're concerned, our configuration checks work
fine here and we simply can't support nonblocking DNS on OpenBSD at the
moment. Patches are very welcome.

Same things, no problem with nonblocking DNS for me.
I know about a workaround (using the extra libbind given from a package) and
using a "configure --with-dns-lib" and "configure
--with-dns-include" in order to give the ability to OpenBSD to use them.

Regarding your build errors, it seems from the output you have posted in
your follow-up email that you also have encountered the parse.cc
problem, since the build stops there. See my mail from yesterday for
possible workarounds.

And again i didn't notice this.
I can't (yet) believe there're so much difference between GENERIC and
CURRENT so i know what to do this week end. :slight_smile:

Best regards.

Hi there,

> /usr/include/netinet/if_ether.h:140: error: field `ea_hdr' has incomplete type
> /usr/include/netinet/if_ether.h:158: error: field `ac_if' has incomplete type
> /usr/include/netinet/if_ether.h:161: error: syntax error before "LIST_HEAD"
> /usr/include/netinet/if_ether.h:166: error: syntax error before "LIST_ENTRY"
> /usr/include/netinet/if_ether.h:222: error: syntax error before "LIST_ENTRY"

I didn't get these problems with Current's release, so i built a "simple"
GENERIC installation in order being in the same setup as Tim.

this is only in config.log, did you check there? What does your
configure check for netinet/if_ether report?

> - ns_msg is (correctly, I believe) not found, and thus nonblocking DNS
> is disabled. As far as we're concerned, our configuration checks work
> fine here and we simply can't support nonblocking DNS on OpenBSD at the
> moment. Patches are very welcome.

Same things, no problem with nonblocking DNS for me.
I know about a workaround (using the extra libbind given from a package) and
using a "configure --with-dns-lib" and "configure
--with-dns-include" in order to give the ability to OpenBSD to use them.

So can you tell us which header files define ns_msg in your setup? We
currently rely on that definition being in arpa/nameser.h.

If your libbind installation reliably solves the problem, we might make
this a FAQ and possibly add output to the configure script that tells
OpenBSD people what they need to do.

> Regarding your build errors, it seems from the output you have posted in
> your follow-up email that you also have encountered the parse.cc
> problem, since the build stops there. See my mail from yesterday for
> possible workarounds.

And again i didn't notice this.

Did your configure run pick up bison or yacc?

(Actually, as usual it'd be helpful if you could post the shell output
you get when running configure, as well as the resulting config.log.)

Cheers,
Christian.