[SM-Discuss] glibc question also....

David Brown dmlb2000 at gmail.com
Wed Oct 24 00:35:14 EDT 2007


After a little bit of looking its a problem with the headers, probably
will post this to LKML and see what the headers should be using.

INT_MAX is defined inside a #ifdef __KERNEL__ in
include/linux/kernel.h since that define is inside the __KERNEL__
define its ripped out by the unifdef program used by the kernel to
generate the user space headers.

You could make a patch to define INT_MAX in growisofs.c like this

#include <linux/cdrom.h>
#define INT_MAX ((int)(~0U>>1))

Everywhere it includes cdrom.h from the kernel, otherwise I'll take it
up with lkml to see what cdrom.h should be using for INT_MAX

- David Brown

On 10/23/07, Robin Cook <rcook at wyrms.net> wrote:
>
>  I am having a problem compiling two spells: libcdio and dvd+rw-tools on my
> two machine that I have updated glibc on.
>
>  growisofs is having a failure of INT_MAX not defined in function setup_fds
> at line 724.
>
>  .It has the the below include.
>
>  #include <linux/cdrom.h>
>
>  This is the line where the error occurs.
>
>  if (ioctl (ioctl_fd,CDROM_MEDIA_CHANGED,CDSL_CURRENT) < 0)
>
>  And this is the defines in cdrom.h.
>
>  cdrom.h:#define CDSL_CURRENT            INT_MAX
>
>  Is there something in the glibc spell that in not being setup that is
> causing this?
>
>  Thanks
>  CuZnDragon
>
>
>
>


More information about the SM-Discuss mailing list