plustek: a cry for help
Subject:
Re: a cry for help
From:
Miguel Angel ####@####.####
Date:
12 Jul 2001 20:27:29 -0000
Message-Id: <20010712212606.B1239@woody>
On Thu, Jul 12, 2001 at 03:15:24PM +0200, Jens - P. Homann wrote:
> Hi!
Hi there
> Now I have tried both possible kernels, the 2.4.4-4 and the 2.2.19 and both
> both moduleversions: (37 and 39). Always I get this messages:
>
> root@Captain:/ > cd /usr/lib/sane/plustek_driver/
> root@Captain:/usr/lib/sane/plustek_driver > make
[...]
> gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0
> -D_PTDRV_V0=39 -D_PTDRV_BUILD=4 -D__KERNEL__ -I/usr/src/linux/include -I./h
> -I./.. -O2 -DMODULE -c src/misc.c -o obj/misc.o
> src/misc.c: In function `miscSetFastMode':
> src/misc.c:384: `PARPORT_MODE_PCECR' undeclared (first use in this function)
> src/misc.c:384: (Each undeclared identifier is reported only once
> src/misc.c:384: for each function it appears in.)
> src/misc.c:385: `PARPORT_MODE_PCECPEPP' undeclared (first use in this
> function)
> src/misc.c:418: `PARPORT_MODE_PCECPPS2' undeclared (first use in this
> function)
> src/misc.c:454: `PARPORT_MODE_PCPS2' undeclared (first use in this function)
> src/misc.c: In function `miscSetPortMode':
> src/misc.c:542: `PARPORT_MODE_PCEPP' undeclared (first use in this function)
> src/misc.c: In function `MiscRestorePort':
> src/misc.c:725: `PARPORT_MODE_PCECR' undeclared (first use in this function)
> make: *** [obj/misc.o] Error 1
> root@Captain:/usr/lib/sane/plustek_driver >
>
> Is it me? Is it something with my parallelport? What can I do? Please take a
> look at it. I need my scanner and I do not want to install SuSE 7.1 again.
Well, it seems to be a problem with kernel headers, may be
parport.h or similar ones. These are usually in
/usr/src/linux/include/linux/
The kernel 2.4.5 (i'm using it this with Sane 1.0.4 and
Debian Woody) these declarations... oh, what a surprise,
thesedeclarations aren't in this kernel... but i've
compiled plustek-module-0_39_3 successfully.
However, i'm seing kernel 2.2.19 has these declarations in
/usr/src/linux-2.2.19/include/linux/parport.h beetwen lines
49 and 60.
I think that...
- /usr/src/linux should be a link to the kernel source
directory, e.g. /usr/src/linux-2.2.19 or
/usr/src/linux-2.4.4-4
Make sure this link aims to the apropiate kernel source
directory, i.e. the one of the kernel you're running or
compiling for.
- /usr/include should contain the following links:
linux --> /usr/src/linux/include/linux/
asm --> /usr/src/linux/include/asm-i386 (or your arch.)
scsi --> /usr/src/linux/include/scsi
- If i'm not wrong:
+ with kernel 2.2.x you must use sane 1.0.3 or older,
and the apropiate plustek-module
+ with kernel 2.4.x you must use sane 1.0.4 or newer,
and the apropiate plustek-module
I hope this help you, good luck! :-)
P.S.: flames about my ugly enlish --> /dev/null ;-)
--
~ ~ ~ ~ ~\ Miguel Ángel Vilela /~ ~ ~ ~ ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
___________________________________________________________________
| a.k.a. miguev at IRC-Hispano, Gulic & Barrapunto |
| Santa Cruz de Tenerife, Islas Canarias (Spain) |
| Public GPG key at http://search.keyserver.net/ |
| Web: http://www.miguev.f2s.com/ ICQ: #72624205 || Nick: miguev |
| Grupo de Usuarios de LInux de Canarias - http://www.gulic.org |
| Powered by Linux 2.4.5 on a Debian GNU/Linux 3.0 woody (testing) |
| Linux Registered User #184518 (http://counter.li.org) |
| Linux Registered Box #105478 (AMD K7 900, 512RAM, 20GB, G-Force) |
| Linux Driver Petition #73209 (http://www.libralinux.com/) |
| No ePatents Petition #80354 (http://www.petition.eurolinux.org) |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~