View previous topic :: View next topic |
Author |
Message |
nosferat n00b
Joined: 17 Oct 2003 Posts: 21 Location: Colden, NY USA
|
Posted: Thu Jan 15, 2004 6:31 am Post subject: plustek-parallel |
|
|
I emerged sane-backends and sane-frontends as well as xsane, and then realized that it couldn't detect my scanner. After some research, I found that my scanner (a Plustek OpticPro 4800P parallel-port scanner) requires an additional module, and I found that there is an ebuild for it... However, when I attempted to emerge it, it gave me these errors:
src/ptdrv.c:158: parse error before "devfs_handle"
src/ptdrv.c:158: warning: type defaults to `int' in declaration of `devfs_handle'
src/ptdrv.c:158: warning: initialization makes integer from pointer without a cast
src/ptdrv.c:158: warning: data definition has no type or storage class
src/ptdrv.c: In function `init_module':
src/ptdrv.c:1449: warning: null format string
src/ptdrv.c:1449: warning: too many arguments for format
src/ptdrv.c:1450: warning: implicit declaration of function `devfs_register_chrdev'
src/ptdrv.c:1482: warning: implicit declaration of function `devfs_register'
src/ptdrv.c:1483: `DEVFS_FL_DEFAULT' undeclared (first use in this function)
src/ptdrv.c:1483: (Each undeclared identifier is reported only once
src/ptdrv.c:1483: for each function it appears in.)
src/ptdrv.c:1504: warning: implicit declaration of function `devfs_unregister_chrdev'
src/ptdrv.c: In function `cleanup_module':
src/ptdrv.c:1534: `devfs_handle_t' undeclared (first use in this function)
src/ptdrv.c:1534: parse error before "master"
src/ptdrv.c:1547: `master' undeclared (first use in this function)
src/ptdrv.c:1547: warning: implicit declaration of function `devfs_find_handle'
src/ptdrv.c:1548: `DEVFS_SPECIAL_CHR' undeclared (first use in this function)
src/ptdrv.c:1549: warning: implicit declaration of function `devfs_unregister'
src/ptdrv.c: In function `pt_drv_open':
src/ptdrv.c:1599: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.0-gentoo/build/include/linux/module.h:482)
src/ptdrv.c: In function `pt_drv_close':
src/ptdrv.c:1619: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.0-gentoo/build/include/linux/module.h:494)
make: *** [obj/ptdrv.o] Error 1
I checked and apparently this ebuild uses no USE flags, and I even tried more tame CFLAGS, but to no avail... I am at a loss as to what to do next... Any ideas?
TIA
Dave _________________ stick a fork in it... |
|
Back to top |
|
|
nosferat n00b
Joined: 17 Oct 2003 Posts: 21 Location: Colden, NY USA
|
Posted: Sun Feb 08, 2004 10:17 pm Post subject: |
|
|
OK, some stuff i forgot to include last time... I'm using the 2.6.0 kernel. Apparently this driver was made with the 2.4 kernel, so it's expecting certain data structures that appear to no longer exist. Is there any way to get my scanner working under 2.6?
Dave _________________ stick a fork in it... |
|
Back to top |
|
|
grimjed n00b
Joined: 20 Jun 2003 Posts: 20
|
Posted: Mon Feb 16, 2004 5:07 am Post subject: |
|
|
I have the exact same problem, Can't emerge plustek-parallel using kernel 2.6.1-gentoo-r1. I get the same error message.
I've submitted a new bug:
See: https://bugs.gentoo.org/show_bug.cgi?id=41739
Hope we hear something. I sure would like to use my old scanner under kernel 2.6. |
|
Back to top |
|
|
nosferat n00b
Joined: 17 Oct 2003 Posts: 21 Location: Colden, NY USA
|
Posted: Tue Feb 17, 2004 3:32 am Post subject: |
|
|
Well, I just checked that bug report... apparently we should be using the new sane-backends instead since the old plustek-parallel ebuild has a dependency on 2.4 kernels. _________________ stick a fork in it... |
|
Back to top |
|
|
grimjed n00b
Joined: 20 Jun 2003 Posts: 20
|
Posted: Tue Feb 17, 2004 2:01 pm Post subject: |
|
|
I've got a new problem. In the sane-backends I don't see a pt_drv.o. I see a plustek.o. I've added plustek to /etc/modules.autoload/kernel-2.6 (I think - I'm writing this message at work from a Windows computer) I've run update-modules. I can see that the module tries to load but fails. Inside plustek.conf I see it's looking for the scanner on /dev/pt_drv. In kernel 2.4 I created a symlink /dev/pt_drv to the actual location of the scanner /dev/scanners/pt_drv. When I boot from my 2.4 kernel I get /dev/scanners/pt_drv.
My problem - I no longer have a /dev/scanners/pt_drv. I have parallel port support and PC-style parallel port compiled as modules (as I did in 2.4) I feel like I'm missing something in my 2.6 kernel... Everthing else on the computer works perfectly under kernel 2.6 - even a nice customized bootsplash and framebuffer.
Do you know how to get /dev/scanners/pt_drv to appear? (Please forgive any incorrect "technicalities" in this message - It's all from memory and I'm still a noob.) |
|
Back to top |
|
|
Nibjib_v2 n00b
Joined: 22 Feb 2004 Posts: 1 Location: E. Yorkshire, UK
|
Posted: Sun Feb 22, 2004 1:49 pm Post subject: Plustek Parallel Port Scanner |
|
|
I have been having similar problems with a P12 scanner. Gave up on the kernel module, and decided to use the sane-backends-1.0.13 ebuild, which is supposed to have direct interfacing built in and use the module as an option only. Commented all out in /etc/sane.d/diff.conf apart from plustek_pp, and set /etc/sane.d/plustek_pp.conf to use direct interface mode (0x378 or similar),
I know i've got it nearly working because although it prints "No scanners were identified...." when I run `scanimage -L`, the light on the scanner goes off, while when it wasnt configured at all it would just stay on all the time while plugged in.
Not sure what would happen with your model of scanner but thought i'd suggest it. _________________ Anything that's worth knowing isn't on the syllabus |
|
Back to top |
|
|
|