[exim] building exim on OSX against *external* bind9 (*not* …

Etusivu
Poista viesti
Vastaa
Lähettäjä: OpenMacNews
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] building exim on OSX against *external* bind9 (*not* w/ BIND_8_COMPAT) failing @ make
hi all,

i'm new (well, mostly) to exim4 ... hopping off & over from the postfix
bandwagon =)

i've built my 1st instance of exim4.43 on OSX 10.3.7

        >>> exim binary built


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.

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.

currently, pulling guidance from './OS/Makefile-Unixware7' which contains the
only ref to lbind/lresolv, i've in Local/Makefile:

...
CFLAGS=-O -no-cpp-precomp -I/usr/local/bind9/include -I/usr/include
LFLAGS=-L/usr/local/bind9/lib
INCLUDE=-I/usr/local/berkeley-db/include
EXTRALIBS= -ldl -lpam
EXTRALIBS_EXIM=-L/usr/local/lib -lwrap
...
USE_DB=yes
DBMLIB=/usr/local/berkeley-db/lib/libdb.dylib
...
LOOKUP_INCLUDE=-I/usr/local/pgsql/include
LOOKUP_LIBS=-L/usr/local/pgsql/lib -lpq -lbind


which, upon make, generates:

...
cc -c -O -no-cpp-precomp -I/usr/local/bind9/include -I/usr/include
-I/usr/local/berkeley-db/include -I/usr/local/ssl/include/
-I/usr/local/pgsql/include dnsdb.c
dnsdb.c:39: error: `T_A' undeclared here (not in a function)
...
make[2]: *** [dnsdb.o] Error 1
...
make[1]: *** No rule to make target `lookups/lookups.a', needed by `exim'.
Stop.
make: *** [go] Error 2

############
## question:
#

is there particular guidance for where/how to link the external bind libs?

i'm sure i've misconfigured something here ... and suspect its in LOOKUP_LIBS,
but haven't found the secret sauce yet.


any pointers?

thx!


richard