# compile problems on Mac OS X (with XCode 1.2 and BIND9)

**URL:** <https://community.zeek.org/t/compile-problems-on-mac-os-x-with-xcode-1-2-and-bind9/548>\
**Category:** Zeek\
**Created:** [July 20, 2004, 7:39am UTC](https://community.zeek.org/t/compile-problems-on-mac-os-x-with-xcode-1-2-and-bind9/548 "2004-07-20T07:39:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vern](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/vern/32/630_2.png) [@Vern](https://community.zeek.org/u/Vern)\
**Post date:** [July 20, 2004, 7:39am UTC](https://community.zeek.org/t/compile-problems-on-mac-os-x-with-xcode-1-2-and-bind9/548/1 "2004-07-20T07:39:19Z")

</div>

> What I'm doing in the attached patch is
> 
> 1. check whether you're running Darwin  
> 2. if so, test whether just including arpa/nameser.h gives you HEADER  
> 3. if 2 fails, include arpa/nameser\_compat.h and use -lresolv instead of  
> /usr/lib/libresolv.a

Thanks, I've integrated this and it'll be included in the next release.  
My Darwin setup is evidently a bit unusual (since I didn't encounter the  
problems that Ruoming & Brian did), so if others can please test this when  
it goes out, I'd appreciate it.

&nbsp;&nbsp;&nbsp;&nbsp;Vern

---

<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:37pm UTC](https://community.zeek.org/t/compile-problems-on-mac-os-x-with-xcode-1-2-and-bind9/548/2 "2022-05-06T15:37:05Z")

</div>

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


