cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Errors resolving hosts

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 15 Aug 2002 01:18:57 +0200 (MET DST)

On Wed, 14 Aug 2002, Bill Shaver wrote:

> Forgive me if this is a dumb question, but I have exhausted my resources
> searching for an answer.

It certainly isn't a dumb question!

> But when I attempt to use curl (either via the library routines or directly
> from the curl program) I get a "Couldn't resolve host" error. For example:

[snip]

> Being new to curl and being rusty on my programming, can you suggest any
> tricks for debugging this? Is this a known issue? Any help would be welcome.

I believe this is a bug in the gethostbyname_r-with-3-args code that I've
tried to address in a recent fix. You can either get some recent sources off
CVS, have a go at the 7.9.9-pre1 package or simply apply the patch you find
here:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/curl/curl/lib/hostip.c.diff?r1=1.70&r2=1.71&diff_format=u

I would very much like to know if this corrects the problem or not. I have no
access to any machine that uses that code so I can't verify/debug/test this
myself... :-(

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
Received on 2002-08-15