plustek: Problems compiling plustek_module-0_39_3 with Suse 7.2 - need help !


Previous by date: 29 Jul 2001 07:41:52 -0000 Please help me!, ScottsdaleJen.aol.com
Next by date: 29 Jul 2001 07:41:52 -0000 Re: Please help me!, Jaeger, Gerhard
Previous in thread:
Next in thread: 29 Jul 2001 07:41:52 -0000 Re: Problems compiling plustek_module-0_39_3 with Suse 7.2 - need help !, Jaeger, Gerhard

Subject: Problems compiling plustek_module-0_39_3 with Suse 7.2 - need help !
From: Frank Martin Petrat ####@####.####
Date: 29 Jul 2001 07:41:52 -0000
Message-Id: <01072909172502.00800@linux>

Hi,

I'm a Linux newbie and would like to use my plustek parallel port scanner 
Optic Pro 96000P with Linux. With Suse 7.0 I could compile and use the 
plustek driver without any problem - great ! Thanks to all who did that work !
After changing to SuSE 7.2 Pro (new install, no update, Kernel 2.4.4) the 
driver module can't be compiled. Suse 7.2 comes with SANE 1.0.4-79 (rpm), so 
making the driver should work without compiling the sane package. So I did 
the following things:

1) Untared the sources for Sane 1.0.4 (file: sane-backends-1.0.4.tar.gz).
2) Copied und untared the file plustek_module-0_39_3.tar.gz in sane directory 
(NEW LAYOUT).
3) In backend directory I gave a "make" and the following errors appeared:

linux:/home/fm/sane-backends-1.0.4/backend/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/dac.c -o obj/dac.o
In file included from h/plustek_scan.h:58,
                 from src/dac.c:47:
/usr/include/linux/version.h:2: #error 
"======================================================="
/usr/include/linux/version.h:3: #error "You should not include 
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4: #error "files directly for the compilation of 
kernel modules."
/usr/include/linux/version.h:5: #error ""
/usr/include/linux/version.h:6: #error "glibc now uses kernel header files 
from a well-defined"
/usr/include/linux/version.h:7: #error "working kernel version (as 
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8: #error "These files are glibc internal and 
may not match the"
/usr/include/linux/version.h:9: #error "currently running kernel. They should 
only be"
/usr/include/linux/version.h:10: #error "included via other system header 
files - user space"
/usr/include/linux/version.h:11: #error "programs should not directly include 
<linux/*.h> or"
/usr/include/linux/version.h:12: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13: #error ""
/usr/include/linux/version.h:14: #error "To build kernel modules please do 
the following:"
/usr/include/linux/version.h:15: #error ""
/usr/include/linux/version.h:16: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17: #error ""
/usr/include/linux/version.h:18: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19: #error "   /lib/modules/`uname -r`/build 
exists and points to"
/usr/include/linux/version.h:20: #error "   the matching kernel source 
directory"
/usr/include/linux/version.h:21: #error ""
/usr/include/linux/version.h:22: #error " o Now copy /boot/vmlinuz.version.h 
to"
/usr/include/linux/version.h:23: #error "   /lib/modules/`uname 
-r`/build/include/linux/version.h"
/usr/include/linux/version.h:24: #error ""
/usr/include/linux/version.h:25: #error " o When compiling, make sure to use 
the following"
/usr/include/linux/version.h:26: #error "   compiler option to use the 
correct include files:"
/usr/include/linux/version.h:27: #error ""
/usr/include/linux/version.h:28: #error "   -I/lib/modules/`uname 
-r`/build/include"
/usr/include/linux/version.h:29: #error ""
/usr/include/linux/version.h:30: #error "   instead of"
/usr/include/linux/version.h:31: #error ""
/usr/include/linux/version.h:32: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33: #error ""
/usr/include/linux/version.h:34: #error "   Please adjust the Makefile 
accordingly."
/usr/include/linux/version.h:35: #error 
"======================================================="
...



Can you explain me whats going on here an how to solve the problem ?! I'm 
afraid my knowledges about Linux are not sufficient. I suppose al ot of 
people will also use parallel scanners with Suse 7.2 in the future.

Thanks a lot in advance !

Best regards

Frank Martin





Previous by date: 29 Jul 2001 07:41:52 -0000 Please help me!, ScottsdaleJen.aol.com
Next by date: 29 Jul 2001 07:41:52 -0000 Re: Please help me!, Jaeger, Gerhard
Previous in thread:
Next in thread: 29 Jul 2001 07:41:52 -0000 Re: Problems compiling plustek_module-0_39_3 with Suse 7.2 - need help !, Jaeger, Gerhard


Powered by ezmlm-browse 0.20.