leenjewel / openssl_for_ios_and_android

OpenSSL Library for iOS and Android
921 stars 318 forks source link

问问 libcurl 版本 #23

Open LinChenNBA opened 6 years ago

LinChenNBA commented 6 years ago

I'm building openssl for Android-16 and cURL for Android-21 as suggested in _shared.sh I'm able to use openssl to en/decode messages, but when I call curl_easy_init() I get bunch of errors similar to this:

../../../../libs/x86/libcurl.a(libcurl_la-openssl.o):openssl.c:function ossl_recv: error: undefined reference to 'SSL_read'
  ../../../../libs/x86/libcurl.a(libcurl_la-openssl.o):openssl.c:function ossl_recv: error: undefined reference to 'SSL_get_error'
  ../../../../libs/x86/libcurl.a(libcurl_la-openssl.o):openssl.c:function ossl_connect_step2: error: undefined reference to 'SSL_connect'
  ../../../../libs/x86/libcurl.a(libcurl_la-openssl.o):openssl.c:function ossl_connect_step2: error: undefined reference to 'SSL_get_error'
  ../../../../libs/x86/libcurl.a(libcurl_la-openssl.o):openssl.c:function ossl_connect_step2: error: undefined reference to 'SSL_get_verify_result'
  ../../../../libs/x86/libcurl.a(libcurl_la-openssl.o):openssl.c:function ossl_connect_step2: error: undefined reference to 'X509_verify_cert_error_string'
  ../../../../libs/x86/libcurl.a(libcurl_la-openssl.o):openssl.c:function ossl_connect_step2: error: undefined reference to 'SSL_get0_alpn_selected'
...
...

Looks like cURL is looking for different version of openssl?

Can you elaborate on how do you mean using openssl api-16 while curl at api-21?

Thanks!