[Top][All Lists]

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

Re: Bug#184573: missing res_search in -lresolv

From: GOTO Masanori
Subject: Re: Bug#184573: missing res_search in -lresolv
Date: Thu, 27 Mar 2003 17:08:27 +0900
User-agent: Wanderlust/2.9.9 (Unchained Melody) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigoryƍmae) APEL/10.3 Emacs/21.2 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)

Ah, I found the problem.  It's your miss.

At Thu, 13 Mar 2003 10:51:05 +0100,
Robert Millan wrote:
> res_search is not present in -lresolv for libc0.3. from an autoconf test:
> $ cat test.c
> /* Override any gcc2 internal prototype to avoid an error.  */
> /* We use char because int might match the return type of a gcc2
>     builtin and then its argument prototype would still apply.  */
> char res_search();
> int main()
> {
>   res_search();
>   return 0;
> }
> $ gcc test.c -o /dev/null -lresolv
> /tmp/cct24sIo.o(.text+0x11): In function `main':
> : undefined reference to `res_search'
> collect2: ld returned 1 exit status

Program should be 

#include <resolv.h>
int main()
  res_search(const char *dname, int class, int type,
              unsigned char *answer, int anslen);
  return 0;

Look at resolv.h.  You find the below definition:

        #define res_search              __res_search

I don't think it's bug, so I would like to close this report, ok?

-- gotom

reply via email to

[Prev in Thread] Current Thread [Next in Thread]