Re: usbdux.o error

Hi!

Go into usbdux.c and change:

// The usbduxsub-driver
static struct usb_driver usbduxsub_driver = {
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,18)
         owner:          THIS_MODULE,
#endif
         name:           BOARDNAME,

the kernel version in there into 2,4,19:
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,19)

Can you please submit a bug in comedi's bugzilla.

The other option would be to take a more recent kernel.

/Bernd

Dario wrote:
> Dear Comedi developers,
> 
> I'm trying to install comedi-0.7.68 on the following system:
> 
> - Linux mandrake 9.0
> - kernel 2.4.19-adeos
> - gcc version 3.2
> 
> Unfortunately, I get this error:
> 
> usbdux.c:2702: unknown field `owner' specified in initializer
> usbdux.c:2702: warning: initialization from incompatible pointer type
> make[3]: *** [usbdux.o] Error 1
> make[3]: Leaving directory `/usr/src/comedi-0.7.68/comedi/drivers'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/src/comedi-0.7.68/comedi'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/comedi-0.7.68'
> make: *** [all] Error 2
> 
> Do you have any suggestion to solve this problem?
> 
> Best regards
> 
> Dario
> 
> 
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi

-- 
www:	http://www.berndporr.me.uk
         http://www.linux-usb-daq.com/
e-mail:	Bernd.Porr_at_cn.stir.ac.uk
Mobile:	+44 (0)7769-506746
Landl.:	+44 (0)1324 875445
Work:	+44 (0)1786-46-6378
Postal:	Room: 3B141, Department of Psychology, Univ of Stir, FK9 4LA, Scotl

Received on 2004-02-26Z23:47:05