FTBFS with glibc 2.34

Bug #1956639 reported by Sergio Durigan Junior
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dnsdbq
Fix Released
Unknown
dnsdbq (Ubuntu)
Fix Released
High
Unassigned

Bug Description

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.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Bug reported upstream.

Changed in dnsdbq:
status: Unknown → Fix Released
Changed in dnsdbq:
status: Fix Released → New
Changed in dnsdbq:
status: New → Fix Released
Revision history for this message
Lukas Märdian (slyon) wrote :

I've marked LP: #1970551 as duplicate of this bug and sponsored the debdiff that was provided in that other LP bug, which basically applies the upstream commit that was reported above.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dnsdbq - 2.6.0-2ubuntu1

---------------
dnsdbq (2.6.0-2ubuntu1) kinetic; urgency=medium

  * cherrypick upstream patch to avoid build failure (LP: #1956639)
    - d/p/see-if-we-can-remove-the-need-for-res_rcode-by-chang.patch

 -- Heinrich Schuchardt <email address hidden> Wed, 27 Apr 2022 09:08:29 +0200

Changed in dnsdbq (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

I received a test API key from farsightsecurity.com. The new release works fine with the key.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.