[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#184573: missing res_search in -lresolv



At Thu, 27 Mar 2003 09:54:08 -0500,
Daniel Jacobowitz wrote:
> 
> On Thu, Mar 27, 2003 at 03:50:00PM +0100, Alfred M. Szmidt wrote:
> >    i.e. "res_search" is only available if the oldest version of glibc for
> >    that platform was 2.0.x, I believe.
> > 
> >    Whether this is standards conforming or not you'll have to take up with
> >    someone who knows POSIX better.
> > 
> > res_search has nothing todo with POSIX.
> 
> With someone who knows the relevant standard if there is one, then.

I don't know, too.  At least at the present SUSv3 does not mention
about res_search (and they're BSD derived functions), so we don't need
to worry about it?  Well if someone know about it in detail, I also
would like to know more.

At Thu, 27 Mar 2003 08:46:20 -0500,
Daniel Jacobowitz wrote:
> #if SHLIB_COMPAT(libresolv, GLIBC_2_0, GLIBC_2_2)
> # undef res_mkquery
> # undef res_query
> # undef res_querydomain
> # undef res_search
> weak_alias (__res_mkquery, res_mkquery);
> weak_alias (__res_query, res_query);
> weak_alias (__res_querydomain, res_querydomain);
> weak_alias (__res_search, res_search);
> #endif
> 
> i.e. "res_search" is only available if the oldest version of glibc for
> that platform was 2.0.x, I believe.

That's right.  

At least /usr/include/resolv.h (which are also BSD derived) defines
#define res_search __res_search.  In addition using a function needs
to include the valid header file.  So I think the autoconf detection
program should include resolv.h, and this problem is gone.

Regards,
-- gotom



Reply to: