cURL / Mailing Lists / curl-library / Single Mail

curl-library

Porting libcurl on Android with SSL Support

From: Tancho . <smarkovik_at_gmail.com>
Date: Wed, 4 Jul 2012 19:53:11 +0200

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-04