Getting a Canon scanner to work

Petr Janda elekktretterr at exemail.com.au
Wed Jun 21 11:11:42 PDT 2006


I get this error.

. ./../dev/usbmisc/uscanner/uscanner.c:126: error: 
`USB_PRODUCT_CANON_D660U' undeclared here (not in a function)
. ./../dev/usbmisc/uscanner/uscanner.c:126: error: initializer element is 
not constant
. ./../dev/usbmisc/uscanner/uscanner.c:126: error: (near initialization 
for `uscanner_devs[16].devno.ud_product')
. ./../dev/usbmisc/uscanner/uscanner.c:126: error: initializer element is 
not constant
. ./../dev/usbmisc/uscanner/uscanner.c:126: error: (near initialization 
for `uscanner_devs[16].devno')
. ./../dev/usbmisc/uscanner/uscanner.c:126: error: initializer element is 
not constant
. ./../dev/usbmisc/uscanner/uscanner.c:126: error: (near initialization 
for `uscanner_devs[16]')
. ./../dev/usbmisc/uscanner/uscanner.c:129: error: initializer element is 
not constant
. ./../dev/usbmisc/uscanner/uscanner.c:129: error: (near initialization 
for `uscanner_devs[17].devno')
. ./../dev/usbmisc/uscanner/uscanner.c:129: error: initializer element is 
not constant
. ./../dev/usbmisc/uscanner/uscanner.c:129: error: (near initialization 
for `uscanner_devs[17]')
. ./../dev/usbmisc/uscanner/uscanner.c:132: error: initializer element is 
not constant
. ./../dev/usbmisc/uscanner/uscanner.c:132: error: (near initialization 
for `uscanner_devs[18].devno')
. ./../dev/usbmisc/uscanner/uscanner.c:132: error: initializer element is 
not constant
. ./../dev/usbmisc/uscanner/uscanner.c:132: error: (near initialization 
for `uscanner_devs[18]')
. ./../dev/usbmisc/uscanner/uscanner.c:133: error: initializer element is 
not constant
. ./../dev/usbmisc/uscanner/uscanner.c:133: error: (near initialization 
for `uscanner_devs[19].devno')
. ./../dev/usbmisc/uscanner/uscanner.c:133: error: initializer element is 
not constant
. ./../dev/usbmisc/uscanner/uscanner.c:133: error: (near initialization 
for `uscanner_devs[19]')
. ./../dev/usbmisc/uscanner/uscanner.c:134: error: initializer element is 
not constant
. ./../dev/usbmisc/uscanner/uscanner.c:134: error: (near initialization 
for `uscanner_devs[20].devno')
. ./../dev/usbmisc/uscanner/uscanner.c:134: error: initializer element is 
not constant
. ./../dev/usbmisc/uscanner/uscanner.c:134: error: (near initialization 
for `uscanner_devs[20]')
. ./../dev/usbmisc/uscanner/uscanner.c:135: error: initializer element is 
not constant
. ./../dev/usbmisc/uscanner/uscanner.c:135: error: (near initialization 
for `uscanner_devs[21].devno')
. ...

walt wrote:
Steve O'Hara-Smith wrote:
[...]
  
	The uscanner driver doesn't have this device listed. Try applying
the patch below in /usr/src/sys/dev/usbmisc/uscanner and building a new
kernel. It may be enough to get your scanner going ...
    
Yes, thanks, that did it.  Petr, if your scanner is a 660 instead of
a 676 you should edit the device name accordingly.  Let us know if it
works.
  






More information about the Users mailing list