infinipath-psm: FTBFS: Uses sytem-defined macro "minor" with wrong include statement

Bug #1721299 reported by Andreas Moog
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
infinipath-psm (Ubuntu)
Fix Released
High
Unassigned

Bug Description

The package infinipath-psm failed to Build in the current Ubuntu development version:

Full log at: https://launchpadlibrarian.net/338219604/buildlog_ubuntu-artful-amd64.infinipath-psm_3.3+19.g67c0807.open-3_BUILDING.txt.gz

ipath_proto.c: In function 'ipath_userinit':
ipath_proto.c:539:13: error: In the GNU C Library, "minor" is defined
 by <sys/sysmacros.h>. For historical compatibility, it is
 currently defined by <sys/types.h> as well, but we plan to
 remove this soon. To use "minor", include <sys/sysmacros.h>
 directly. If you did not intend to use a system-defined macro
 "minor", you should undefine it after including <sys/types.h>. [-Werror]
     spctrl->spc_dev.spd_type = minor(st.st_rdev);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Tags: bionic ftbfs
Andreas Moog (ampelbein)
Changed in infinipath-psm (Ubuntu):
importance: Undecided → High
tags: added: ftbfs
Andreas Moog (ampelbein)
tags: added: bionic
Revision history for this message
Andreas Moog (ampelbein) wrote :

3.3+20.604758e7-5 in bionic built successfully.

Changed in infinipath-psm (Ubuntu):
status: New → 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.