cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: build/use curl for linux

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 8 Jan 2014 09:10:15 +0100

On Wed, Jan 08, 2014 at 09:57:39AM +0700, Dung Nguyen wrote:
>  env PKG_CONFIG_PATH=/usr/local/ssl/lib/pkgconfig ./configure --with-ssl
>  env PKG_CONFIG_PATH=/opt/OpenSSL/lib/pkgconfig ./configure --with-ssl
>
> also result in error
>
> checking whether to enable iOS/Mac OS X native SSL/TLS... no
> 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/usr/local/ssl/lib  "
> configure: pkg-config: SSL_CPPFLAGS: "-I/usr/local/ssl/include  "

These flags all look reasonable.

> checking for CRYPTO_lock in -lcrypto... yes

This shows that it's finding the crypto library just fine.

> checking for SSL_connect in -lssl... no

But not libssl. I suspect a problem with your OpenSSL build. You can look at
the config.log file for more details of what it's doing, and you can manually
check (with nm) for that symbol in your libssl.

> checking for ssl with RSAglue/rsaref libs in use... checking for SSL_connect in
> -lssl... (cached) no
> no
> configure: error: OpenSSL libs and/or directories were not found where
> specified!
>
> ./configure --with-ssl=/usr/local/ssl/lib
> /configure --with-ssl=/opt/openssl/
> result with 
>   curl version:     7.34.0
>   Host setup:       i686-pc-linux-gnu
>   Install prefix:   /usr/local
>   Compiler:         gcc
>   SSL support:      no      (--with-
> {ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} )
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-01-08