Skip to content

configure fails to detect OpenSSL with gcc5 #719

@ghost

Description

Building curl 7_47_1 on linux64, linking to Openssl 1.0.2g libs, 'configure' reports "fail" @ "checking for OpenSSL headers and library versions matching"

It appears to be non-fatal ...

which openssl
    /usr/local/ssl/bin/openssl
openssl version
    OpenSSL 1.0.2g  1 Mar 2016
pkg-config --cflags openssl
    -I/usr/local/ssl/include 
pkg-config --libs openssl
    -L/usr/local/ssl/lib64 -lssl -lcrypto 

git clone git://github.com/bagder/curl.git
cd curl
git checkout -b curl-7_47_1 curl-7_47_1

echo $LDFLAGS
    -L/usr/local/ssl/lib64 -Wl,-rpath,/usr/local/ssl/lib64 -L/usr/local/lib64 -L/usr/local/lib64 -Wl,-rpath,/usr/local/lib64
echo $LIBS
    -lssl -lcrypto -lssh2

./buildconf
./configure --with-ssl
    ...
    checking for openssl options with pkg-config... found
    configure: pkg-config: SSL_LIBS: "-lssl -lcrypto "
    configure: pkg-config: SSL_LDFLAGS: "-L/usr/local/ssl/lib64 "
    configure: pkg-config: SSL_CPPFLAGS: "-I/usr/local/ssl/include "
    checking for HMAC_Update in -lcrypto... yes
    checking OpenSSL linking without -ldl... yes
    checking for SSL_connect in -lssl... yes
    checking openssl/x509.h usability... yes
    checking openssl/x509.h presence... yes
    checking for openssl/x509.h... yes
    checking openssl/rsa.h usability... yes
    checking openssl/rsa.h presence... yes
    checking for openssl/rsa.h... yes
    checking openssl/crypto.h usability... yes
    checking openssl/crypto.h presence... yes
    checking for openssl/crypto.h... yes
    checking openssl/pem.h usability... yes
    checking openssl/pem.h presence... yes
    checking for openssl/pem.h... yes
    checking openssl/ssl.h usability... yes
    checking openssl/ssl.h presence... yes
    checking for openssl/ssl.h... yes
    checking openssl/err.h usability... yes
    checking openssl/err.h presence... yes
    checking for openssl/err.h... yes
    checking openssl/pkcs12.h usability... yes
    checking openssl/pkcs12.h presence... yes
    checking for openssl/pkcs12.h... yes
    checking for ENGINE_init... yes
    checking openssl/engine.h usability... yes
    checking openssl/engine.h presence... yes
    checking for openssl/engine.h... yes
    checking for ENGINE_load_builtin_engines... yes
    checking for RAND_status... yes
    checking for RAND_screen... no
    checking for RAND_egd... yes
    checking for ENGINE_cleanup... yes
    checking for CRYPTO_cleanup_all_ex_data... yes
    checking for SSL_get_shutdown... yes
    checking for SSLv2_client_method... no
    checking for DES_set_odd_parity... yes
    checking for BoringSSL... no
    checking for libressl... no
    configure: Added /usr/local/ssl/lib64 to LD_LIBRARY_PATH
    checking for OpenSSL headers version... unknown
    checking for OpenSSL library version... 1.0.2
>>> checking for OpenSSL headers and library versions matching... fail
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions