-
-
Couldn't load subscription status.
- Fork 6.9k
Description
1- Install OpenSSL 1.1.0f in Debian 8.8 x32:
./config -Wl,--enable-new-dtags,-rpath,'$(LIBRPATH)'
make
make test
make install
openssl version -v
2- Install nghttp2
3- Problems to install curl 7.54.1 ./configure --with-nghttp2 --with-ssl
OpenSSL version: opensslv.h
CURL: config.log
CURL Error:
checking for OpenSSL headers version... 1.1.0 - 0x1010006fL
checking for OpenSSL library version... 1.0.1
checking for OpenSSL headers and library versions matching... no
configure: WARNING: OpenSSL headers and library versions do not match.
...
...
...
...
vtls/openssl.c: In function ‘Curl_ossl_seed’:
vtls/openssl.c:279:5: error: implicit declaration of function ‘RAND_egd’ [-Werro r=implicit-function-declaration]
int ret = RAND_egd(data->set.str[STRING_SSL_EGDSOCKET]?
^
cc1: some warnings being treated as errors
Makefile:2030: recipe for target 'vtls/libcurl_la-openssl.lo' failed
make[2]: *** [vtls/libcurl_la-openssl.lo] Error 1
make[2]: Leaving directory '/var/tmp/curl_build/curl_src/lib'
Makefile:741: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/var/tmp/curl_build/curl_src/lib'
Makefile:902: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
Making install in lib
make[1]: Entering directory '/var/tmp/curl_build/curl_src/lib'
CC vtls/libcurl_la-openssl.lo
vtls/openssl.c: In function ‘Curl_ossl_seed’:
vtls/openssl.c:279:5: error: implicit declaration of function ‘RAND_egd’ [-Werro r=implicit-function-declaration]
int ret = RAND_egd(data->set.str[STRING_SSL_EGDSOCKET]?
^
cc1: some warnings being treated as errors
Makefile:2030: recipe for target 'vtls/libcurl_la-openssl.lo' failed
make[1]: *** [vtls/libcurl_la-openssl.lo] Error 1
make[1]: Leaving directory '/var/tmp/curl_build/curl_src/lib'
Makefile:902: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
In config.log see:
configure:23234: Added /usr/local/lib to LD_LIBRARY_PATH
configure:23244: checking for OpenSSL headers version
configure:23274: gcc -E -I/usr/local/include conftest.c
configure:23274: $? = 0
configure:23335: result: 1.1.0 - 0x1010006fL :thumbsup:
configure:23344: checking for OpenSSL library version
configure:23412: gcc -o conftest -Werror-implicit-function-declaration -O2 -Wno-system-headers -I/usr/local/include -L/usr/lib/i386-linux-gnu -L/usr/local/lib conftest.c -lssl -lcrypto -lssl -lcrypto -llber -lldap -lz >&5
/tmp/cconm5OL.o: In functionmain': conftest.c:(.text.startup+0x12): undefined reference toSSL_CTX_set_not_resumable_session_callback'
collect2: error: ld returned 1 exit status 👎
configure:23412: $? = 1
configure: failed program was:
Can there be a problem with the order of the directories ?
Seen in config.log: -I/usr/local/include -L/usr/lib/i386-linux-gnu -L/usr/local/lib
# ldconfig -p | grep libcrypto
libcrypto.so.1.1 (libc6) => /usr/local/lib/libcrypto.so.1.1
libcrypto.so.1.0.0 (libc6, hwcap: 0x0008000000008000) => /usr/lib/i386-linux-gnu/i686/cmov/libcrypto.so.1.0.0
libcrypto.so.1.0.0 (libc6, hwcap: 0x0004000000000000) => /usr/lib/i386-linux-gnu/i586/libcrypto.so.1.0.0
libcrypto.so.1.0.0 (libc6) => /usr/lib/i386-linux-gnu/libcrypto.so.1.0.0
libcrypto.so (libc6) => /usr/lib/i386-linux-gnu/libcrypto.so
libcrypto.so (libc6) => /usr/local/lib/libcrypto.so
# openssl version -v
OpenSSL 1.1.0f 25 May 2017
Installer script: https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951