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

Deprecation warnings with latest curl version #149

Open
zpervan opened this issue Jan 3, 2023 · 0 comments
Open

Deprecation warnings with latest curl version #149

zpervan opened this issue Jan 3, 2023 · 0 comments

Comments

@zpervan
Copy link

zpervan commented Jan 3, 2023

I have started to use the curlcpp as part of my private project. As I'd like to make this always an exercise/learning experience, I have linked curlcpp with the, currently, latest curl (7.87.0) library from their GitHub page. This is generating a decent amount of deprecation warnings. It's not crashing anything, but maybe this is something to have a look.

Environment:

  • Ubuntu 22.04
  • GCC 11.3.0
  • Build system: Bazel 5.4.0
  • Curlcpp 2.1

Log:

INFO: From Compiling src/curl_form.cpp:
external/curlcpplib/src/curl_form.cpp: In destructor 'curl::curl_form::~curl_form()':
external/curlcpplib/src/curl_form.cpp:24:22: warning: 'void curl_formfree(curl_httppost*)' is deprecated: since 7.56.0. Use curl_mime_free() [-Wdeprecated-declarations]
   24 |         curl_formfree(this->form_post);
      |         ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from external/curlcpplib/include/curl_form.h:29,
                 from external/curlcpplib/src/curl_form.cpp:7:
external/curlcpplib/backends/curl-7.87.0/include/curl/curl.h:2606:1: note: declared here
 2606 | curl_formfree(struct curl_httppost *form);
      | ^~~~~~~~~~~~~
external/curlcpplib/src/curl_form.cpp: In member function 'curl::curl_form& curl::curl_form::operator=(const curl::curl_form&)':
external/curlcpplib/src/curl_form.cpp:35:18: warning: 'void curl_formfree(curl_httppost*)' is deprecated: since 7.56.0. Use curl_mime_free() [-Wdeprecated-declarations]
   35 |     curl_formfree(this->form_post);
      |     ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from external/curlcpplib/include/curl_form.h:29,
                 from external/curlcpplib/src/curl_form.cpp:7:
external/curlcpplib/backends/curl-7.87.0/include/curl/curl.h:2606:1: note: declared here
 2606 | curl_formfree(struct curl_httppost *form);
      | ^~~~~~~~~~~~~
