Mustek SE12000SP, SuSE5.3 and out of memory.

Luciano Olivo (luciano.olivo@ud.nettuno.it)
Mon, 22 Mar 1999 19:25:05 +0100

I compiled the sources of SANE 1.00 for my SuSE 5.3 (kernel 2.0.35) to get
my new ScanExpress12000SP recognized (I had to edit configure: make was
looking for some missing jpeg files so I forced the disabling of the DC210
backend, in an "if test" that was'nt working properly).
Before I had to patch the kernel with the mustek-scsi-patch-0.6 to be able to
use the DMX3181LE scsi card that comes with the scanner, and to compile the
patched scsi driver (for NCR5380) as a module.
At a first time the scanner seemed to work: I scanned at 60 dpi in gray and it
was OK. The true problem came when I tried to scan at more resolution or using
colors: the message "out of memory" came out (with xcanimage and also with
scanimage from the command line).
I tried to set SG_BIG_BUF to 130560 (and also to 32768) in
/usr/include/scsi/sg.h, but I got the following message during compilation:

make[2]: Entering directory `/usr/src/linux-2.0.35.SuSE/drivers/scsi'
gcc -D__KERNEL__ -I/usr/src/linux-2.0.35.SuSE/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=686 -DMODULE -c -o sg.o sg.c
In file included from sg.c:28:
/usr/src/linux-2.0.35.SuSE/include/scsi/sg.h:39: parse error before
`SG_BIG_BUFF'
sg.c:38: `sg_init' undeclared here (not in a function)
sg.c:38: initializer element for `sg_template.init' is not constant
sg.c:552: warning: function declaration isn't a prototype
sg.c:552: warning: `sg_init' defined but not used
make[2]: *** [sg.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.0.35.SuSE/drivers/scsi'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.0.35.SuSE/drivers'
make: *** [modules] Error 2

what is going wrong?

Thanks.

Luciano

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com