[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#215343: libc6-dev: linux/usb.h does not compile



reassign 215343 speedtoch
thanks

Other packages will have similar problems.  Every time we update glibc
we get a bunch of these - they're still broken.

On Mon, Oct 13, 2003 at 07:44:37PM +0200, Laurent Bonnaud wrote:
> > This is not a bug.  Do not use kernel headers from user-space.  If you
> > need some piece of data from the header, for now you have to copy it
> > from the header in question.
> > 
> > This isn't new - you've never been supposed to include these headers
> > directly.
> 
> I don't do such evil things myself but Debian packages do. For example,
> package speedtouch does build on a sid system with libc6-dev 2.3.2-8.
> 
> However with libc6-dev 2.3.2.ds1-3, the build fails (see append log
> below).
> 
> Therefore this is a serious bug (FTBFS) and I will reopen it. I will not
> raise its severity because this is an experimental package (is it OK ?).
> Feel free to reassign it to package speetouch. The problem is that other
> packages may have similar problems.
> 
> $ fakeroot apt-get -b source speedtouch
> [...]
> make[2]: Entering directory `/tmp/LB/speedtouch-1.2-0beta2/src'
> gcc -Wall -I. -I/usr/local/include -I/usr/include -O2 -DVERSION=\"1.2-beta2\" -c extract.c
> gcc -Wall -I. -I/usr/local/include -I/usr/include -O2 -DVERSION=\"1.2-beta2\" -D_REENTRANT -D_THREAD_SAFE -o pusb.o -c pusb-linux.c
> In file included from /usr/include/linux/usb.h:4,
>                  from pusb-linux.c:42:
> /usr/include/linux/mod_devicetable.h:18: error: syntax error before "__u32"
> /usr/include/linux/mod_devicetable.h:20: error: syntax error before "class"
> /usr/include/linux/mod_devicetable.h:21: error: syntax error before "driver_data"
> /usr/include/linux/mod_devicetable.h:31: error: syntax error before "__u32"
> /usr/include/linux/mod_devicetable.h:33: error: syntax error before "model_id"
> /usr/include/linux/mod_devicetable.h:34: error: syntax error before "specifier_id"
> /usr/include/linux/mod_devicetable.h:35: error: syntax error before "version"
> /usr/include/linux/mod_devicetable.h:36: error: syntax error before "driver_data"
> /usr/include/linux/mod_devicetable.h:99: error: syntax error before "__u16"
> /usr/include/linux/mod_devicetable.h:103: error: syntax error before "idProduct"
> /usr/include/linux/mod_devicetable.h:104: error: syntax error before "bcdDevice_lo"
> /usr/include/linux/mod_devicetable.h:105: error: syntax error before "bcdDevice_hi"
> /usr/include/linux/mod_devicetable.h:108: error: syntax error before "bDeviceClass"
> /usr/include/linux/mod_devicetable.h:109: error: syntax error before "bDeviceSubClass"
> /usr/include/linux/mod_devicetable.h:110: error: syntax error before "bDeviceProtocol"
> /usr/include/linux/mod_devicetable.h:113: error: syntax error before "bInterfaceClass"
> /usr/include/linux/mod_devicetable.h:114: error: syntax error before "bInterfaceSubClass"
> /usr/include/linux/mod_devicetable.h:115: error: syntax error before "bInterfaceProtocol"
> /usr/include/linux/mod_devicetable.h:118: error: syntax error before "driver_info"
> /usr/include/linux/mod_devicetable.h:135: error: syntax error before "__u16"
> /usr/include/linux/mod_devicetable.h:138: error: syntax error before "dev_type"
> /usr/include/linux/mod_devicetable.h:139: error: syntax error before "cu_model"
> /usr/include/linux/mod_devicetable.h:140: error: syntax error before "dev_model"
> /usr/include/linux/mod_devicetable.h:142: error: syntax error before "driver_info"
> pusb-linux.c:66: error: redefinition of `struct usb_device_descriptor'
> pusb-linux.c: In function `pusb_control_msg':
> pusb-linux.c:164: error: structure has no member named `requesttype'
> pusb-linux.c:165: error: structure has no member named `request'
> pusb-linux.c:166: error: structure has no member named `value'
> pusb-linux.c:167: error: structure has no member named `index'
> pusb-linux.c:168: error: structure has no member named `length'
> make[2]: *** [pusb.o] Error 1
> make[2]: Leaving directory `/tmp/LB/speedtouch-1.2-0beta2/src'
> make[1]: *** [modem] Error 2
> make[1]: Leaving directory `/tmp/LB/speedtouch-1.2-0beta2'
> make: *** [build-stamp] Error 2
> Build command 'cd speedtouch-1.2-0beta2 && dpkg-buildpackage -b -uc' failed.
> E: Child process failed
> 
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-glibc-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



Reply to: