curl-library
Re: Porting libcurl on Android with SSL Support
Date: Mon, 9 Jul 2012 03:08:27 +0200
Update :
I got the following config after fixing my standalone toolchain path
(missed a - in the path)
curl version: 7.26.0
Host setup: arm-unknown-linux-androideabi
Install prefix: /usr/local
Compiler: arm-linux-androideabi-gcc
SSL support: no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls} )
SSH support: enabled (libSSH2)
zlib support: enabled
krb4 support: no (--with-krb4*)
GSSAPI support: no (--with-gssapi)
SPNEGO support: no (--with-spnego)
TLS-SRP support: no (--enable-tls-srp)
resolver: default (--enable-ares / --enable-threaded-resolver)
ipv6 support: no (--enable-ipv6)
IDN support: no (--with-libidn)
Build libcurl: Shared=yes, Static=yes
Built-in manual: enabled
--libcurl option: enabled (--disable-libcurl-option)
Verbose errors: enabled (--disable-verbose)
SSPI support: no (--enable-sspi)
ca cert bundle: /etc/ssl/certs/ca-certificates.crt
ca cert path: no
LDAP support: no (--enable-ldap / --with-ldap-lib /
--with-lber-lib)
LDAPS support: no (--enable-ldaps)
RTSP support: enabled
RTMP support: no (--with-librtmp)
Protocols: DICT FILE FTP GOPHER HTTP IMAP POP3 RTSP SCP SFTP SMTP
TELNET TFTP
SONAME bump: yes - WARNING: this library will be built with the SONAME
number bumped due to (a detected) ABI breakage.
See lib/README.curl_off_t for details on this.
and ofcourse, I got a compile error because of the libssh.. no idea where
it came from .. libz is there though..
and so.. I need to disable ssh and enable ssl...
Getting close though :)
any assistance would be appreciated Grately..
Tancho
On Wed, Jul 4, 2012 at 7:53 PM, Tancho . <smarkovik_at_gmail.com> wrote:
> Hey guys,
>
> I have tried to port libcurl to android but ran into some issues, and
> would appreciate the help you could provide
> so, I have successfully configured libcurl and it's compilable without
> SSL support, but when I link to OpenSSL I get the following errors :
>
> Compile thumb : curl <= curl_ntlm_core.c
> Compile thumb : curl <= curl_ntlm_msgs.c
> Prebuilt : libssl.so <= jni/include/precompiled/libssl/lib/
> StaticLibrary : libcurl.a
> Executable : curly
> jni/src/tool_paramhlp.c:321: error: undefined reference to 'getpass_r'
> jni/lib/ssluse.c:395: error: undefined reference to 'ENGINE_ctrl'
> jni/lib/ssluse.c:402: error: undefined reference to 'ENGINE_ctrl_cmd'
> jni/lib/ssluse.c:554: error: undefined reference to
> 'ENGINE_load_private_key'
> jni/lib/ssluse.c:1629: error: undefined reference to
> 'SSL_CTX_set_srp_username'
> jni/lib/ssluse.c:1633: error: undefined reference to
> 'SSL_CTX_set_srp_password'
> jni/lib/ssluse.c:697: error: undefined reference to
> 'ENGINE_load_builtin_engines'
> jni/lib/ssluse.c:724: error: undefined reference to 'ENGINE_cleanup'
> jni/lib/ssluse.c:774: error: undefined reference to 'ENGINE_by_id'
> jni/lib/ssluse.c:790: error: undefined reference to 'ENGINE_finish'
> jni/lib/ssluse.c:791: error: undefined reference to 'ENGINE_free'
> jni/lib/ssluse.c:794: error: undefined reference to 'ENGINE_init'
> jni/lib/ssluse.c:797: error: undefined reference to 'ENGINE_free'
> jni/lib/ssluse.c:817: error: undefined reference to 'ENGINE_set_default'
> jni/lib/ssluse.c:818: error: undefined reference to 'ENGINE_get_id'
> jni/lib/ssluse.c:822: error: undefined reference to 'ENGINE_get_id'
> jni/lib/ssluse.c:842: error: undefined reference to 'ENGINE_get_first'
> jni/lib/ssluse.c:842: error: undefined reference to 'ENGINE_get_next'
> jni/lib/ssluse.c:843: error: undefined reference to 'ENGINE_get_id'
> jni/lib/ssluse.c:991: error: undefined reference to 'ENGINE_finish'
> jni/lib/ssluse.c:992: error: undefined reference to 'ENGINE_free'
> collect2: ld returned 1 exit status
>
> and the reason is that OpenSSL was build with the macro OPENSSL_NO_ENGINE
> so I tried to enable the engine support but there were loads of
> #ifdef ANDROID
> #define NO_ENGINE
> #endif
> so I thought it was best if I don't mess with it.
>
> so my question:
> Is it possible to build libcurl for Android with openssl which was built
> wit the OPENSSL_NO_ENGINE macro defined?
>
> thanks
>
> Tancho
>
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-07-09