cURL / Mailing Lists / curl-library / Single Mail


Re: configure with ssl in non-standard location failing

From: Dave Kennard <>
Date: Tue, 12 Jan 2016 09:31:42 +0000

On 11/01/2016 21:28, Ray Satiro via curl-library wrote:
> On 1/11/2016 3:01 PM, Dave Kennard wrote:
>> My configure command is:
>> ./configure --prefix=$HOME/apps/$CURL --with-ssl=$HOME/apps/openssl
>> --with-nghttp2=$HOME/apps/$NGHTTP2
>> I've also tried prepending LDFLAGS="-L$HOME/apps/openssl/lib" but get
>> the same result.
>> In the configure output I get:
>> configure: PKG_CONFIG_LIBDIR will be set to
>> "/home/djeyewater/apps/openssl/lib/pkgconfig"
>> checking for pkg-config... /usr/bin/pkg-config
>> checking for openssl options with pkg-config... found
>> configure: pkg-config: SSL_LIBS: "-lssl -lcrypto "
>> configure: pkg-config: SSL_LDFLAGS:
>> "-L/home/djeyewater/apps/openssl-1.0.2e/lib "
>> configure: pkg-config: SSL_CPPFLAGS:
>> "-I/home/djeyewater/apps/openssl-1.0.2e/include "
>> checking for HMAC_Update in -lcrypto... no
>> checking for HMAC_Init_ex in -lcrypto... no
>> checking for ssl_version in -laxtls... no
>> checking default CA cert bundle/path...
>> /etc/ssl/certs/ca-certificates.crt
>> checking for library containing psl_builtin... no
>> checking for libssh2_channel_open_ex in -lssh2... no
>> checking libssh2.h usability... no
>> checking libssh2.h presence... no
> What version of curl are you trying to build? Did you rename the
> openssl-1.0.2e directory to openssl after you installed? That would be
> a problem. If not check near the end of config.log to see what program
> failed to compile and what the error was and reply with that.

I'm trying to build curl-7.46.0. I didn't rename the openssl dir, -
~/apps/openssl is a symlink to ~/apps/openssl-1.0.2e.

Looking at config.log, the problem is fairly high up the file, not at
the end:

configure:24341: checking for ssl_version in -laxtls
configure:24363: gcc -o conftest -O2 -Wno-system-headers conftest.c
-laxtls -lldap -lz -lrt >&5
/usr/bin/ld: cannot find -laxtls
collect2: ld returned 1 exit status

Checking the web for the laxtls line, I found the answer. It seems the
problem is because openssl created only static .a libs. The fix is
either to add LIBS="-ldl" before the configure command when configuring
curl, or to rebuild openssl with shared libs (add shared to the config

Thanks for pointing me to the config.log file!

BTW, I don't have any INSTALL file, there is a README file though.


List admin:
Received on 2016-01-12