cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: building curl with openssl 1.0.2h support for android

From: greendragon <hshere_at_greendragon.com>
Date: Thu, 29 Sep 2016 15:52:52 -0500

I had been comparing config.log with the results from the working build
with the previous versions.

I've found this from the crypto check which I think may be the issue...

configure:22148: checking for HMAC_Update in -lcrypto
configure:22170:
/Users/howardshere/Documents/android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc
-o conftest -O2 -Wno-system-headers -isystem
/Users/howardshere/Documents/android/android-ndk-r10e/platforms/android-8/arch-arm/usr/include
--sysroot=/Users/howardshere/Documents/android/android-ndk-r10e/platforms/android-8/arch-arm
-I/Users/howardshere/Documents/Projects/curl-android-ios-masters/7.49.1/curl-android-ios-master/curl-compile-scripts/../openssl/include
-I/Users/howardshere/Documents/Projects/curl-android-ios-masters/7.49.1/curl-android-ios-master/curl-compile-scripts/../openssl/include/openssl
-L/Users/howardshere/Documents/Projects/curl-android-ios-masters/7.49.1/curl-android-ios-master/curl-compile-scripts/obj/local/armeabi
-L/Users/howardshere/Documents/Projects/curl-android-ios-masters/7.49.1/curl-android-ios-master/curl-compile-scripts/../openssl/lib
conftest.c -lcrypto -lz -lgcc -lssl -lcrypto >&5
jni/../../openssl/crypto/dh/dh_pmeth.c:361: error: undefined reference
to 'DH_get_1024_160'
jni/../../openssl/crypto/dh/dh_pmeth.c:365: error: undefined reference
to 'DH_get_2048_224'
jni/../../openssl/crypto/dh/dh_pmeth.c:369: error: undefined reference
to 'DH_get_2048_256'
jni/../../openssl/crypto/dh/dh_pmeth.c:470: error: undefined reference
to 'DH_KDF_X9_42'
jni/../../openssl/crypto/ec/ec_pmeth.c:267: error: undefined reference
to 'ECDH_KDF_X9_62'
/Users/howardshere/Documents/Projects/curl-android-ios-masters/7.49.1/curl-android-ios-master/curl-compile-scripts/obj/local/armeabi/libcrypto.a(v3_lib.o):jni/../../openssl/crypto/x509v3/v3_lib.c:standard_exts:
error: undefined reference to 'v3_ct_scts'
/Users/howardshere/Documents/Projects/curl-android-ios-masters/7.49.1/curl-android-ios-master/curl-compile-scripts/obj/local/armeabi/libcrypto.a(v3_lib.o):jni/../../openssl/crypto/x509v3/v3_lib.c:standard_exts:
error: undefined reference to 'v3_ct_scts'
jni/../../openssl/crypto/dh/dh_ameth.c:843: error: undefined reference
to 'CMS_RecipientInfo_kari_get0_orig_id'
jni/../../openssl/crypto/dh/dh_ameth.c:803: error: undefined reference
to 'CMS_RecipientInfo_kari_get0_orig_id'
jni/../../openssl/crypto/dh/dh_ameth.c:727: error: undefined reference
to 'CMS_RecipientInfo_kari_get0_alg'
jni/../../openssl/crypto/dh/dh_ameth.c:753: error: undefined reference
to 'CMS_RecipientInfo_kari_get0_ctx'
jni/../../openssl/crypto/dh/dh_ameth.c:891: error: undefined reference
to 'CMS_RecipientInfo_kari_get0_alg'
jni/../../openssl/crypto/dh/dh_ameth.c:895: error: undefined reference
to 'CMS_RecipientInfo_kari_get0_ctx'
jni/../../openssl/crypto/ec/ec_ameth.c:843: error: undefined reference
to 'CMS_RecipientInfo_kari_get0_orig_id'
jni/../../openssl/crypto/ec/ec_ameth.c:901: error: undefined reference
to 'CMS_RecipientInfo_kari_get0_alg'
jni/../../openssl/crypto/ec/ec_ameth.c:909: error: undefined reference
to 'CMS_RecipientInfo_kari_get0_ctx'
jni/../../openssl/crypto/ec/ec_ameth.c:804: error: undefined reference
to 'CMS_RecipientInfo_kari_get0_orig_id'
jni/../../openssl/crypto/ec/ec_ameth.c:745: error: undefined reference
to 'CMS_RecipientInfo_kari_get0_alg'
jni/../../openssl/crypto/ec/ec_ameth.c:761: error: undefined reference
to 'CMS_RecipientInfo_kari_get0_ctx'
jni/../../openssl/crypto/cms/cms_env.c:259: error: undefined reference
to 'cms_RecipientInfo_kari_init'
jni/../../openssl/crypto/cms/cms_env.c:831: error: undefined reference
to 'cms_RecipientInfo_kari_encrypt'
jni/../../openssl/crypto/aes/aes_wrap.c:63: error: undefined reference
to 'CRYPTO_128_wrap'
jni/../../openssl/crypto/aes/aes_wrap.c:70: error: undefined reference
to 'CRYPTO_128_unwrap'
collect2: error: ld returned 1 exit status

On 2016-09-29 15:39, Daniel Stenberg wrote:
> On Thu, 29 Sep 2016, greendragon wrote:
>
>> But with this new combination, I always get output from ./configure
>> which tells me SSL isn't enabled:
>
> ...
>
>> Does anyone have any pointers? I've consumed all the googleable info I
>> have found and so far it hasn't helped.
>
> The config.log that configure generates usually contains the clues you
> need. Search for ssl and see if you can figure out why the tests for
> OpenSSL failed.

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