Coda File System

Re: Coda for Darwin/MacOS X needs configure patch + kludges for resolver?

From: Stephen J. Turnbull <stephen_at_xemacs.org>
Date: Sat, 07 Aug 2004 15:31:06 +0900
>>>>> "Jan" == Jan Harkes <jaharkes_at_cs.cmu.edu> writes:

    Jan> On Fri, Aug 06, 2004 at 06:10:34PM +0900, Stephen J. Turnbull
    Jan> wrote:
    >> This patch gets configure to do the right thing, and I would
    >> guess it's TheRightThang to put in Coda, too.

    Jan> Applied.

    >> Next, it seems that Panther defaults to BIND 9 in a separate
    >> library, libresolv, but supplies old functions in the main
    >> libc.  So configure decides that no extra library is needed.  I
    >> think the right thing to do is to not use AC_CHECK_FUNCS for
    >> res_init(), but instead test it

    Jan> I guess you mean that the following two tests don't trigger
    Jan> linking against libresolv

    Jan>     AC_SEARCH_LIBS(gethostbyname, resolv)
    Jan>     AC_SEARCH_LIBS(res_search, resolv)

Yes.

    Jan> This would mean that both gethostbyname and res_search are
    Jan> provided by libc, but some other functions are not. For some
    Jan> reason I thought res_init could be a #define, so I picked
    Jan> res_search.

On my box, res_init and res_search both resolve via #define to
res_9_*.  I'm not sure about dn_expand.  So whatever happens by
autoconf default in these cases, we're not searching for the right
functions unless we include the necessary headers to #define them to
BIND 9 versions.

    Jan> We could test for dn_expand or res_init, but I don't know
    Jan> what your libc provides.

All of them, I'm afraid.  I'll take a look, but I think this requires
custom macros for Panther, at least.

BTW, the by-hand workarounds documented in Christus's pages are the
same as what I was doing.


-- 
Institute of Policy and Planning Sciences     http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.
Received on 2004-08-07 02:35:43