octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63573] Build warnings from curl library


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #63573] Build warnings from curl library
Date: Sun, 25 Dec 2022 11:27:22 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?63573>

                 Summary: Build warnings from curl library
                 Project: GNU Octave
               Submitter: arungiridhar
               Submitted: Sun 25 Dec 2022 11:27:20 AM EST
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: stable
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 25 Dec 2022 11:27:20 AM EST By: Arun Giridhar <arungiridhar>
After a recent system update to the curl utility and libcurl libraries, there
are build warnings about calling the curl library in a deprecated manner. It
does not break any functionality yet.

hg id 96d321d59ee3 (stable)

Compilers: gcc, g++, gfortran 12.2.0

Curl version 7.87.0


In file included from ../liboctave/util/url-transfer.cc:44:
../liboctave/util/url-transfer.cc: In member function 'virtual void
octave::curl_transfer::get_fileinfo(const std::string&, double&, int64_t&,
bool&)':
../liboctave/util/url-transfer.cc:580:32: warning:
'CURLINFO_CONTENT_LENGTH_DOWNLOAD' is deprecated: since 7.55.0. Use
CURLINFO_CONTENT_LENGTH_DOWNLOAD_T [-Wdeprecated-declarations]
  580 |     curl_easy_getinfo (m_curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD,
&fs);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/curl/curl.h:2853:3: note: declared here
 2853 |   CURLINFO_CONTENT_LENGTH_DOWNLOAD
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../liboctave/util/url-transfer.cc: In lambda function:
../liboctave/util/url-transfer.cc:720:60: warning: 'void
curl_formfree(curl_httppost*)' is deprecated: since 7.56.0. Use
curl_mime_free() [-Wdeprecated-declarations]
  720 |     unwind_action cleanup_httppost ([=] () { curl_formfree (post);
});
      |                                              ~~~~~~~~~~~~~~^~~~~~
/usr/include/curl/curl.h:2606:1: note: declared here
 2606 | curl_formfree(struct curl_httppost *form);
      | ^~~~~~~~~~~~~
../liboctave/util/url-transfer.cc: In member function 'virtual void
octave::curl_transfer::form_data_post(const
Array<std::__cxx11::basic_string<char> >&)':
../liboctave/util/url-transfer.cc:730:43: warning: 'CURLFORM_COPYNAME' is
deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  730 |               curl_formadd (&post, &last, CURLFORM_COPYNAME,
name.c_str (),
      |                                           ^~~~~~~~~~~~~~~~~
/usr/include/curl/curl.h:2495:3: note: declared here
 2495 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use
curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
../liboctave/util/url-transfer.cc:731:29: warning: 'CURLFORM_FILE' is
deprecated: since 7.56.0. Use curl_mime_filedata()
[-Wdeprecated-declarations]
  731 |                             CURLFORM_FILE, data.c_str (),
CURLFORM_END);
      |                             ^~~~~~~~~~~~~
/usr/include/curl/curl.h:2504:3: note: declared here
 2504 |   CURLFORM_FILE            CURL_DEPRECATED(7.56.0, "Use
curl_mime_filedata()"),
      |   ^~~~~~~~~~~~~
../liboctave/util/url-transfer.cc:730:28: warning: 'CURLFORMcode
curl_formadd(curl_httppost**, curl_httppost**, ...)' is deprecated: since
7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  730 |               curl_formadd (&post, &last, CURLFORM_COPYNAME,
name.c_str (),
      |              
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  731 |                             CURLFORM_FILE, data.c_str (),
CURLFORM_END);
      |                            
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/curl/curl.h:2570:1: note: declared here
 2570 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
../liboctave/util/url-transfer.cc:733:42: warning: 'CURLFORM_COPYNAME' is
deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  733 |               curl_formadd(&post, &last, CURLFORM_COPYNAME, name.c_str
(),
      |                                          ^~~~~~~~~~~~~~~~~
/usr/include/curl/curl.h:2495:3: note: declared here
 2495 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use
curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
../liboctave/util/url-transfer.cc:734:28: warning: 'CURLFORM_COPYCONTENTS' is
deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
  734 |                            CURLFORM_COPYCONTENTS, data.c_str (),
CURLFORM_END);
      |                            ^~~~~~~~~~~~~~~~~~~~~
/usr/include/curl/curl.h:2498:3: note: declared here
 2498 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use
curl_mime_data()"),
      |   ^~~~~~~~~~~~~~~~~~~~~
../liboctave/util/url-transfer.cc:733:27: warning: 'CURLFORMcode
curl_formadd(curl_httppost**, curl_httppost**, ...)' is deprecated: since
7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  733 |               curl_formadd(&post, &last, CURLFORM_COPYNAME, name.c_str
(),
      |              
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  734 |                            CURLFORM_COPYCONTENTS, data.c_str (),
CURLFORM_END);
      |                           
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/curl/curl.h:2570:1: note: declared here
 2570 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
../liboctave/util/url-transfer.cc:737:17: warning: 'CURLOPT_HTTPPOST' is
deprecated: since 7.56.0. Use CURLOPT_MIMEPOST [-Wdeprecated-declarations]
  737 |         SETOPT (CURLOPT_HTTPPOST, post);
      |                 ^~~~~~~~~~~~~~~~
../liboctave/util/url-transfer.cc:737:9: note: in expansion of macro 'SETOPT'
  737 |         SETOPT (CURLOPT_HTTPPOST, post);
      |         ^~~~~~
/usr/include/curl/curl.h:1195:3: note: declared here
 1195 |   CURLOPTDEPRECATED(CURLOPT_HTTPPOST, CURLOPTTYPE_OBJECTPOINT, 24,
      |   ^~~~~~~~~~~~~~~~~









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63573>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]