plustek: Errors compiling on kernel 2.4.1


Previous by date: 5 Feb 2001 10:25:05 -0000 Re: Errors compiling on kernel 2.4.1, Mark Bratcher
Next by date: 5 Feb 2001 10:25:05 -0000 Kernel 2.4.1, Jaeger, Gerhard
Previous in thread: 5 Feb 2001 10:25:05 -0000 Re: Errors compiling on kernel 2.4.1, Mark Bratcher
Next in thread: 5 Feb 2001 10:25:05 -0000 Re: Errors compiling on kernel 2.4.1, Miguel Angel Vilela

Subject: Re: Errors compiling on kernel 2.4.1
From: "Jaeger, Gerhard" ####@####.####
Date: 5 Feb 2001 10:25:05 -0000
Message-Id: <01020511322901.00910@gja>

Hola Miguel,

it seems, that you have some problems with your upgrade!
I currently tested the 0.36-37 tar-ball with the 2.4.1 kernel
and it compiled.
The plustek_driver/h/sysdep-2.1.h header file normally
detects the used kernel version and sets the #defines i.e
Kernel 2.4.x should cause a #define LINUX_24 (line 30).
This should cause the use of the mappings in file misc.c
(see line 60 ff). 
Please recheck your configuration. Try
less /usr/src/linux/include/linux/version.h,
this should produce:

#define UTS_RELEASE "2.4.1"
#define LINUX_VERSION_CODE 132097
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))   

Perform the make clean step in the plustek_driver directory
before recompiling and make sure, that the symbolic link to
your kernel sources is correct.

Gerhard

On Son, 04 Feb 2001, MiGuEl AnGeL wrote:
> Hi
> 
> 	In July 2000 I bought a Plustek 9636T for my Linux
> because I had found this driver. Then I compiled it
> with Sane 1.0.3 and XSane 0.60, all worked great. 
> 
> 	Some days ago I upgrated my system from kernel 2.2.14
> to 2.4.1, and then I tried to compile the last release
> of the driver with the same Sane 1.0.3 I've got
> installed. I've modified de /usr/src/linux (simbolic
> link) in order to use de kernel 2.4.1 headers, and
> then into /usr/src/sane-1.0.3/plustek_driver I tried
> to compile and got the following errors: 
> 
> [miguev@pajaroloco plustek_driver]# make
> gcc -Wall -Wstrict-prototypes -w -fomit-frame-pointer
> -D_PTDRV_V1=0 -D_PTDRV_V0=36 -D_PTDRV_BUILD=38
> -D__KERNEL__ -I/usr/src/linux/include -I./h -I./.. -O2
> -DMODULE  -M ./src/*.c > .depend
> ...
> ggcc -Wall -Wstrict-prototypes -w -fomit-frame-pointer
> -D_PTDRV_V1=0 -D_PTDRV_V0=36 -D_PTDRV_BUILD=38
> -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:341: `PARPORT_MODE_PCECR' undeclared (first
> use in this function)
> src/misc.c:341: (Each undeclared identifier is
> reported only once
> src/misc.c:341: for each function it appears in.)
> src/misc.c:342: `PARPORT_MODE_PCECPEPP' undeclared
> (first use in this function)
> src/misc.c:373: `PARPORT_MODE_PCECPPS2' undeclared
> (first use in this function)
> src/misc.c:407: `PARPORT_MODE_PCPS2' undeclared (first
> use in this function)
> src/misc.c: In function `miscSetPortMode':
> src/misc.c:469: `PARPORT_MODE_PCEPP' undeclared (first
> use in this function)
> src/misc.c: In function `MiscRestorePort':
> src/misc.c:665: `PARPORT_MODE_PCECR' undeclared (first
> use in this function)
> make: *** [obj/misc.o] Error 1
> 
> 	I thought this errors would be avoided adding the
> following lines from
> /usr/src/linux-2.2.14/include/linux/parport.h to
> /usr/src/linux-2.4.1/include/linux/parport.h
> 
> /* The "modes" entry in parport is a bit field
> representing the following
>  * modes.
>  * Note that PARPORT_MODE_PCECPEPP is for the SMC
> EPP+ECP mode which is NOT
>  * 100% compatible with EPP.
>  */
> #define PARPORT_MODE_PCSPP              0x0001
> #define PARPORT_MODE_PCPS2              0x0002
> #define PARPORT_MODE_PCEPP              0x0004
> #define PARPORT_MODE_PCECP              0x0008
> #define PARPORT_MODE_PCECPEPP           0x0010
> #define PARPORT_MODE_PCECR              0x0020  /* ECR
> Register Exists */
> #define PARPORT_MODE_PCECPPS2           0x0040
> 
> 	But this didn't fix de problem. 
> 
> 	Then, ¿what is wrong? I've got a Linux HispaFuentes
> 7.0 (based on RedHat 6.2) on a Pentium 120. I
> downloaded sane-1.0.3.tar.gz from
> ftp.mostang.com/pub/sane/ and
> plustek-module-0_36_37.tar.gz
> home.t-online.de/home/g-jaeger/
> 
> 
> 	I'll be much grateful for any help.
> 
> 
>                  ~ ~ ~ ~ ~ Miguel Ángel Vilela ~ ~ ~ ~
> 
> 
> Santa Cruz de Tenerife, Islas Canarias  (Spain).
> Web:  http://usuarios.tripod.es/miguev/ (en
> desarrollo)
> ICQ:  #72624205 || Nick: miguev
> GULIC - Grupo de Usuario de LInux de Canarias.
> Powered by Linux 2.4.1
> Linux Registered User #184518 (http://counter.li.org)
> Linux Registered Box   #81674 (IBM Aptiva 2175-352,
> P120, 32RAM, 1GB)
> Peticion de drivers para Linux #73209 
> (http://www.libralinux.com/petition.spanish.html)
> 
> _______________________________________________________________
> Do You Yahoo!?
> Consiga gratis su dirección @yahoo.es en http://correo.yahoo.es
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
-- 
+---------------------------------
| Sysgo Real-Time Solutions GmbH
| Gerhard Jaeger
| Schulze-Delitzsch-Weg 28
| D-89079 Ulm
| mail: ####@####.####
| fon:  +49 731 94683-0
| fax:  +49 731 94683-10
+---------------------------------

Previous by date: 5 Feb 2001 10:25:05 -0000 Re: Errors compiling on kernel 2.4.1, Mark Bratcher
Next by date: 5 Feb 2001 10:25:05 -0000 Kernel 2.4.1, Jaeger, Gerhard
Previous in thread: 5 Feb 2001 10:25:05 -0000 Re: Errors compiling on kernel 2.4.1, Mark Bratcher
Next in thread: 5 Feb 2001 10:25:05 -0000 Re: Errors compiling on kernel 2.4.1, Miguel Angel Vilela


Powered by ezmlm-browse 0.20.