cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: resolving names fail (was Re: openssl and libcurl)

From: Joe Collins <joe_at_myplay.com>
Date: Thu, 07 Jun 2001 18:32:26 -0700

So it looks like the config program didn't like something :(
I went and modified the config.h and define
HAVE_GETHOSTNAME_R_5 1 which my man pages say I have... and it works.

Thanks,

-Joe

I can send you the config.log if that helps any.

Daniel Stenberg wrote:
>
> On Thu, 7 Jun 2001, Joe Collins wrote:
>
> > But I have a weird error. I can't resolve hostnames. I can only use it if
> > I give an ip address.
>
> I find this very strange, but incidently I have just been having a
> "conversation" in an old (closed) bug report where this same problem has been
> observed.
>
> I have not really believed this is actually a true problem, until now. I
> haven't touched the resolver functionality in ages...
>
> http://sourceforge.net/tracker/?func=detail&atid=100976&aid=211548&group_id=976
>
> > The error I get is
> > * gethostbyname_r(2) failed for cartman.sub.myplay.com
> > Couldn't resolve host 'cartman.sub.myplay.com'
>
> Can you resolve _any_ host name? Can you check the 'config.h' file of the
> curl's root directory (it gets generated by the configure script) and run
> "grep HOSTBY config.h" to show us what configure thought of your
> gethostbyname_r() setup...
>
> > I can ping it fine. I've tried "/usr/local/bin/curl http://www.yahoo.com"
> > and get the same error even though I can ping www.yahoo.com fine
> >
> > Any ideas?
>
> There isn't the possibility that you're using an older version of curl (or
> the library)?
>
> Would you have the possibility to debug (single-step through some parts of)
> it (I would be very interested in the error codes etc)? It would also be
> interesting to see if you could enlarge the CURL_NAMELOOKUP_SIZE in
> lib/hostip.c and recompile, to see if that might be the problem.
>
> lib/hostip.c hosts the function Curl_gethost() in which this problem is
> detected.
>
> Hm, does configure detect any IPv6 stuff on your system? (it says something
> like 'checking whether to enable ipv6...')
>
> --
> Daniel Stenberg -- curl dude -- http://curl.haxx.se/
Received on 2001-06-08