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: Compiling curl 8.0.1 with OpenSSL 3.1.0 - ../lib/.libs/libcurl.so: undefined reference to ...

From: Jeffrey Walton via curl-library <curl-library_at_lists.haxx.se>
Date: Sun, 16 Apr 2023 15:21:40 -0400

On Sun, Apr 16, 2023 at 3:09 PM Rahul Sabnis via curl-library
<curl-library_at_lists.haxx.se> wrote:
>
> On Mon, Apr 17, 2023 at 12:04 AM Jeffrey Walton via curl-library <curl-library_at_lists.haxx.se> wrote:
>>
>> On Sun, Apr 16, 2023 at 2:27 PM Henrik Holst
>> <henrik.holst_at_millistream.com> wrote:
>> >
>> > https://www.openssl.org/docs/man3.0/man7/OPENSSL_NO_DEPRECATED.html
>> >
>> > It should IMHO be just -DOPENSSL_NO_DEPRECATED
>>
>> Yeah, I was thinking that, too.
>>
>> And Rahul may (probably?) need OPENSSL_API_COMPAT=30000, if I am
>> parsing https://www.openssl.org/docs/man3.0/man7/openssl_user_macros.html
>> correctly.
>
> Tried without and with both those macros (OPENSSL_NO_DEPRECATED & OPENSSL_API_COMPAT) but same error.
> Attached config log in both cases.
>
> I can't get the link right now, but someone mentioned that setting the macro OPENSSL_NO_DEPRECATED_3_0 might address this
> Also, I found it in the code..
>
> $ grep -r OPENSSL_NO_DEPRECATED *
> lib/vtls/openssl.c: !defined(OPENSSL_NO_DEPRECATED_3_0)
> lib/md5.c: #if !defined(OPENSSL_NO_MD5) && !defined(OPENSSL_NO_DEPRECATED_3_0)
> lib/curl_ntlm_core.c: #if !defined(OPENSSL_NO_DES) && !defined(OPENSSL_NO_DEPRECATED_3_0)

I think you need to rebuild OpenSSL with --api=3.0.0. See
https://github.com/openssl/openssl/blob/master/INSTALL.md#api-level .

You might also consider adding the option enable-ec_nistp_64_gcc_128
on x86_64 machines.

Jeff
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-04-16