curl / Mailing Lists / curl-users / 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: cURL 8.6.0 not compiling CentOS 7

From: Peter Krefting via curl-users <curl-users_at_lists.haxx.se>
Date: Fri, 2 Feb 2024 23:30:47 +0100 (CET)

Hi!

> version.c: In function 'curl_version':
> version.c:215:5: error: implicit declaration of function 'psl_check_version_number' [-Werror=implicit-function-declaration]
> int num = psl_check_version_number(0);
> ^
> cc1: some warnings being treated as errors
[...]
> Anybody else with CentOS 7 seeing anything similar?

Yes. According to the API documentation [1] the function was added in
libpsl 0.11.0. CentOS 7 contains version 0.7.0. Before 8.6.0, curl
used a different API to get the version number. This was changed in
commit 72bd88adde0e8cf6e63644a7d6df1da01a399db4.

There is no macros available to check for the version in the libpsl
version in CentOS 7, but newer versions seem to have them. Using them,
one can do something like the attached to get it working again on
CentOS 7. The --version display reverts back to the previous format:

   $ ./src/curl --version
   curl 8.6.0-DEV (x86_64-unknown-linux-gnu) libcurl/8.6.0-DEV OpenSSL/1.0.2k-fips zlib/1.2.7 brotli/1.0.7 zstd/1.5.2 libpsl/0.7.0 (+libicu/50.1.2)

[1] https://rockdaboot.github.io/libpsl/libpsl-Public-Suffix-List-functions.html#psl-check-version-number
-- 
\\// Peter - http://www.softwolves.pp.se/



-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-02-02