cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl and android

From: Jean-Bernard Collet <collet.jb_at_gmail.com>
Date: Thu, 24 Jun 2010 20:56:21 +0200

I have corrected the configuration command. As soon as everything works, I
will write an article on my blog with the exact command and details.

I think libcurl is compiled (libcurl.a), but there is still an issue with
the executable... I have to look on my project if I need it.

Here is the error :

[code]

(...)
In file included from <command-line>:0:
./system/core/include/arch/linux-arm/AndroidConfig.h:107:1: warning: this is
the location of the previous definition
target StaticLib: libcurl
(out/target/product/generic/obj/STATIC_LIBRARIES/libcurl_intermediates/libcurl.a)
target Executable: curl
(out/target/product/generic/obj/EXECUTABLES/curl_intermediates/LINKED/curl)
out/target/product/generic/obj/EXECUTABLES/curl_intermediates/src/main.o: In
function `checkpasswd':
/home/jb/sdk/android/mydroid2.2/external/curl/src/main.c:1648: undefined
reference to `getpass_r'
collect2: ld returned 1 exit status
make: ***
[out/target/product/generic/obj/EXECUTABLES/curl_intermediates/LINKED/curl]
Error 1

[/code]

Thanks again for your help.

Jb

On Thu, Jun 24, 2010 at 8:18 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Thu, 24 Jun 2010, Jean-Bernard Collet wrote:
>
> (Please don't top-post)
>
>
> external/curl/lib/url.c:73:2: error: #error "We can't compile without
>> socket() support!"
>>
>
> This means configure didn't find the socket() function, or rather figured
> out how to use it correctly. If you check config.log you'll see its attempts
> and how it failed. You need to help it complete that test successfully, as
> otherwise it cannot use select() and then you cannot build libcurl...
>
> --
>
> / daniel.haxx.se
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

-- 
Jb Collet
-----------------------------------------------------------
Student - Master 2
University of Namur
phone: +32 499 35 43 37
email:  collet.jb_at_gmail.com
-----------------------------------------------------------

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-24