FTBFS with glibc 2.30: sysctl.h is deprecated

Bug #1843325 reported by Andreas Hasenack on 2019-09-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Squid
Unknown
Unknown
squid (Ubuntu)
High
Andreas Hasenack

Bug Description

From the announcement at https://savannah.gnu.org/forum/forum.php?forum_id=9515:
"""
The Linux-specific <sys/sysctl.h> header and the sysctl function have been
  deprecated and will be removed from a future version of glibc.
  Application should directly access /proc instead. For obtaining random
  bits, the getentropy function can be used.
"""

This results in a build failure:
In file included from Eui48.cc:49:
/usr/include/x86_64-linux-gnu/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]
   21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
      | ^~~~~~~

Related branches

summary: - FTBFS glibc 2.30: sysctl.h is deprecated
+ FTBFS with glibc 2.30: sysctl.h is deprecated
Changed in squid (Ubuntu):
assignee: nobody → Andreas Hasenack (ahasenack)
status: New → In Progress
Andreas Hasenack (ahasenack) wrote :

In progress branch:

https://code.launchpad.net/~ahasenack/ubuntu/+source/squid/+git/squid/+ref/eoan-squid-ftbfs-glibc-230

With accompanying ppa:

https://launchpad.net/~ahasenack/+archive/ubuntu/squid-ftbfs-glibc-230

I'm waiting a bit to hear from upstream before uploading that to ubuntu.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package squid - 4.8-1ubuntu2

---------------
squid (4.8-1ubuntu2) eoan; urgency=medium

  * d/p/drop-sysctl_h.patch: no longer include sysctl.h as it was
    deprecated in glibc 2.30 (LP: #1843325)

 -- Andreas Hasenack <email address hidden> Mon, 09 Sep 2019 17:31:45 -0300

Changed in squid (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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