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

Update resolv/async_resolv.c to avoid using deprecated stuff #7571

Open
alexey-tikhonov opened this issue Sep 6, 2024 · 0 comments · May be fixed by #7581
Open

Update resolv/async_resolv.c to avoid using deprecated stuff #7571

alexey-tikhonov opened this issue Sep 6, 2024 · 0 comments · May be fixed by #7581

Comments

@alexey-tikhonov
Copy link
Member

../src/resolv/async_resolv.c: In function ‘resolv_gethostbyname_dns_query’:
../src/resolv/async_resolv.c:882:5: warning: ‘ares_search’ is deprecated: Use ares_search_dnsrec instead [-Wdeprecated-declarations]
  882 |     ares_search(state->resolv_ctx->channel,
      |     ^~~~~~~~~~~
In file included from ../src/resolv/async_resolv.c:30:
/usr/include/ares.h:572:60: note: declared here
  572 | CARES_EXTERN CARES_DEPRECATED_FOR(ares_search_dnsrec) void ares_search(
      |                                                            ^~~~~~~~~~~
../src/resolv/async_resolv.c: In function ‘resolv_gethostbyname_dns_parse’:
../src/resolv/async_resolv.c:968:13: warning: ‘ares_parse_a_reply’ is deprecated: Use ares_dns_parse instead [-Wdeprecated-declarations]
  968 |             status = ares_parse_a_reply(abuf, alen, &hostent,
      |             ^~~~~~
/usr/include/ares.h:771:55: note: declared here
  771 | CARES_EXTERN CARES_DEPRECATED_FOR(ares_dns_parse) int ares_parse_a_reply(
      |                                                       ^~~~~~~~~~~~~~~~~~
../src/resolv/async_resolv.c:981:13: warning: ‘ares_parse_aaaa_reply’ is deprecated: Use ares_dns_parse instead [-Wdeprecated-declarations]
  981 |             status = ares_parse_aaaa_reply(abuf, alen, &hostent,
      |             ^~~~~~
/usr/include/ares.h:775:55: note: declared here
  775 | CARES_EXTERN CARES_DEPRECATED_FOR(ares_dns_parse) int ares_parse_aaaa_reply(
      |                                                       ^~~~~~~~~~~~~~~~~~~~~
../src/resolv/async_resolv.c: In function ‘resolv_getsrv_done’:
../src/resolv/async_resolv.c:1858:5: warning: ‘ares_parse_srv_reply’ is deprecated: Use ares_dns_parse instead [-Wdeprecated-declarations]
 1858 |     ret = ares_parse_srv_reply(abuf, alen, &reply_list);
      |     ^~~
/usr/include/ares.h:789:55: note: declared here
  789 | CARES_EXTERN CARES_DEPRECATED_FOR(ares_dns_parse) int ares_parse_srv_reply(
      |                                                       ^~~~~~~~~~~~~~~~~~~~
../src/resolv/async_resolv.c: In function ‘resolv_getsrv_query’:
../src/resolv/async_resolv.c:1942:5: warning: ‘ares_query’ is deprecated: Use ares_query_dnsrec instead [-Wdeprecated-declarations]
 1942 |     ares_query(state->resolv_ctx->channel, state->query,
      |     ^~~~~~~~~~
/usr/include/ares.h:549:59: note: declared here
  549 | CARES_EXTERN CARES_DEPRECATED_FOR(ares_query_dnsrec) void ares_query(
      |                                                           ^~~~~~~~~~
@alexey-tikhonov alexey-tikhonov changed the title Updated resolv/async_resolv.c to avoid using deprecated stuff Update resolv/async_resolv.c to avoid using deprecated stuff Sep 9, 2024
alexey-tikhonov added a commit to alexey-tikhonov/sssd that referenced this issue Sep 11, 2024
instead of deprecated `ares_parse_a/aaaa/_reply()`

This patch doesn't replace `ares_parse_srv_reply()` as benefints
are quite questionable.

Partially resolves SSSD#7571
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

Successfully merging a pull request may close this issue.

1 participant