[BRLTTY] USB support does not build on AMD64

Samuel Thibault samuel.thibault at ens-lyon.org
Fri Nov 11 12:33:06 EST 2005


Dave Mielke, le Fri 11 Nov 2005 11:15:21 -0500, a écrit :
> [quoted lines by mlang on 2005/11/11 at 17:05 +0100]
> 
> >gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./usb_linux.c
> >In file included from /usr/include/asm-x86_64/div64.h:1,
> >                 from /usr/include/asm/div64.h:8,
> >                 from /usr/include/linux/jiffies.h:9,
> >                 from /usr/include/linux/sched.h:12,
> >                 from /usr/include/asm-x86_64/compat.h:8,
> >                 from /usr/include/asm/compat.h:8,
> >                 from /usr/include/linux/compat.h:15,
> >                 from /usr/include/linux/usbdevice_fs.h:35,
> >                 from ./usb_linux.c:32:
> >/usr/include/asm-generic/div64.h:54:3: error: #error do_div() does not yet support the C64
> 
> Either there's a bug in the kernel header package or the includes in
> usb_linux.c aren't quite right. I think this issue came up before and someone
> posted a pointer to a Debian bug report. Are you able to debug this since I
> don't have access to that platform?

http://bugs.debian.org/326561

Mario, as a temporary fix, you can #define BITS_PER_LONG to 64 for this
architecture.

Regards,
Samuel


More information about the BRLTTY mailing list