# Errors compiling Bro on OpenBSD 2.9

**URL:** <https://community.zeek.org/t/errors-compiling-bro-on-openbsd-2-9/388>\
**Category:** Zeek\
**Created:** [July 12, 2003, 3:25pm UTC](https://community.zeek.org/t/errors-compiling-bro-on-openbsd-2-9/388 "2003-07-12T15:25:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Jay\_Mand](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@Christopher\_Jay\_Mand](https://community.zeek.org/u/Christopher_Jay_Mand)\
**Post date:** [July 12, 2003, 3:25pm UTC](https://community.zeek.org/t/errors-compiling-bro-on-openbsd-2-9/388/1 "2003-07-12T15:25:02Z")

</div>

Hi,

Ok, I had moved on to FreeBSD and OpenBSD.

The FreeBSD Bro compile works like a champ.

The OpenBSD compile gets the following errors, relating to BIND defines and such.

Any thoughts to fix these (or the Linux) compiles would be most helpful.

Tx!

Chris

Errors on OpenBSD compile:  
creating ./config.status  
creating Makefile  
creating compat\_conf.h  
compat\_conf.h is unchanged  
ar -r libedit.a chared.o common.o el.o emacs.o fcns.o hist.o history.o key.o map.o parse.o prompt.o read.o refresh.o search.o sig.o term.o tokenizer.o tty.o vi.o help.o fgetln.o  
readline.o strlcpy.o  
gcc -I. -Ilibedit -O -c nb\_dns.c  
nb\_dns.c:81: `NS\_MAXDNAME' undeclared here (not in a function)  
nb\_dns.c:81: size of array `name' has non-integer type  
nb\_dns.c: In function `\_nb\_dns\_mkquery':  
nb\_dns.c:274: `NS\_INADDRSZ' undeclared (first use in this function)  
nb\_dns.c:274: (Each undeclared identifier is reported only once  
nb\_dns.c:274: for each function it appears in.)  
nb\_dns.c:279: `NS\_IN6ADDRSZ' undeclared (first use in this function)  
nb\_dns.c:291: `ns\_o\_query' undeclared (first use in this function)  
nb\_dns.c:293: `ns\_c\_in' undeclared (first use in this function)  
nb\_dns.c: In function `nb\_dns\_addr\_request2':  
nb\_dns.c:376: `NS\_MAXDNAME' undeclared (first use in this function)  
nb\_dns.c:376: size of array `name' has non-integer type  
nb\_dns.c:394: `NS\_IN6ADDRSZ' undeclared (first use in this function)  
nb\_dns.c: In function `nb\_dns\_activity':  
nb\_dns.c:457: syntax error before `handle'  
nb\_dns.c:473: `handle' undeclared (first use in this function)  
nb\_dns.c:516: `ns\_f\_rcode' undeclared (first use in this function)  
nb\_dns.c:518: `ns\_r\_nxdomain' undeclared (first use in this function)  
nb\_dns.c:523: `ns\_r\_servfail' undeclared (first use in this function)  
nb\_dns.c:528: `ns\_r\_noerror' undeclared (first use in this function)  
nb\_dns.c:531: `ns\_r\_formerr' undeclared (first use in this function)  
nb\_dns.c:532: `ns\_r\_notimpl' undeclared (first use in this function)  
nb\_dns.c:533: `ns\_r\_refused' undeclared (first use in this function)  
nb\_dns.c:519: warning: unreachable code at beginning of switch statement  
nb\_dns.c:541: `rr' undeclared (first use in this function)  
nb\_dns.c:556: `ns\_s\_an' undeclared (first use in this function)  
nb\_dns.c:572: warning: assignment makes pointer from integer without a cast  
\*\*\* Error code 1

---

<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:36pm UTC](https://community.zeek.org/t/errors-compiling-bro-on-openbsd-2-9/388/2 "2022-05-06T15:36:47Z")

</div>