external/curlcpplib/src/curl_form.cpp: In member function 'void curl::curl_form::add(const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&, const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&)':
external/curlcpplib/src/curl_form.cpp:57:21: warning: 'CURLFORMcode curl_formadd(curl_httppost**, curl_httppost**, ...)' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
   57 |     if (curl_formadd(&this->form_post,&this->last_ptr,
      |         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   58 |                     form_name.first(),form_name.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   59 |                     form_content.first(),form_content.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   60 |                     CURLFORM_END) != 0) {
      |                     ~~~~~~~~~~~~~
In file included from external/curlcpplib/include/curl_form.h:29,
                 from external/curlcpplib/src/curl_form.cpp:7:
external/curlcpplib/backends/curl-7.87.0/include/curl/curl.h:2570:1: note: declared here
 2570 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
external/curlcpplib/src/curl_form.cpp: In member function 'void curl::curl_form::add(const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&, const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&, const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&)':
external/curlcpplib/src/curl_form.cpp:71:21: warning: 'CURLFORMcode curl_formadd(curl_httppost**, curl_httppost**, ...)' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
   71 |     if (curl_formadd(&this->form_post,&this->last_ptr,
      |         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |                     form_name.first(),form_name.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |                     form_content.first(),form_content.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |                     content_type.first(),content_type.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |                     CURLFORM_END) != 0) {
      |                     ~~~~~~~~~~~~~
In file included from external/curlcpplib/include/curl_form.h:29,
                 from external/curlcpplib/src/curl_form.cpp:7:
external/curlcpplib/backends/curl-7.87.0/include/curl/curl.h:2570:1: note: declared here
 2570 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
external/curlcpplib/src/curl_form.cpp: In member function 'void curl::curl_form::add(const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&, const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&, const curl::curl_pair<CURLformoption, int>&)':
external/curlcpplib/src/curl_form.cpp:85:21: warning: 'CURLFORMcode curl_formadd(curl_httppost**, curl_httppost**, ...)' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
   85 |     if (curl_formadd(&this->form_post,&this->last_ptr,
      |         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   86 |                     form_name.first(),form_name.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   87 |                     form_content.first(),form_content.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   88 |                     content_length.first(),content_length.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   89 |                     CURLFORM_END) != 0) {
      |                     ~~~~~~~~~~~~~
In file included from external/curlcpplib/include/curl_form.h:29,
                 from external/curlcpplib/src/curl_form.cpp:7:
external/curlcpplib/backends/curl-7.87.0/include/curl/curl.h:2570:1: note: declared here
 2570 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
external/curlcpplib/src/curl_form.cpp: In member function 'void curl::curl_form::add(const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&, const curl::curl_pair<CURLformoption, int>&, const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&)':
external/curlcpplib/src/curl_form.cpp:100:21: warning: 'CURLFORMcode curl_formadd(curl_httppost**, curl_httppost**, ...)' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  100 |     if (curl_formadd(&this->form_post,&this->last_ptr,
      |         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  101 |                     form_name.first(),form_name.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  102 |                     form_content.first(),form_content.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  103 |                     name_length.first(),name_length.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  104 |                     CURLFORM_END) != 0) {
      |                     ~~~~~~~~~~~~~
In file included from external/curlcpplib/include/curl_form.h:29,
                 from external/curlcpplib/src/curl_form.cpp:7:
external/curlcpplib/backends/curl-7.87.0/include/curl/curl.h:2570:1: note: declared here
 2570 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
external/curlcpplib/src/curl_form.cpp: In member function 'void curl::curl_form::add(const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&, const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&, const curl::curl_pair<CURLformoption, int>&, const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&)':
external/curlcpplib/src/curl_form.cpp:116:21: warning: 'CURLFORMcode curl_formadd(curl_httppost**, curl_httppost**, ...)' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  116 |     if (curl_formadd(&this->form_post,&this->last_ptr,
      |         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  117 |                     form_name.first(),form_name.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  118 |                     form_content.first(),form_content.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  119 |                     content_length.first(),content_length.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  120 |                     content_type.first(),content_type.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  121 |                     CURLFORM_END) != 0) {
      |                     ~~~~~~~~~~~~~
In file included from external/curlcpplib/include/curl_form.h:29,
                 from external/curlcpplib/src/curl_form.cpp:7:
external/curlcpplib/backends/curl-7.87.0/include/curl/curl.h:2570:1: note: declared here
 2570 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
external/curlcpplib/src/curl_form.cpp: In member function 'void curl::curl_form::add(const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&, const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&, const curl::curl_pair<CURLformoption, char*>&, const curl::curl_pair<CURLformoption, long int>&)':
external/curlcpplib/src/curl_form.cpp:133:21: warning: 'CURLFORMcode curl_formadd(curl_httppost**, curl_httppost**, ...)' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  133 |     if (curl_formadd(&this->form_post,&this->last_ptr,
      |         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  134 |                     form_name.first(),form_name.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  135 |                     form_bufname.first(),form_bufname.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  136 |                     form_content.first(),form_content.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  137 |                     content_length.first(),content_length.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  138 |                     CURLFORM_END) != 0) {
      |                     ~~~~~~~~~~~~~
In file included from external/curlcpplib/include/curl_form.h:29,
                 from external/curlcpplib/src/curl_form.cpp:7:
external/curlcpplib/backends/curl-7.87.0/include/curl/curl.h:2570:1: note: declared here
 2570 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
external/curlcpplib/src/curl_form.cpp: In member function 'void curl::curl_form::add(const curl::curl_pair<CURLformoption, std::__cxx11::basic_string<char> >&, const std::vector<std::__cxx11::basic_string<char> >&)':
external/curlcpplib/src/curl_form.cpp:154:31: warning: 'CURLFORM_FILE' is deprecated: since 7.56.0. Use curl_mime_filedata() [-Wdeprecated-declarations]
  154 |         new_files[i].option = CURLFORM_FILE;
      |                               ^~~~~~~~~~~~~
In file included from external/curlcpplib/include/curl_form.h:29,
                 from external/curlcpplib/src/curl_form.cpp:7:
external/curlcpplib/backends/curl-7.87.0/include/curl/curl.h:2504:3: note: declared here
 2504 |   CURLFORM_FILE            CURL_DEPRECATED(7.56.0, "Use curl_mime_filedata()"),
      |   ^~~~~~~~~~~~~
external/curlcpplib/src/curl_form.cpp:160:21: warning: 'CURLFORM_ARRAY' is deprecated: since 7.56.0.  [-Wdeprecated-declarations]
  160 |                     CURLFORM_ARRAY,new_files,
      |                     ^~~~~~~~~~~~~~
In file included from external/curlcpplib/include/curl_form.h:29,
                 from external/curlcpplib/src/curl_form.cpp:7:
external/curlcpplib/backends/curl-7.87.0/include/curl/curl.h:2502:3: note: declared here
 2502 |   CURLFORM_ARRAY           CURL_DEPRECATED(7.56.0, ""),
      |   ^~~~~~~~~~~~~~
external/curlcpplib/src/curl_form.cpp:158:21: warning: 'CURLFORMcode curl_formadd(curl_httppost**, curl_httppost**, ...)' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  158 |     if (curl_formadd(&this->form_post,&this->last_ptr,
      |         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  159 |                     form_name.first(),form_name.second(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  160 |                     CURLFORM_ARRAY,new_files,
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~
  161 |                     CURLFORM_END) != 0) {
      |                     ~~~~~~~~~~~~~
In file included from external/curlcpplib/include/curl_form.h:29,
                 from external/curlcpplib/src/curl_form.cpp:7:
external/curlcpplib/backends/curl-7.87.0/include/curl/curl.h:2570:1: note: declared here
 2570 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
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