gustavogenovese/curl-android-ios

opensslconf.h file not found

Opened this issue · 0 comments

Following the readme, I did

git clone git@github.com:gcesarmza/curl-android-ios.git
cd curl-android-ios/
git submodule init && git submodule update

export NDK_ROOT=/root/android-ndk-r13b/
./build_Android.sh

But I am getting an error, the full log output is:

root@melka-xubuntu-16-04:~/AvastClient/framework/pamcore/3rdparty/Android/curl-android-ios/curl-compile-scripts# ./build_Android.sh 
Configuring OpenSSL version 1.1.1-dev (0x10101000L)
    no-asan         [default]  OPENSSL_NO_ASAN
    no-asm          [option]   OPENSSL_NO_ASM
    no-camellia     [option]   OPENSSL_NO_CAMELLIA (skip dir)
    no-cast         [option]   OPENSSL_NO_CAST (skip dir)
    no-crypto-mdebug [default]  OPENSSL_NO_CRYPTO_MDEBUG
    no-crypto-mdebug-backtrace [default]  OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
    no-dynamic-engine [forced]  
    no-ec_nistp_64_gcc_128 [default]  OPENSSL_NO_EC_NISTP_64_GCC_128
    no-egd          [default]  OPENSSL_NO_EGD
    no-external-tests [default]  OPENSSL_NO_EXTERNAL_TESTS
    no-fuzz-afl     [default]  OPENSSL_NO_FUZZ_AFL
    no-fuzz-libfuzzer [default]  OPENSSL_NO_FUZZ_LIBFUZZER
    no-heartbeats   [default]  OPENSSL_NO_HEARTBEATS
    no-idea         [option]   OPENSSL_NO_IDEA (skip dir)
    no-md2          [default]  OPENSSL_NO_MD2 (skip dir)
    no-msan         [default]  OPENSSL_NO_MSAN
    no-rc5          [default]  OPENSSL_NO_RC5 (skip dir)
    no-sctp         [default]  OPENSSL_NO_SCTP
    no-shared       [option]  
    no-ssl-trace    [default]  OPENSSL_NO_SSL_TRACE
    no-ssl3         [default]  OPENSSL_NO_SSL3
    no-ssl3-method  [default]  OPENSSL_NO_SSL3_METHOD
    no-tls1_3       [default]  OPENSSL_NO_TLS1_3
    no-ubsan        [default]  OPENSSL_NO_UBSAN
    no-unit-test    [default]  OPENSSL_NO_UNIT_TEST
    no-weak-ssl-ciphers [default]  OPENSSL_NO_WEAK_SSL_CIPHERS
    no-zlib         [default] 
    no-zlib-dynamic [default] 
Configuring for android

PERL          =/usr/bin/perl
PERLVERSION   =5.22.1 for x86_64-linux-gnu-thread-multi
HASHBANGPERL  =/usr/bin/env perl
CC            =gcc
CFLAG         =-Wall -O3 -pthread -mandroid -fPIC --sysroot=$(CROSS_SYSROOT) -Wa,--noexecstack 
CXX           =g++
CXXFLAG       =-Wall -O3 -pthread -mandroid -fPIC --sysroot=$(CROSS_SYSROOT) -Wa,--noexecstack 
DEFINES       =DSO_DLFCN HAVE_DLFCN_H NDEBUG OPENSSL_THREADS OPENSSL_NO_DYNAMIC_ENGINE OPENSSL_PIC
EX_LIBS       =-ldl 
make: Entering directory '/root/AvastClient/framework/pamcore/3rdparty/Android/curl-android-ios/curl-compile-scripts'
[arm64-v8a] Compile        : ssl <= bio_ssl.c
In file included from jni/../../openssl/ssl/bio_ssl.c:14:
In file included from jni/../../openssl/include/openssl/crypto.h:22:
jni/../../openssl/include/openssl/e_os2.h:13:11: fatal error: 'openssl/opensslconf.h' file not found
# include <openssl/opensslconf.h>
          ^
1 error generated.
/root/android-ndk-r13b/build/core/build-binary.mk:497: recipe for target 'obj/local/arm64-v8a/objs/ssl/__/__/openssl/ssl/bio_ssl.o' failed
make: *** [obj/local/arm64-v8a/objs/ssl/__/__/openssl/ssl/bio_ssl.o] Error 1
make: Leaving directory '/root/AvastClient/framework/pamcore/3rdparty/Android/curl-android-ios/curl-compile-scripts'
Error building the libssl and libcrypto

The only file resembling the opensslconf.h is include/openssl/opensslconf.h.in, but that seems to be a template of some sorts.

Any idea what went wrong?