[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: BIND 9 compile issue (ITS#2763)
I did some digging. The changes you suggest actually are compatible
with BIND8 and BIND9. The 2.1 code is actually using BIND4 resolver
interfaces (provided in <arpa/nameser_compat.h>). I not aware of
any current system providing BIND4 resolver interfaces, I've just
updated the code. If so, the old code is needed by someone it can
be included:
#if __RES
BIND8/9 code
#else
BIND4
#endif
Kurt
At 06:08 PM 10/14/2003, jtownsend@apple.com wrote:
>On Oct 9, 2003, at 5:57 PM, Howard Chu wrote:
>> The remainder of the patch needs to be #ifdef'd if it is going to break
>> compatibility with older versions of the resolver library.
>
>I have updated the patch file here:
>
>http://homepage.mac.com/townsend/openldap-patches/libraries-
>libldap.patch
>
>It now ifdefs based on _RESOLV_9_H_ to determine whether to use the new
>API or not.
>
>One disadvantage of having to add -lresolv to the LIBS environment
>variable is that it requires that library be linked to by everything
>that is built rather than just libldap. It's certainly easy enough to
>put that into our wrapper Makefile or set it up when running configure.
>This loses a bit of the point of autoconfigure, but I'm not sure how we
>can automatically detect that this library is available or necessary.
>That seems like the better way to go if it is possible.
>
>-Jason