Bug#456102: FTBFS: error: 'INT_MAX' undeclared

2007-12-13 Thread Richard Atterer
On Wed, Dec 12, 2007 at 09:19:51PM -0700, Martin Michlmayr wrote:
  cdrwtool.c: In function 'cdrom_open_check':
  cdrwtool.c:606: error: 'INT_MAX' undeclared (first use in this function)

This puzzled me at first, as line 606 reads:

  ret = ioctl(fd, CDROM_DRIVE_STATUS, CDSL_CURRENT);

Both constants come from linux/cdrom.h. For me it contains:

  #define CDROM_DRIVE_STATUS  0x5326  /* Get tray position, etc. */
  #define CDSL_CURRENT((int) (~0U1))

I wouldn't be surprised if the second #define had been changed to use 
INT_MAX in more recent kernel sources.

So is this a bug in the header file - should it include limits.h itself?

Cheers,

  Richard

-- 
  __   _
  |_) /|  Richard Atterer
  | \/¯|  http://atterer.net
  ¯ '` ¯




Bug#456102: FTBFS: error: 'INT_MAX' undeclared

2007-12-12 Thread Martin Michlmayr
Package: udftools
Version: 1.0.0b3-13
Severity: serious

This package no longer builds in unstable:

 Automatic build of udftools_1.0.0b3-13 on em64t by sbuild/amd64 0.53
...
 if gcc -DHAVE_CONFIG_H -I. -I. -I../include  -D_LARGEFILE64_SOURCE   -g -O2 
 -MT cdrwtool.o -MD -MP -MF .deps/cdrwtool.Tpo -c -o cdrwtool.o cdrwtool.c; \
   then mv -f .deps/cdrwtool.Tpo .deps/cdrwtool.Po; else rm -f 
 .deps/cdrwtool.Tpo; exit 1; fi
 cdrwtool.c: In function 'cdrom_open_check':
 cdrwtool.c:606: error: 'INT_MAX' undeclared (first use in this function)
 cdrwtool.c:606: error: (Each undeclared identifier is reported only once
 cdrwtool.c:606: error: for each function it appears in.)
 make[2]: *** [cdrwtool.o] Error 1
 make[2]: Leaving directory `/build/tbm/udftools-1.0.0b3/cdrwtool'

-- 
Martin Michlmayr
http://www.cyrius.com/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]