hansell@cis.ohio-state.edu (Timothy Hansell) (02/27/90)
In trying to compile AMS with the resolver library I ran into the following problem All of the AMS source that uses the resolver wants to find the include as <resolv.h>. On my system the include is actully in <arpa/resolv.h>. I get a makedepend error because of this one. Is there a fix or have I done something wrong ? in my site.mcr file I have the line RESOLVELIB = /usr/lib/libresolv.a Do I need something else ? -- Tim Hansell hansell@cis.ohio-state.edu P.O. Box 687 South Charleston, Ohio, 45268
ghoti+@ANDREW.CMU.EDU (Adam Stoller) (02/28/90)
Excerpts from internet.info-andrew: 27-Feb-90 AMS <-> resolver problems
w.. Timothy Hansell@cis.ohio (509)
> All of the AMS source that uses the resolver wants to find the include
as <resolv.h>. On my system the include is actully in <arpa/resolv.h>.
I can think of 3 solutions - each one probably has weak and strong points:
(1) either get resolv.h installed along the "main" include path, or
linked into it.
(2) change your configuration files so that the standard list of include
paths (i.e. INCLUDES= or whatever it is) includes -I/...../apra
(3) have the offending code patched so that it get's ifdef'd - along the
lines of:
#ifdef SOME_SYSTEM_FLAG??
#include <arpa/resolv.h>
#else
#include <resolv.h>
#endif
As I said - all of these may have problems in any given environment -
(1) involves changes to your system tree, (2) involves changes to your
site.mcr file, (3) involves changes here, but once done other sites
won't have to run into the same problem again -- if the situation is
actaully "standard" for that system-type as opposed to caused by how
your site installed the bind package.
--fish