cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Libcurl and Android

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 13 Aug 2013 21:22:08 +0200

On Tue, Aug 13, 2013 at 04:35:33PM +0400, Egor Utsov wrote:
>  I have following errors:
>
> D/jcurl   ( 1393): 0: Rebuilt URL to: http://curl.haxx.se/
> D/jcurl   ( 1393): 0: Curl_ipv4_resolve_r failed for curl.haxx.se
> D/jcurl   ( 1393): 0: Couldn't resolve host 'curl.haxx.se'
> D/jcurl   ( 1393): 0: Closing connection 1
>
> D/jcurl   ( 1456): 0: Rebuilt URL to: 80.67.6.50/
> D/jcurl   ( 1456): 0: About to connect() to 80.67.6.50 port 80 (#0)
> D/jcurl   ( 1456): 0: couldn't connect to host at 80.67.6.50:80
> D/jcurl   ( 1456): 0: Closing connection 0
>
> libcurl: 7.32.0
> Android: 4.0
> Kernel-version: 3.0.8
>
> I have compiled the library with standalone toolchain with
> arm-linux-androideabi-gcc-4.6. I have tried two versions of NDK(r8e and r9),
> but both gave me the same results.Ping works.
> Can you help me with this issue?

What is the result of 'egrep "GETADDRINFO|GETHOSTBYNAME" lib/curl_config.h'?
There's a good chance that whatever resolver libcurl is ending up using from
Bionic, isn't quite working according to specifications. Does the version being
used in Curl_ipv4_resolve_r look like the one Bionic actually supports? Can you
try to force another version to be used and see if that works any better?

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-08-13