← Back to team overview

kernel-packages team mailing list archive

[Bug 1592930] Re: failures building userspace packages that include ethtool.h

 

I'm not seeing INT_MAX in ethtool.h

gospo@xenial-dev:~/ubuntu-yakkety$ grep INT_MAX include/uapi/linux/ethtool.h 
gospo@xenial-dev:~/ubuntu-yakkety$ 

Any chance you have some odd headers installed in your sbuild
environment or you are using a xenial-based sbuild that didn't have this
patch?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1592930

Title:
  failures building userspace packages that include ethtool.h

Status in linux package in Ubuntu:
  Triaged
Status in linux source package in Xenial:
  Fix Committed

Bug description:
  Current -proposed kernel produces errors when building userspace
  packages that require ethtool.h from linux-headers.

  This was noted by Iain Lane when building systemd with this kernel:

  In file included from ../src/udev/net/ethtool-util.c:22:0:
  /usr/include/linux/ethtool.h: In function ‘ethtool_validate_speed’:
  /usr/include/linux/ethtool.h:1321:18: error: ‘INT_MAX’ undeclared (first use in this function)
    return speed <= INT_MAX || speed == SPEED_UNKNOWN;
                    ^
  /usr/include/linux/ethtool.h:1321:18: note: each undeclared identifier is reported only once for each function it appears in

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1592930/+subscriptions


References