I checked debian sid, and the build succeeds there. The code is using
UINT16_MAX in the same place (tc/tc_core.c), and that file is not
including stdint.h

UINT16_MAX is only used in tc/tc_core.c:
$ grep UINT16_MAX -r .
./tc/tc_core.c:         if ((sz >> s->size_log) > UINT16_MAX) {
./.pc/ftbfs.diff/tc/tc_core.c:          if ((sz >> s->size_log) > UINT16_MAX) {


UINT16_MAX is only defined in stdint.h:
$ grep UINT16_MAX -r /usr/include
/usr/include/stdint.h:# define UINT16_MAX               (65535)

There are no patches defining UINT16_MAX or including stdint.h in
debian/patches.

Build flags (dpkg-buildflags) in ubuntu and sid are the same.

Without digging deeper, I don't know why the build succeeds there.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iproute2 in Ubuntu.
https://bugs.launchpad.net/bugs/1735158

Title:
  FTBFS with gcc7

Status in iproute2 package in Ubuntu:
  Fix Released
Status in iproute2 source package in Artful:
  Fix Committed

Bug description:
  tc
      CC       tc_core.o
  tc_core.c: In function ‘tc_calc_size_table’:
  tc_core.c:190:29: error: ‘UINT16_MAX’ undeclared (first use in this 
function); did you mean ‘__INT16_MAX__’?
     if ((sz >> s->size_log) > UINT16_MAX) {
                               ^~~~~~~~~~
                               __INT16_MAX__
  tc_core.c:190:29: note: each undeclared identifier is reported only once for 
each function it appears in
  ../Config:40: recipe for target 'tc_core.o' failed
  make[3]: *** [tc_core.o] Error 1

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to