Re: [exim] building exim on OSX against *external* bind9 (*n…

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: OpenMacNews
CC: exim-users
Subject: Re: [exim] building exim on OSX against *external* bind9 (*not* w/ BIND_8_COMPAT) failing @ make
On Wed, 12 Jan 2005, OpenMacNews wrote:
>
> i note the OSX/Darwin default makefile contains:
>
>     CFLAGS=-O -no-cpp-precomp -DBIND_8_COMPAT

>
> which, per apple's guidelines, binds againt OSX's bundled bind resolver
> (-lresolv) using its compat library. builds/works great.
>
> i'd now like to instead build exim against an external instance of bind9.


Why?

> although i've managed to figure out binding against external berkeley db,
> etc., bind9 is a mite confusing.
> in any iteration i've tried, removing the -DBIND_8_COMAT and (trying to) link
> to the external bind9's resolver (-lbind) results in a make fail.


This is because the native Bind 9 resolver library has a different API to
the standard Unix resolver library, and Exim is written to use the
latter. In order to use programs like Exim with Bind 9's resolver you must
define BIND_8_COMPAT so that Bind 9's implementation of the standard Unix
resolver API is available.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}