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: Rahul Sabnis via curl-library <curl-library_at_lists.haxx.se>
Date: Sun, 16 Apr 2023 23:36:40 +0530

>
> It sounds like you are not compiling against OpenSSL 3.0. You are
> compiling against an older OpenSSL that provides the symbol
> EVP_PKEY_id, and not the newer OpenSSL that provides the symbol
> EVP_PKEY_get_id (with EVP_PKEY_id supplied as a #define).
>

I set the environment below so that it uses the OpenSSL which I want. I
compiled and installed OpenSSL 3.1.0 under /home/builder/openssl
export CPPFLAGS="-Dlinux26 -I/home/builder/openssl/include/openssl
-DOPENSSL_NO_DEPRECATED_3_0"
export LDFLAGS="-Wl,-R/home/builder/openssl/lib64
-L/home/builder/openssl/lib64"
export LDLIBS="-lssl -lcrypto"


>
> Please zip cURL's config.log, and attach it to the thread.


Attached zipped config.log

Rahul.


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
  • application/x-zip-compressed attachment: config.zip
Received on 2023-04-16