plustek@linuxhacker.org
plustek@linuxhacker.org
Hi,
the patches for kernel 2.6 are only available for the new plustek pp
backend, which can also be used as kernel-module.
get the latest sane-backends snapshot from sane-project.org and compile
it. If you'd like to use the kernel-module instead of simply using
libieee1284, check for the Makefile.module in sane-backends/doc/plustek
Hope this helps
Gerhard
On Wednesday 05 November 2003 16:46, Zbigniew Wróblak wrote:
> I have Plustek 12000T & Mandrake 9.2
> I can not compite plustek module running kernel 2.6
> Maybe there is something what can be done about that.
> I have to run 2.6 kernel due to hardvare problems (too new mainboard).
> There comes output after: make all DEBUG=y
> in 2.4.22 it compiles OK
>
> gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D PTDRV V1=0
> -D PTDRV V0=42 -D PTDRV BUILD=10 -D KERNEL
> -I/lib/modules/2.6.0-test9/build/include -I./h -I./.. -O -g -DDEBUG
> -DMODULE -DMODVERSIONS -include
> /lib/modules/2.6.0-test9/build/include/linux/modsetver.h -c src/ptdrv.c -o
> obj/ptdrv.o
> src/ptdrv.c:158: error: syntax 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: 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: error: `DEVFS FL DEFAULT' undeclared (first use in this
> function)
> src/ptdrv.c:1483: error: (Each undeclared identifier is reported only once
> src/ptdrv.c:1483: error: 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: error: `devfs handle t' undeclared (first use in this
> function)
> src/ptdrv.c:1534: error: syntax error before "master"
> src/ptdrv.c:1547: error: `master' undeclared (first use in this function)
> src/ptdrv.c:1547: warning: implicit declaration of function
> `devfs find handle'
> src/ptdrv.c:1548: error: `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-test9/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-test9/build/include/linux/module.h:494)
> make: *** [obj/ptdrv.o] Błąd 1
> [root@zbyszek plustek driver]#
plustek@linuxhacker.org