plustek: plustek-driver with Kernel 2.4.10-4GB


Previous by date: 5 Dec 2001 19:05:43 -0000 Re: plustek-driver with Kernel 2.4.10-4GB, Hauer Peter
Next by date: 5 Dec 2001 19:05:43 -0000 LM983x driver - next build, Jaeger, Gerhard
Previous in thread: 5 Dec 2001 19:05:43 -0000 Re: plustek-driver with Kernel 2.4.10-4GB, Hauer Peter
Next in thread:

Subject: Re: plustek-driver with Kernel 2.4.10-4GB
From: "Jaeger, Gerhard" ####@####.####
Date: 5 Dec 2001 19:05:43 -0000
Message-Id: <01120520013600.00612@ruebennase>

Hi,

again that damned SuSE crap!
First: Have you installed the kernel sources?
If yes, go into the kernel directory
cd /usr/src/linux

if no, install them.

Then do a 
make mrproper
make cloneconfig

this should solve the problems.

I'm not shure if you also have to copy the /boot/vmlinuz.autoconf.h
etc...
In cas this doesn't work, have a look at the SuSE database and
look for "compiling kernel modules"

Gerhard


On Monday,  3. December 2001 23:01, Uwe Bosse wrote:
> "Jaeger, Gerhard" schrieb:
> > So where's the problem?
> > Can you be more specific?
>
> of course I can.
> If I try "make all" (within the plustek-driver - directory) I get:
>
> grep: /usr/src/linux/include/linux/autoconf.h: Datei oder Verzeichnis
> nicht gefunden
>
> ok, the file doesn't exist. I find a autoconf.h at the following
> location
> /boot/vmlinuz.autoconf.h
>
> so I edit the Makefile to replace
> $(KERNEL_HEADERS)/linux/autoconf.h
> within LINE 107 with
> /boot/vmlinuz.autoconf.h
> And now, I try "make all" again and receive the following:
> ---------------------------------------------------------------------------
>---------------------
> ---------------------------------------------------------------------------
>--------------------- gcc -Wall -Wstrict-prototypes -fomit-frame-pointer
> -D_PTDRV_V1=0
> -D_PTDRV_V0=39 -D_PTDRV_BUILD=8 -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
> "======================================================="
> 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
> In file included from /usr/include/linux/udf_fs_sb.h:22,
>                  from /usr/include/linux/fs.h:658,
>                  from /usr/include/linux/capability.h:17,
>                  from /usr/include/linux/binfmts.h:5,
>                  from /usr/include/linux/sched.h:8,
>                  from /usr/include/linux/mm.h:4,
>                  from /usr/include/linux/slab.h:14,
>                  from /usr/include/linux/malloc.h:4,
>                  from h/plustek_scan.h:60,
>                  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
> "======================================================="
> make: *** [obj/dac.o] Error 1
> ---------------------------------------------------------------------------
>---------------------
>
> And now?

Previous by date: 5 Dec 2001 19:05:43 -0000 Re: plustek-driver with Kernel 2.4.10-4GB, Hauer Peter
Next by date: 5 Dec 2001 19:05:43 -0000 LM983x driver - next build, Jaeger, Gerhard
Previous in thread: 5 Dec 2001 19:05:43 -0000 Re: plustek-driver with Kernel 2.4.10-4GB, Hauer Peter
Next in thread:


Powered by ezmlm-browse 0.20.