cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

curl configuration error

From: Peterson, Stephen (Contractor) <Stephen_Peterson_at_cable.comcast.com>
Date: Thu, 22 Aug 2013 22:23:00 +0000

First off I know that this has been reported many times. However, I have not seen a solution.

I am getting the following error on Linux trying to configure curl-7.31.0:
configure: PKG_CONFIG_LIBDIR will be set to "/path/to/my/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"/path/to/my/openssl/lib "
configure: pkg-config: SSL_CPPFLAGS: "-I"/path/to/my/openssl/include "
checking for CRYPTO_lock in -lcrypto... yes
checking for SSL_connect in -lssl... no
checking for ssl with RSAglue/rsaref libs in use... checking for SSL_connect in -lssl... (cached) no

I don't know what I am supposed to be seeing in "/path/to/my/openssl if I go there . . . is there literally supposed to be a RSAglue.so? rsaref.so? I do see a rsa.h file in the appropriate directory with all the other .h files. In my "/path/to/my/lib I see libcrypto.a and libssl.a files.

Anyway I have tried the following configuration commands without any luck (same error as above):

./configure --prefix=/path/to/my/curl --with-ssl=/path/to/my/openssl

./configure --prefix=/path/to/my/curl --with-ssl --with-libssl-prefix=/path/to/my/openssl

./configure --prefix=/path/to/my/curl --with-ssl=/path/to/my/openssl --with-libssl-prefix=/path/to/my/openssl

LDFLAGS=-L/path/to/my/openssl/lib ./configure --prefix=/path/to/my/curl --with-ssl=/path/to/my/openssl --with-libssl-prefix=/path/to/my/openssl

env PKG_CONFIG_PATH=/path/to/my/pkgconfig ./configure --prefix=/path/to/my/curl --with-ssl

I have read the configure.log file. Nothing more than what was copied/pasted above. So nothing to give me anymore hints is there.

And I saw on the curl site the FAQ that reads:
If the function names missing include RSA or RSAREF you can be certain that this is because libssl requires the RSA and RSAREF libs to build.

See the INSTALL file section that explains how to add those libs to configure. Make sure that you remove the config.cache file before you rerun configure with the new flags.

I assume the "INSTALL file" is the http://curl.haxx.se/docs/install.html, which I read and didn't see anything that I haven't tried above.

So how do I fix this? It appears that I need to add some libraries to openssl???? Is that it? And I also assume that the curl printout that reads "checking for pkg-config... /usr/bin/pkg-config" is just a hardcoded message in curl as my openssl is not in /usr/bin/ . . . neither curl nor openssl. It prints out statements just below this that seems to say it found it.

Thanks,
Tommy

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2013-08-23