FTBFS libi2c detection is broken

Bug #1742691 reported by Christian Ehrhardt 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
collectd
Fix Released
Unknown
collectd (Debian)
Fix Released
Unknown
collectd (Ubuntu)
Fix Released
Undecided
Christian Ehrhardt 

Bug Description

Hi,
I ran into this FTBFS when I wanted to rebuild in Ubuntu to pick up the new DPDK 17.11.

  error: 'i2c_smbus_read_i2c_block_data' undeclared (first use in this
function); did you mean 'i2c_smbus_ioctl_data'?

Upstream in i2c this came by the change:

  commit 251d594fd0d338c7b85707a2e72153a404a25b10
  Author: Jean Delvare <email address hidden>
  Date: Mon May 21 16:52:48 2012 +0000

    New library for I2C device access under Linux. As a first step, the
    library will host the i2c_smbus_*() inline functions which were
    previously in the user-space flavor of <linux/i2c-dev.h>.

I reported the issue upstream so they can add a proper toleration for the change in the i2c lib.

Short term the following does the trick to get it building at least (obviously without i2c&barometer):
  confflags += --disable-barometer

CVE References

Changed in collectd (Ubuntu):
status: New → Triaged
assignee: nobody → ChristianEhrhardt (paelzer)
Changed in collectd (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package collectd - 5.7.2-2ubuntu1

---------------
collectd (5.7.2-2ubuntu1) bionic; urgency=medium

  * d/p/fix-i2c-detection.patch fix i2c usage for 4.0 (LP: #1742691)
    - d/control: bump libi2c-dev version dependency
  * d/rules: fix FTBFS due to liblvm2app deprecation (LP: #1742690)
    by disabling preprocessor warnings.
  * implicitly rebuilds to pick up DPDK 17.11 (LP: #1741208)
  * d/p/CVE-2017-16820-snmp-plugin-Fix-double-free-of-request-PDU.patch
    backport from upstream (Closes: #881757, CVE-2017-16820).

 -- Christian Ehrhardt <email address hidden> Thu, 11 Jan 2018 14:33:20 +0100

Changed in collectd (Ubuntu):
status: Triaged → Fix Released
Changed in collectd (Debian):
status: New → Fix Released
Changed in collectd:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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