cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problems using libcurl with c-ares

From: Spork Schivago <sporkschivago_at_gmail.com>
Date: Wed, 27 Aug 2014 23:13:18 -0400

I think I found the problem possibly....I ran an example I found for
c-ares that uses the ares_gethostbyaddr and it works on my host system
but not on the PS3. I keep getting an error, ARES_ENOTFOUND, which
means domain name not found. I started looking at the c-ares source
code and I noticed in ares_private.h, PATH_RESOLV_CONF gets defined to
/etc/resolv.conf, PATH_HOSTS gets defined to /etc/hosts. Those
files don't exist on the PS3. I wonder if I can hard code some
values in c-ares some how. Thanks for putting me on the right track.

On 8/27/14, Spork Schivago <sporkschivago_at_gmail.com> wrote:
> I have a good suspicion it works. A PS3 Developer has been using it
> in his EFL libraries for a long time now. His PS3-EFL stuff uses
> c-ares 1.7.4 though. I was thinking of maybe trying to compile
> libcurl with c-ares 1.7.4 to see if it works just to rule out some
> stuff. I don't know a lot about curl or c-ares. Where are the test
> tools? I can try running them on the PS3 to verify.
>
> On 8/27/14, Daniel Stenberg <daniel_at_haxx.se> wrote:
>> On Tue, 26 Aug 2014, Spork Schivago wrote:
>>
>>> and when I execute it on the PS3, I get this error message:
>>> curl_easy_perform() failed: Couldn't resolve host name
>>>
>>> Could some one please help me figure out what I'm doing wrong? If I
>>> compile libcurl without c-ares, it works as expected. I'm using
>>> c-ares version 1.10.0, libcurl version 7.37.1 and polarssl version
>>> 1.3.7. Any help would be greatly appreciated.
>>
>> And you know c-ares works in general on this platform? Like the test
>> tools
>> c-ares has?
>>
>> --
>>
>> / daniel.haxx.se
>> -------------------------------------------------------------------
>> List admin: http://cool.haxx.se/list/listinfo/curl-library
>> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-08-28