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: Henrik Holst via curl-library <curl-library_at_lists.haxx.se>
Date: Mon, 17 Apr 2023 00:11:15 +0200

well that is a flag used by libcurl and that it reads in from
openssl/macros.h and which one cannot set in the build anyway because I see
on the macros.h file that it first unsets it before it does a long ifdef
dance to determine weather to set it or not

/usr/include/openssl/macros.h :

# undef OPENSSL_NO_DEPRECATED_3_0
# undef OPENSSL_NO_DEPRECATED_1_1_1
# undef OPENSSL_NO_DEPRECATED_1_1_0
# undef OPENSSL_NO_DEPRECATED_1_0_2
# undef OPENSSL_NO_DEPRECATED_1_0_1
# undef OPENSSL_NO_DEPRECATED_1_0_0
# undef OPENSSL_NO_DEPRECATED_0_9_8

# if OPENSSL_API_LEVEL >= 30000
# ifndef OPENSSL_NO_DEPRECATED
# define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
# define OSSL_DEPRECATEDIN_3_0_FOR(msg) OSSL_DEPRECATED_FOR(3.0,
msg)
...

/HH

Den sön 16 apr. 2023 kl 21:09 skrev Rahul Sabnis via curl-library <
curl-library_at_lists.haxx.se>:

> 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)
>
> Rahul
>
>
> --
> Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
> Etiquette: https://curl.se/mail/etiquette.html
>


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