cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem linking with openssl lib on Android

From: JOHAN LANTZ <johan.lantz_at_telefonica.com>
Date: Sun, 10 Apr 2016 12:10:29 +0000

Hi

I have built curl as a static lib as well as lib crypto and libssl. Now I am trying to put all of this into a dynamic .so but I am stuck with some strange linker errors that I have pasted below.

The confusing part is that when I run nm on the crypto and ssl libs I do find the symbols.

  * For libcrypto: https://gist.github.com/johanlantz/72f67a93c0c9c469baa2042703172c74
  * For libssl: https://gist.github.com/johanlantz/6b5e79a100a8f96494367d70e4adac56

I did check the –L path and it is correct and the libs are present but still I get the linker output below:

If anyone has an idea it is very welcome.

*****The output when building the .so**************
jni/../../curl/lib/curl_ntlm_core.c:533: error: undefined reference to 'MD4_Init'
jni/../../curl/lib/curl_ntlm_core.c:534: error: undefined reference to 'MD4_Update'
jni/../../curl/lib/curl_ntlm_core.c:535: error: undefined reference to 'MD4_Final'
jni/../../curl/lib/vtls/openssl.c:684: error: undefined reference to 'OPENSSL_load_builtin_modules'
jni/../../curl/lib/vtls/openssl.c:713: error: undefined reference to 'OPENSSL_add_all_algorithms_noconf'
jni/../../curl/lib/vtls/openssl.c:824: error: undefined reference to 'ENGINE_set_default'
jni/../../curl/lib/vtls/openssl.c:457: error: undefined reference to 'PKCS12_parse'
jni/../../curl/lib/vtls/openssl.c:2123: error: undefined reference to 'X509_verify_cert_error_string'
jni/../../curl/lib/vtls/openssl.c:2646: error: undefined reference to 'X509_verify_cert_error_string'
jni/../../curl/lib/vtls/openssl.c:1246: error: undefined reference to 'OCSP_response_status'
jni/../../curl/lib/vtls/openssl.c:1249: error: undefined reference to 'OCSP_response_status_str'
jni/../../curl/lib/vtls/openssl.c:1254: error: undefined reference to 'OCSP_response_get1_basic'
jni/../../curl/lib/vtls/openssl.c:1281: error: undefined reference to 'OCSP_basic_add1_cert'
jni/../../curl/lib/vtls/openssl.c:1291: error: undefined reference to 'OCSP_basic_verify'
jni/../../curl/lib/vtls/openssl.c:1297: error: undefined reference to 'OCSP_resp_count'
jni/../../curl/lib/vtls/openssl.c:1303: error: undefined reference to 'OCSP_resp_get0'
jni/../../curl/lib/vtls/openssl.c:1307: error: undefined reference to 'OCSP_single_get0_status'
jni/../../curl/lib/vtls/openssl.c:1310: error: undefined reference to 'OCSP_check_validity'
jni/../../curl/lib/vtls/openssl.c:1297: error: undefined reference to 'OCSP_resp_count'
jni/../../curl/lib/vtls/openssl.c:1327: error: undefined reference to 'OCSP_crl_reason_str'
jni/../../curl/lib/vtls/openssl.c:3001: error: undefined reference to 'SSLeay'
jni/../../curl/lib/vtls/openssl.c:197: error: undefined reference to 'RAND_load_file'
jni/../../curl/lib/vtls/openssl.c:238: error: undefined reference to 'RAND_file_name'
jni/../../curl/lib/vtls/openssl.c:241: error: undefined reference to 'RAND_load_file'
*******************

________________________________

Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it.

Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-04-10