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: Mon, 17 Apr 2023 15:33:01 +0530

On Mon, Apr 17, 2023 at 1:24 AM Rahul Sabnis <rahulsab77_at_gmail.com> wrote:

> I think you need to rebuild OpenSSL with --api=3.0.0. See
>> https://github.com/openssl/openssl/blob/master/INSTALL.md#api-level .
>>
>> I built OpenSSL with these options: --api=3.0 no-deprecated
> But I start all over again and come back to you with results.
>
>
>> You might also consider adding the option enable-ec_nistp_64_gcc_128
>> on x86_64 machines.
>>
> Should I use it for building OpenSSL or cURL or both ?
>
>
Finally I could build cURL successfully. Looks like setting
the PKG_CONFIG_PATH variable solved the problem.

Below is the configuration I used for OpenSSL & cURL
--------------------------------------------------------------------------
./Configure --prefix=/home/omdev/rahul/install/openssl-3.1.0
--openssldir=/home/omdev/rahul/install/openssl-3.1.0 shared no-asm
--api=3.0.0 no-deprecated

export CC="gcc"
export CFLAGS="-fPIC"
export CPPFLAGS="-Dlinux26"
export
PKG_CONFIG_PATH="/home/omdev/rahul/install/openssl-3.1.0/lib64/pkgconfig"
chmod +x ./configure
./configure --prefix=/home/omdev/rahul/install/curl --enable-http
--with-openssl --enable-cookies --enable-shared=yes --enable-static=no
--without-zlib --disable-ldap --disable-ldaps --disable-unix-sockets
--disable-rtsp --disable-threaded-resolver --disable-ntlm

Attached the config logs for OpenSSL & cURL

Thanks for the help.

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-17