plustek: Thread: plustek_pp scanner + sarge


[<<] [<] Page 1 of 1 [>] [>>]
Subject: plustek_pp scanner + sarge
From: ####@####.####
Date: 26 Jun 2005 03:51:58 +0100
Message-Id: <200506261251.10396.mickfp@yahoo.com>

I've already posted this to the sane-devel list - sorry for the duplication 
but this is a show-stopper for me.

I'm having trouble getting a Plustek 4831P scanner to work with sarge.
There's an Epson printer daisy-chained off the scanner which works with
CUPS. Both worked with Redhat 7.3.

Any help would be appreciated - I've run out of ideas.

conf files, debugs, etc:

mick@dell933 $ dmesg|grep parport
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7, using FIFO 
[PCSPP,TRISTATE,COMPAT,EPP,ECP]
parport0: Printer, EPSON Stylus COLOR 460
lp0: using parport0 (interrupt-driven).
--------------------------------------------------------------------------------------
mick@dell933 $ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
-----
root@dell933: scanimage -L
device `plustek_pp:parport0' is a Plustek 600P/6000P parallel port flatbed 
scanner
--------------------------------------------------------------------------------------
mick@dell933 $ cat /etc/sane.d/plustek_pp.conf |grep -v '^#'
[direct]
device 0x378
option warmup    -1
option lOffOnEnd -1
option lampOff   -1

[direct]
device parport0
----------------------------------------------------------------------------------------
The notes in /etc/sane.d/dll.conf say debian puts some files (?) in
/etc/sane.d/dll.d - this directory is empty

mick@dell933 $ cat /etc/sane.d/dll.conf|grep -v '^#'

plustek_pp


----------------------------------------------------------------------------------------
mick@dell933 $ xsane
[sanei_debug] Setting debug level of dll to 4.
[dll] sane_init: SANE dll backend version 1.0.11 from sane-backends 1.0.15
[dll] add_backend: adding backend `plustek_pp'
[dll] sane_get_devices
[dll] load: searching backend `plustek_pp' in `/usr/lib/sane'
[dll] load: trying to load `/usr/lib/sane/libsane-plustek_pp.so.1'
[dll] load: dlopen()ing `/usr/lib/sane/libsane-plustek_pp.so.1'
[dll] init: initializing backend `plustek_pp'
[sanei_debug] Setting debug level of plustek_pp to 128.
[plustek_pp] PlustekPP backend V0.43-5, part of sane-backends 1.0.15
[plustek_pp] ># Plustek-PP SANE Backend configuration file<
[plustek_pp] ># For use with Plustek parallel-port scanners<
[plustek_pp] >#<
[plustek_pp] >[direct]<
[plustek_pp] >device 0x378<
[plustek_pp] Decoding device name >0x378<
[plustek_pp] >#<
[plustek_pp] >option warmup    -1<
[plustek_pp] Decoding option >warmup<
[plustek_pp] >option lOffOnEnd -1<
[plustek_pp] Decoding option >lOffOnEnd<
[plustek_pp] >option lampOff   -1<
[plustek_pp] Decoding option >lampOff<
[plustek_pp] ><
[plustek_pp] >[direct]<
[plustek_pp] attach (0x378, 0xbfffc430, (nil))
[plustek_pp] Device configuration:
[plustek_pp] device name   : >0x378<
[plustek_pp] direct I/O    : yes
[plustek_pp] warmup        : -1s
[plustek_pp] lampOff       : -1
[plustek_pp] lampOffOnEnd  : yes
[plustek_pp] model override: 0
[plustek_pp] ---------------------
[plustek_pp] drvopen()
[plustek_pp] open: PtDrvInit failed: 4
[plustek_pp] open failed: -1
[plustek_pp] >device parport0<
[plustek_pp] Decoding device name >parport0<
[plustek_pp] >#<
[plustek_pp] attach (parport0, 0xbfffc430, (nil))
[plustek_pp] Device configuration:
[plustek_pp] device name   : >parport0<
[plustek_pp] direct I/O    : yes
[plustek_pp] warmup        : -1s
[plustek_pp] lampOff       : -1
[plustek_pp] lampOffOnEnd  : yes
[plustek_pp] model override: 0
[plustek_pp] ---------------------
[plustek_pp] drvopen()
[plustek_pp] open: PtDrvInit failed: 11
[plustek_pp] open failed: -1
[dll] init: backend `plustek_pp' is version 1.0.0
[plustek_pp] sane_get_devices (0xbfffe4f8, 0)
[dll] sane_get_devices: found 0 devices
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `plustek_pp's exit function
[plustek_pp] sane_exit
[dll] sane_exit: finished

Also, the light/lamp in the scanner is on - even after a reboot.


When I try to compile the module:
root@dell933: make all
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 
-D_PTDRV_V0=41 -D_PTDRV_BUILD=6 -D__KERNEL__ 
-I/lib/modules/2.6.8-2-686/build/include -I./h -I./.. -O2 -DMODULE 
-DMODVERSIONS 
-include /lib/modules/2.6.8-2-686/build/include/linux/modsetver.h 
-M ./src/*.c > .depend

<snip>

gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 
-D_PTDRV_V0=41 -D_PTDRV_BUILD=6 -D__KERNEL__ 
-I/lib/modules/2.6.8-2-686/build/include -I./h -I./.. -O2 -DMODULE 
-DMODVERSIONS 
-include /lib/modules/2.6.8-2-686/build/include/linux/modsetver.h -c 
src/misc.c -o obj/misc.o
In file included 
from /lib/modules/2.6.8-2-686/build/include/asm/processor.h:18,
                 
from /lib/modules/2.6.8-2-686/build/include/linux/prefetch.h:14,
                 from /lib/modules/2.6.8-2-686/build/include/linux/list.h:7,
                 from /lib/modules/2.6.8-2-686/build/include/linux/wait.h:14,
                 from /lib/modules/2.6.8-2-686/build/include/linux/poll.h:9,
                 from h/plustek_sysdep.h:94,
                 from h/plustek_scan.h:61,
                 from src/misc.c:53:
/lib/modules/2.6.8-2-686/build/include/asm/system.h: In function 
`__set_64bit_var':
/lib/modules/2.6.8-2-686/build/include/asm/system.h:193: warning: 
dereferencing type-punned pointer will break strict-aliasing rules
/lib/modules/2.6.8-2-686/build/include/asm/system.h:193: warning: 
dereferencing type-punned pointer will break strict-aliasing rules
In file included from h/plustek_scan.h:167,
                 from src/misc.c:53:
h/plustek_types.h:189:8: warning: extra tokens at end of #endif directive
src/misc.c: In function `MiscRegisterPort':
src/misc.c:836: warning: implicit declaration of function `parport_enumerate'
src/misc.c:836: warning: assignment makes pointer from integer without a cast
src/misc.c:855: error: structure has no member named `next'
make: *** [obj/misc.o] Error 1
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.