Public bug reported:

dnsdbq is FTBFSing when compiled against glibc 2.34:

asinfo.c: In function ‘asinfo_from_dns’:
asinfo.c:194:17: error: ‘__p_rcode’ is deprecated 
[-Werror=deprecated-declarations]
  194 |                 return p_rcode(rcode);
      |                 ^~~~~~
In file included from asinfo.c:33:
/usr/include/resolv.h:259:17: note: declared here
  259 | const char *    p_rcode (int) __THROW __RESOLV_DEPRECATED;
      |                 ^~~~~~~
cc1: all warnings being treated as errors

This is happening because glibc 2.34 deprecated quite a few functions
from resolv.h (libresolv), according to their announcement at
https://lists.gnu.org/archive/html/info-gnu/2021-08/msg00001.html:

* Various rarely-used functions declared in <resolv.h> and
  <arpa/nameser.h> have been deprecated.  Applications are encouraged to
  use dedicated DNS processing libraries if applicable.  For <resolv.h>,
  this affects the functions dn_count_labels, fp_nquery, fp_query,
  fp_resstat, hostalias, loc_aton, loc_ntoa, p_cdname, p_cdnname,
  p_class, p_fqname, p_fqnname, p_option, p_query, p_rcode, p_time,
  p_type, putlong, putshort, res_hostalias, res_isourserver,
  res_nameinquery, res_queriesmatch, res_randomid, sym_ntop, sym_ntos,
  sym_ston.  For <arpa/nameser.h>, the functions ns_datetosecs,
  ns_format_ttl, ns_makecanon, ns_parse_ttl, ns_samedomain, ns_samename,
  ns_sprintrr, ns_sprintrrf, ns_subdomain have been deprecated.

** Affects: dnsdbq
     Importance: Unknown
         Status: Unknown

** Affects: dnsdbq (Ubuntu)
     Importance: High
         Status: Confirmed


** Tags: update-excuse

** Bug watch added: github.com/dnsdb/dnsdbq/issues #198
   https://github.com/dnsdb/dnsdbq/issues/198

** Also affects: dnsdbq via
   https://github.com/dnsdb/dnsdbq/issues/198
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1956639

Title:
  FTBFS with glibc 2.34

To manage notifications about this bug go to:
https://bugs.launchpad.net/dnsdbq/+bug/1956639/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to