En cette belle journee du Mercredi 5 Mars 2003 07:50, Philippe Delerm vous 
avez �crit : 

bonjour,
j'ai cree le lien comme tu me l'avais dit : mknod /dev/pt_drv c 40 0  (nikel)

ensuite : d�sole je met tout mais ce sera surement plus explicite ainsi .
ps : c'est long ;( ensuite en bas j'essaie en vain de tirer une conclusion,
pas rire , j'essaie seulement ...

[EMAIL PROTECTED] root]# uname -r
2.4.19-16mdk
[EMAIL PROTECTED] root]# cd sane-backends-1.0.9/backend/plustek_driver
[EMAIL PROTECTED] plustek_driver]# make all
grep: /usr/src/linux/include/linux/autoconf.h: No such file or directory
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 
-D_PTDRV_V0=42 -D_PTDRV_BUILD=10 -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:59,
                 from src/dac.c:48:
/usr/include/linux/version.h:2:2: #error 
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include 
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation 
of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files 
from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as 
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and 
may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They 
should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header 
files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly 
include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do 
the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources 
installed"/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic 
link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build 
exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source 
directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h 
to"
/usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname 
-r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use 
the following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the 
correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname 
-r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile 
accordingly."
/usr/include/linux/version.h:35:2: #error 
"======================================================="
In file included from h/plustek_sysdep.h:39,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/version.h:2:2: #error 
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include 
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation 
of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files 
from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as 
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and 
may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They 
should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header 
files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly 
include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do 
the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources 
installed"/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic 
link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build 
exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source 
directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h 
to"
/usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname 
-r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use 
the following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the 
correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname 
-r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile 
accordingly."
/usr/include/linux/version.h:35:2: #error 
"======================================================="
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:48:4: #error "This kernel is too old: not supported by this 
file"
h/plustek_sysdep.h:212:1: warning: "cpu_to_le16" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:91:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:213:1: warning: "cpu_to_le32" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:89:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:214:1: warning: "cpu_to_be16" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:97:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:215:1: warning: "cpu_to_be32" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:95:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:224:1: warning: "le16_to_cpu" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:92:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:225:1: warning: "le32_to_cpu" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:90:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:226:1: warning: "be16_to_cpu" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:98:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:227:1: warning: "be32_to_cpu" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:96:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:232:1: warning: "cpu_to_le16p" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:103:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:233:1: warning: "cpu_to_le32p" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:101:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:234:1: warning: "cpu_to_be16p" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:109:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:235:1: warning: "cpu_to_be32p" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:107:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:237: parse error before "do"
h/plustek_sysdep.h:238: parse error before "do"
h/plustek_sysdep.h:239: parse error before '(' token
h/plustek_sysdep.h:239: parse error before "__u16"
h/plustek_sysdep.h:240: parse error before '(' token
h/plustek_sysdep.h:240: parse error before "__u32"
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:242:1: warning: "le16_to_cpup" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:104:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:243:1: warning: "le32_to_cpup" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:102:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:244:1: warning: "be16_to_cpup" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:110:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:245:1: warning: "be32_to_cpup" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:108:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:247:1: warning: "le16_to_cpus" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:116:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:248:1: warning: "le32_to_cpus" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:114:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:249:1: warning: "be16_to_cpus" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:122:1: warning: this is the location of 
the previous definition
In file included from h/plustek_scan.h:60,
                 from src/dac.c:48:
h/plustek_sysdep.h:250:1: warning: "be32_to_cpus" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,
                 from /usr/include/asm/byteorder.h:32,
                 from h/plustek_sysdep.h:210,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/byteorder/generic.h:120:1: warning: this is the location of 
the previous definition
In file included from h/plustek_sysdep.h:266,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/linux/malloc.h:4:2: warning: #warning linux/malloc.h is 
deprecated, use linux/slab.h instead.
In file included from /usr/include/linux/prefetch.h:13,
                 from /usr/include/linux/list.h:6,
                 from /usr/include/linux/wait.h:14,
                 from /usr/include/linux/fs.h:11,
                 from /usr/include/linux/capability.h:17,
                 from /usr/include/linux/binfmts.h:6,
                 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:6,
                 from h/plustek_sysdep.h:266,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here 
(not in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/fs.h:25,
                 from /usr/include/linux/capability.h:17,
                 from /usr/include/linux/binfmts.h:6,
                 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:6,
                 from h/plustek_sysdep.h:266,
                 from h/plustek_scan.h:60,
                 from src/dac.c:48:
/usr/include/asm/bitops.h:117: parse error before '(' token
/usr/include/asm/bitops.h:117: parse error before "volatile"
/usr/include/asm/bitops.h:156: parse error before '(' token
/usr/include/asm/bitops.h:156: conflicting types for `clear_bit'
/usr/include/asm/bitops.h:66: previous declaration of `clear_bit'
/usr/include/asm/bitops.h:156: parse error before "volatile"
/usr/include/asm/bitops.h:207: parse error before '(' token
/usr/include/asm/bitops.h:207: conflicting types for `change_bit'
/usr/include/asm/bitops.h:102: previous declaration of `change_bit'
/usr/include/asm/bitops.h:207: parse error before "volatile"
/usr/include/asm/bitops.h:117: warning: `test_bit' declared `static' but never 
d
efined
make: *** [obj/dac.o] Erreur 1                 
[EMAIL PROTECTED] plustek_driver]# make install
grep: /usr/src/linux/include/linux/autoconf.h: No such file or directory
mkdir -p /lib/modules/2.4.19-16mdk/misc
install -c -m "644" pt_drv.o /lib/modules/2.4.19-16mdk/misc
install: Ne peut �valuer `pt_drv.o' par stat(): No such file or directory
make: *** [install] Erreur 1
[EMAIL PROTECTED] plustek_driver]#

l� j'ai essaye le make install pour te montrer mais bon, le make load 
evidemment ne suit pas non plus .
 deux truc que je comprends pas moi j'ai : file:/usr/src/RPM
alors que le script apparement demande :  /usr/src/linux/ donc j'ai pas de 
repertoire "linux " .j'ai cru comprendre que ca pouvait etre aussi un lien 
symbolique vers le noyau ?  ensuite dans : lib/modules/2.4.19-16mdk/misc 
apparement il recherche le fichier " pt_drv.o " que je n'ai pas, c'est pas un 
fichier pour la reconnaissance du port // par rapport au noyau ? oh dur l� :)
autre chose, je ne vois pas ce port // , null part, y'aurait l� aussi une 
histoire de compilation noyau ?

merci de m'avoir lu jusque la ....desol� pour la longueur, j'ai pense faire 
bien ...

Patrick .





> Salut,
>
> D'abord v�rifies que tu as bien les sources du noyau correspondant au noyau
> avec lequel tu bootes avec la commande uname -r Ensuite tu d�compactes le
> driver plustek, puis dans le r�pertoire plustek_driver tu tapes make all
> cela cr�e le driver, puis make install cela l'installe dans tes modules.
> Enfin tu fais un make load pour charger le module, pour v�rifier qu'il est
> bien charg� tu peux lancer la commande lsmod s'il n'apparait pas tu dois
> cr�er le lien symbolique mknod /dev/pt_drv c 40 0.
>
> Plus d'infos dans les pages attach�es :)
>
> A plus
> philippe
>


Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com";

Répondre à