# Bro and OpenBSD 4.0 issues

**URL:** <https://community.zeek.org/t/bro-and-openbsd-4-0-issues/1075>\
**Category:** Zeek\
**Created:** [December 4, 2006, 3:14am UTC](https://community.zeek.org/t/bro-and-openbsd-4-0-issues/1075 "2006-12-04T03:14:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Fowler](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@Tim\_Fowler](https://community.zeek.org/u/Tim_Fowler)\
**Post date:** [December 4, 2006, 3:14am UTC](https://community.zeek.org/t/bro-and-openbsd-4-0-issues/1075/1 "2006-12-04T03:14:24Z")

</div>

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](https://community.zeek.org/uploads/short-url/2spy9kuGtSFzqYM6cH2UZoOO7gz.log) (63.5 KB)

---

<div class="post-metadata">

**Author:** ![Jean-Philippe\_Luigg2](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jean-Philippe\_Luigg2](https://community.zeek.org/u/Jean-Philippe_Luigg2)\
**Post date:** [December 4, 2006, 6:36pm UTC](https://community.zeek.org/t/bro-and-openbsd-4-0-issues/1075/2 "2006-12-04T18:36:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Christian\_Kreibich3](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@Christian\_Kreibich3](https://community.zeek.org/u/Christian_Kreibich3)\
**Post date:** [December 5, 2006, 10:51pm UTC](https://community.zeek.org/t/bro-and-openbsd-4-0-issues/1075/3 "2006-12-05T22:51:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jean-Philippe\_Luigg2](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jean-Philippe\_Luigg2](https://community.zeek.org/u/Jean-Philippe_Luigg2)\
**Post date:** [December 6, 2006, 2:09pm UTC](https://community.zeek.org/t/bro-and-openbsd-4-0-issues/1075/4 "2006-12-06T14:09:33Z")

</div>

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. 🙂

Best regards.

---

<div class="post-metadata">

**Author:** ![Christian\_Kreibich3](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@Christian\_Kreibich3](https://community.zeek.org/u/Christian_Kreibich3)\
**Post date:** [December 6, 2006, 8:53pm UTC](https://community.zeek.org/t/bro-and-openbsd-4-0-issues/1075/5 "2006-12-06T20:53:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:38pm UTC](https://community.zeek.org/t/bro-and-openbsd-4-0-issues/1075/6 "2022-05-06T15:38:04Z")

</div>

Closed on May 6, 2022, 3:38pm UTC


