curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

RE: Assistance building curl 7.77.0 with OpenSSL 3.0

From: Randall S. Becker via curl-library <curl-library_at_cool.haxx.se>
Date: Sat, 21 Aug 2021 12:33:56 -0400

On August 21, 2021 5:35 AM, Daniel Stenberg wrote:
>On Fri, 20 Aug 2021, Randall S. Becker via curl-library wrote:
>
>> My latest configure command for OpenSSL 3.0 is:
>>
>> CFLAGS="-c99" CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -Wlp64 -WIEEE_float
>> -I/usr/local-ssl3.0/openssl/include" LDFLAGS="-L/usr/local-ssl3.0/lib"
>> conf_script_floss_cc --with-ssl=/usr/local-ssl3.0 --disable-pthreads
>> --disable-threaded-resolver --enable-ipv6'
>
>On 64 bit systems, OpenSSL doesn't make a 'lib' anymore. It uses lib64 only (and no, I don't know why they decided this). My custom
>OpenSSL 3 install dir:
>
>$ ls ~/build-openssl/
>bin include lib64 share ssl
>
>This breaks old curl configure scripts but the current one is adapted and I build with OpenSSL 3 fine and we have a CI job doing it
as well.
>
>My configure line for this needs nothing special:
>
> ./configure --with-ssl=$HOME/build-openssl
>
>... even if I also usually set LDFLAGS="-Wl,-rpath,$HOME/build-openssl/lib64"
>to make it co-exist with other OpenSSL installs better.

Also, it looks like configure is mis-identifying OpenSSL 3 anyway:

configure:24609: cpp -D_XOPEN_SOURCE_EXTENDED=1 -Wlp64 -WIEEE_float -I/usr/local
-ssl3.0/openssl/include -I/usr/local-ssl3.0/include -I/usr/local-ssl3.0/include/
openssl -DOPENSSL_SUPPRESS_DEPRECATED conftest.c
configure:24609: $? = 0
configure:24671: result: unknown - ( (3<<28) |(0<<20) |(0<<4) |0x0L )
configure:24680: checking for OpenSSL library version

The result should be 3.0.0 - and appears to be. OpenSSL changed how the release defines work, so maybe this is not a surprise.

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-08-21