[Date Prev][Date Next]
(ITS#3626) res_query and Mac OS X
Full_Name: Finlay Dobbie
OS: Mac OS X v10.3
Submission from: (NULL) (220.127.116.11)
At the indicated URL is a patch which resolves the issue referred to in the FAQ
Mac OS X v10.3 (Darwin 8) and later ship with both the BIND 8 and BIND 9 APIs.
The BIND 8 API is in libSystem, and thus is picked up by autoconf's check for
res_query. However, resolv.h defaults to the BIND 9 API, which is provided by
libresolv. The workaround is either to #define BIND_8_COMPAT or add -lresolv to
The attached patch uses AC_TRY_LINK to attempt to link a small program which
attempts to call res_query, and if it fails, tries again with -lresolv.