Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling against libcurl3 7.88.1 throws compilation arnings about CURLOPT_PUT #199

Open
rfoxkendo opened this issue Sep 6, 2024 · 0 comments

Comments

@rfoxkendo
Copy link

Expected behaviour

Clean compilation so that when this is CRULOPT_PUT Is finally removed there won't be errors.

Actual behaviour

Warnings like4:

source/connection.cc: In member function 'RestClient::Response RestClient::Connection::put(const std::string&, const std::string&)':
source/connection.cc:490:38: warning: 'CURLOPT_PUT' is deprecated: since 7.12.1. Use CURLOPT_UPLOAD [-Wdeprecated-declarations]
  490 |   curl_easy_setopt(this->curlHandle, CURLOPT_PUT, 1L);
      |                                      ^~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:1286:3: note: declared here
 1286 |   CURLOPTDEPRECATED(CURLOPT_PUT, CURLOPTTYPE_LONG, 54,
      |   ^~~~~~~~~~~~~~~~~

Environment and debugging details

  • compiler and version debian 12.2.0-14 (12.0.0)
  • operating system Debian bookworm.
  • version of restclient-cpp 0.5.2
  • how did you install restclient-cpp? (via packages, git, tarball) git
  • libcurl version and compile flags
    Debian packages are:
bookworm > dpkg -l |grep libcurl
ii  libcurl3-gnutls:amd64                  7.88.1-10+deb12u6                amd64        easy-to-use client-side URL transfer library (GnuTLS flavour)
ii  libcurl3-nss:amd64                     7.88.1-10+deb12u6                amd64        easy-to-use client-side URL transfer library (NSS flavour)
ii  libcurl4:amd64                         7.88.1-10+deb12u6                amd64        easy-to-use client-side URL transfer library (OpenSSL flavour)
ii  libcurl4-openssl-dev:amd64             7.88.1-10+deb12u6                amd64        development files and documentation for libcurl (OpenSSL flavour)
  • full error output of your build as an inline codeblock or gist

See Actual behavior above.

(some of these things might not apply but the more you can provide the easier
it will be to fix this bug. Thanks!)

NOTE:

While the package installs, I put this here as a placeholder because the warnings probably indicate at some point the macro CURLOPT_PUT will vanish and reporting this allows you to get out ahead of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant