cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Compiling curl on Solaris - mismatching openssl header and library when executing configure script

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 6 Apr 2016 23:41:45 +0200 (CEST)

On Wed, 6 Apr 2016, Poggenpohl, Daniel wrote:

> How can I tell the configure script where to search for the correct 1.0.2g
> headers?

./configure --with-ssl=/somedir/openssl/1.0.2g

> Looking into the configure script:
> My set CPPFLAGS is overridden by other flags which are empty at runtime.
>
>> OLDCPPFLAGS=$CPPFLAGS
>> # CPPPFLAGS comes from CURL_CPP_P
>> CPPFLAGS="$CPPPFLAGS"

Empty? I don't see how it gets cleared! That logic comes from acinclude.m4 (in
the CURL_CPP_P function at the end of the file) and CPPPFLAGS should be your
CPPFLAGS or your CPPFLAGS with an added -P.

> After that the OPENSSL_VERSION_NUMBER is set to the old 1.0.1 OpenSSL,
> probably because the "ac_cpp" variable uses the now empty "CPPFLAGS" and so
> doesn't include my own include dir.

Sounds plausible yes. But as I said, not intended...

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ:        https://curl.haxx.se/docs/faq.html
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-04-06