[sane-devel] Problem with libusb and 64 bits 2.6.25 kernel

Nicolas nicolas.martin at freesurf.fr
Sat Jun 21 16:07:56 UTC 2008


Hi Dennis, 

A bug was opened a while back by Sam Varshavchik, concerning the pixma
backend for Canon ImageClass MF-4270, when compiled and used on a 64
bits platform (no issue so far on 32 bits), details are given here:

https://alioth.debian.org/tracker/?group_id=30186&atid=410366&func=detail&aid=310861

We shared with Sam some info to try to locate the origin, which looked
to be related to the 64 bits libusb. 

Sam has performed investigations since then, his conclusions spot on
that 32 and 64 bits libusb behave slightly differently when reading data
from USB, more precisely, the 64 bits libusb seems to expect an exact
count of bytes to read (but not 32 bits libusb), and fails (timeout) if
such count is not satisfied.

Sam, in his last post on the bug report page, proposes a patch, which
looks to me fine for both 32 and 64 bits, and impacts only the
ImageClass part of the backend. 

Dennis, If you don't mind, could you also have a look and give a try, so
that we can commit into CVS.

Nicolas






More information about the sane-devel mailing list