plustek@linuxhacker.org
plustek@linuxhacker.org
Dear plustek-mailinglist-readers,
After reading the Installationsanweisung and HOWTOs from
http://home.t-online.de/home/g-jaeger/plustek.html I followed
the instructions there. But make in
sane-backends-1.0.4/backend/plustek_driver always fails and
the HOWTOs and Installationsanweisung and also the FAQ in
the documentation that came with the driver-tarball allways
assume that the making succeds or do not seem to cover my
problem. So after trying for two days I thought there might
be someone somewhere who can perhaps give me some hints. Here
are the details:
SITUATION:
166 Mhz Pentium MMX
SuSE Linux 7.2 Distribution
* sane 1.0.4 installed (rpm supplied with my SuSE 7.2 distribution)
* PLUSTEK PRO 12000 T (although that doesn't matter at this point i
guess)
AT FIRST ALL SEEMED TO BE FINE:
* First I created a Subdirectory called Test in my home.
* There I extracted the sane-backend-tarball, that was supplied with my
distribution
and got a sane-backends-1.0.4 subdirectory (see below).
(This shouldnīt even be nescessary with 1.0.4, should it? make there
also
works fine (and takes full 15 minutes at least on my machine))
* I extracted the plustek-module-0_39_3.tar.gz under backend and got a
plustek_driver
subdirectory.
BUT THEN MY PROBLEMS START:
I type
~/Test/sane-backends-1.0.4/backend/plustek_driver > make
This gives
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
and a whole lot of error- or warningmessages of the form:
grep: /usr/src/linux/include/linux/autoconf.h: No such file or directory
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
"======================================================="
In file included from h/plustek_sysdep.h:38,
from h/plustek_scan.h:59,
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
"======================================================="
In file included from h/plustek_scan.h:59,
from src/dac.c:47:
h/plustek_sysdep.h:47: #error "This kernel is too old: not supported by
this file"
In file included from h/plustek_scan.h:59,
from src/dac.c:47:
h/plustek_sysdep.h:211: warning: `cpu_to_le16' redefined
/usr/include/linux/byteorder/generic.h:91: warning: this is the location
of the previous definition
h/plustek_sysdep.h:212: warning: `cpu_to_le32' redefined
/usr/include/linux/byteorder/generic.h:89: warning: this is the location
of the previous definition
h/plustek_sysdep.h:213: warning: `cpu_to_be16' redefined
/usr/include/linux/byteorder/generic.h:97: warning: this is the location
of the previous definition
h/plustek_sysdep.h:214: warning: `cpu_to_be32' redefined
/usr/include/linux/byteorder/generic.h:95: warning: this is the location
of the previous definition
h/plustek_sysdep.h:223: warning: `le16_to_cpu' redefined
/usr/include/linux/byteorder/generic.h:92: warning: this is the location
of the previous definition
h/plustek_sysdep.h:224: warning: `le32_to_cpu' redefined
/usr/include/linux/byteorder/generic.h:90: warning: this is the location
of the previous definition
h/plustek_sysdep.h:225: warning: `be16_to_cpu' redefined
/usr/include/linux/byteorder/generic.h:98: warning: this is the location
of the previous definition
h/plustek_sysdep.h:226: warning: `be32_to_cpu' redefined
/usr/include/linux/byteorder/generic.h:96: warning: this is the location
of the previous definition
h/plustek_sysdep.h:231: warning: `cpu_to_le16p' redefined
/usr/include/linux/byteorder/generic.h:103: warning: this is the
location of the previous definition
h/plustek_sysdep.h:232: warning: `cpu_to_le32p' redefined
/usr/include/linux/byteorder/generic.h:101: warning: this is the
location of the previous definition
h/plustek_sysdep.h:233: warning: `cpu_to_be16p' redefined
/usr/include/linux/byteorder/generic.h:109: warning: this is the
location of the previous definition
h/plustek_sysdep.h:234: warning: `cpu_to_be32p' redefined
/usr/include/linux/byteorder/generic.h:107: warning: this is the
location of the previous definition
h/plustek_sysdep.h:241: warning: `le16_to_cpup' redefined
/usr/include/linux/byteorder/generic.h:104: warning: this is the
location of the previous definition
h/plustek_sysdep.h:242: warning: `le32_to_cpup' redefined
/usr/include/linux/byteorder/generic.h:102: warning: this is the
location of the previous definition
h/plustek_sysdep.h:243: warning: `be16_to_cpup' redefined
/usr/include/linux/byteorder/generic.h:110: warning: this is the
location of the previous definition
h/plustek_sysdep.h:244: warning: `be32_to_cpup' redefined
/usr/include/linux/byteorder/generic.h:108: warning: this is the
location of the previous definition
h/plustek_sysdep.h:246: warning: `le16_to_cpus' redefined
/usr/include/linux/byteorder/generic.h:116: warning: this is the
location of the previous definition
h/plustek_sysdep.h:247: warning: `le32_to_cpus' redefined
/usr/include/linux/byteorder/generic.h:114: warning: this is the
location of the previous definition
h/plustek_sysdep.h:248: warning: `be16_to_cpus' redefined
/usr/include/linux/byteorder/generic.h:122: warning: this is the
location of the previous definition
h/plustek_sysdep.h:249: warning: `be32_to_cpus' redefined
/usr/include/linux/byteorder/generic.h:120: warning: this is the
location of the previous definition
make: *** [obj/dac.o] Error 1
no pt_drv.o file was generated, and so the next steps in the HOWTOs and
other
Documentation also fail.
If I understand it correctly, the error message says that my kernel is
too old.
But I consider my kernel fairly new. Its a 2.4.4-4GB according 'uname
-R'.
I also tried installing the kernel sources with the installation tool
provided with the
SuSE, the so called yast, but that didnīt change the result. Also I am
a bit cuious about
these "kernel sources", because even after installing them a directory
"/usr/src/linux" or
"/usr/src/linux-?.?.?" or similar does still not exist. Strange. In
the kernel-howto they
say that this was the place where they usually are installed to. Has
someone perhaps a
clue or a hint he/she can give me? Iīm still pretty much a newbie and
now starting to grow
a little bit frustrated and would
be thankful for any reply, even if it is, that I am just too stupid and
should just read the
provided HOWTOs and documentation again. Thanks a huge
lot, Johannes Prix.
(Reply-To-Adress just to make sure: johannes.prix@kfunigraz.ac.at, since
I do not mail from
home but am just a guest here.)
plustek@linuxhacker.org