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

Deprecated c-ares function calls #353

Open
blast007 opened this issue Jun 19, 2024 · 0 comments
Open

Deprecated c-ares function calls #353

blast007 opened this issue Jun 19, 2024 · 0 comments
Milestone

Comments

@blast007
Copy link
Member

Building with --enable-debug fails on Fedora 40 w/ c-ares 1.28.1 and gcc 14.1.1 with the following errors:

AresHandler.cxx: In member function 'void AresHandler::queryHost(const char*)':
AresHandler.cxx:113:23: error: 'void ares_gethostbyname(ares_channel_t*, const char*, int, ares_host_callback, void*)' is deprecated: Use ares_getaddrinfo instead [-Werror=deprecated-declarations]
  113 |     ares_gethostbyname(aresChannel, name, AF_INET, staticCallback,
      |     ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  114 |                        (void *)this);
      |                        ~~~~~~~~~~~~~
In file included from ../../include/AresHandler.h:21,
                 from AresHandler.cxx:14:
/usr/include/ares.h:592:58: note: declared here
  592 | CARES_EXTERN CARES_DEPRECATED_FOR(ares_getaddrinfo) void ares_gethostbyname(
      |                                                          ^~~~~~~~~~~~~~~~~~
AresHandler.cxx: In member function 'void AresHandler::setFd(fd_set*, fd_set*, int&)':
AresHandler.cxx:168:31: error: 'int ares_fds(ares_channel_t*, fd_set*, fd_set*)' is deprecated: Use ARES_OPT_EVENT_THREAD or ARES_OPT_SOCK_STATE_CB instead [-Werror=deprecated-declarations]
  168 |     int aresMaxFile = ares_fds(aresChannel, read_set, write_set) - 1;
      |                       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/ares.h:611:31: note: declared here
  611 |   ARES_OPT_SOCK_STATE_CB) int ares_fds(ares_channel_t *channel,
      |                               ^~~~~~~~
AresHandler.cxx: In member function 'void AresHandler::process(fd_set*, fd_set*)':
AresHandler.cxx:177:17: error: 'void ares_process(ares_channel_t*, fd_set*, fd_set*)' is deprecated: Use ares_process_fd instead [-Werror=deprecated-declarations]
  177 |     ares_process(aresChannel, read_set, write_set);
      |     ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/ares.h:623:57: note: declared here
  623 | CARES_EXTERN CARES_DEPRECATED_FOR(ares_process_fd) void ares_process(
      |                                                         ^~~~~~~~~~~~
@blast007 blast007 added this to the 2.4.28 milestone Jun 19, 2024
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