plustek@linuxhacker.org

plustek@linuxhacker.org


Subject: Re: a cry for help
From: Jaeger, Gerhard
Date: Fri, 13 Jul 2001 10:42:54 +0200

Hi,

Miguel, you're absolutely rigth!!! BUT It's not correct, that
SANE 1.0.3 has to be used with older kernels only! It should also
work with the 2.4.x kernels. Also the plustek modules - but the links
must be set correct, to autodetect the differences...

Gerhard


On Thursday, 12. July 2001 22:26, Miguel Angel wrote:
> 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 ;-)

plustek@linuxhacker.org