(Courriels de diversion: <bafouilleuse@consequente-depossession.com> <depensieres@estime-recoifferez.com> <suspensive@pleurais-blondissaient.com> <betonnais@amenuiseriez-protagoniste.com> <enlaca@massivement-diffracter.com> <moralisee@excederent-interceptee.com> <sixieme@sauge-detaxeraient.com> <helant@nivellera-decapiterent.com> <aveulies@grenier-comparu.com> <cotelees@pariees-suriner.com> )


D'après les indications du message d'erreur que vous rapportez, il faut 
ceci :

o	Have the kernel sources installed
o	Make sure that the symbolic link "/lib/modules/`uname - r`/build 
exists and points to the matching kernel source directory
o	Now copy /boot/vmlinu z.version.h to "/lib/modules/`uname 
-r`/build/include/linux/version.h"
o	When compiling, make sure to use the following compiler option to use 
the correct include files: "-I/lib/modules/`uname -r`/build/include" 
instead of "-I/usr/include/linux"
Please adjust the Mak efile accordingly.

Mais il y a semble t'il un pb effectivement.
J'ai regardé sur une Mandrake 10 download, je n'avais pas le 
modversions.h sur mon disque.
J'ai installé le paquet kernel-source*, le modversions.h a été installé 
sous '/usr/include/linux', pas sous '/lib/modules/2.6.3-7mdk/build/
' comme cela aura dû être le cas d'après le msg d'erreur que vous 
mentionnez.

Le msg d'erreur de votre Makefile indique qu'il ne faut pas utiliser ce 
fichier là car il fait partie de headers de la glib - il a pourtant été 
installé, dans mon cas, par le 'kernel-source' - -> petit pb

Au lieu de faire un lien symbolique, je pensais à copier directement le 
fichier en question mais je ne suis pas sûr que ça change quelque 
chose... essayez tjs

Sinon, il faudrait arriver à bidouiller le makefile pour le forcer à 
prendre n'importe quel 'modversions.h'...

Bon courage

D



toufou wrote:
> hugh
> 
>>>
>>>
>>> Sur une redhat 9 -> /usr/include/linux/modversions.h
>>
>>
>>
>> idem sur ma mandrake
>>
>>
>> j'ai fais le lien et lancé la compil et j'ai eu de nouvelles erreurs.
>> je vais tout nettoyer et reprendre à 0.
>> si ça marche pas, je vous dirai où j'en suis et si ça fonctionne je 
>> vous ferais part de ma joie
> 
> 
> bon, systeme à neuf, nouvelle tentative et, nouvel échec
> 
> make config passe bien comme avant
> 
> j'ai fais un lien entre /usr/include/linux/modversions.h et 
> /usr/src/linux-2.6.3-7/include/linux/modversions.h
> 
> et, make all me donne:
> 
> [root@localhost Module]# make all> cc -D__KERNEL__ -I/usr/src/linux-2.6.3-7mdk/include -O2 
> -fomit-frame-pointer -fno-strict-ali            asing -fno-common -pipe 
> -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -inc 
>               lude /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h 
> -Wall -Wstrict-prototypes -Wno-tr   igraphs   -c -o rtmp_main.o rtmp_main.c
> In file included from <command line>:7:
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:1:2: #error 
> "=========================  =============================="
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:2:2: #error "You 
> should not include /u sr/include/{linux,asm}/ header"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:3:2: #error "files 
> directly for the co mpilation of kernel modules."
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:4:2: #error ""
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:5:2: #error "glibc 
> now uses kernel hea                                               der 
> files from a well-defined"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:6:2: #error 
> "working kernel version (a  s recommended by Linus Torvalds)"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:7:2: #error "These 
> files are glibc int                                               ernal 
> and may not match the"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:8:2: #error 
> "currently running kernel.   They should only be"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:9:2: #error 
> "included via other system   header files - user space"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:10:2: #error 
> "programs should not dire ctly include <linux/*.h> or"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:11:2: #error 
> "<asm/*.h> as well."
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:12:2: #error ""
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:13:2: #error "To 
> build kernel modules please do the following:"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:14:2: #error ""
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:15:2: #error " o 
> Have the kernel sourc                                               es 
> installed"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:16:2: #error ""
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:17:2: #error " o 
> Make sure that the sy mbolic link"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:18:2: #error " 
> /lib/modules/`uname - r`/build exists and points to"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:19:2: #error " the 
> matching kernel s ource directory"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:20:2: #error ""
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:21:2: #error " o 
> Now copy /boot/vmlinu z.version.h to"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:22:2: #error " 
> /lib/modules/`uname - r`/build/include/linux/version.h"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:23:2: #error ""
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:24:2: #error " o 
> When compiling, make                                                sure 
> to use the following"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:25:2: #error " 
> compiler option to us                                               e 
> the correct include files:"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:26:2: #error ""
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:27:2: #error " 
> -I/lib/modules/`uname -r`/build/include"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:28:2: #error ""
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:29:2: #error " 
> instead of"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:30:2: #error ""
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:31:2: #error " 
> -I/usr/include/linux"
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:32:2: #error ""
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:33:2: #error " 
> Please adjust the Mak efile accordingly."
> /usr/src/linux-2.6.3-7mdk/include/linux/modversions.h:34:2: #error 
> "======================== ==============================="
> In file included from /usr/src/linux-2.6.3-7mdk/include/linux/irq.h:20,
>                  from /usr/src/linux-2.6.3-7mdk/include/asm/hardirq.h:6,
>                  from 
> /usr/src/linux-2.6.3-7mdk/include/linux/interrupt.h:11,
>                  from rt_config.h:54,
>                  from rtmp_main.c:30:
> /usr/src/linux-2.6.3-7mdk/include/asm/irq.h:16:25: irq_vectors.h: No 
> such file or directory
> In file included from /usr/src/linux-2.6.3-7mdk/include/asm/hardirq.h:6,
>                  from 
> /usr/src/linux-2.6.3-7mdk/include/linux/interrupt.h:11,
>                  from rt_config.h:54,
>                  from rtmp_main.c:30:
> /usr/src/linux-2.6.3-7mdk/include/linux/irq.h:70: error: `NR_IRQS' 
> undeclared here (not in a  function)
> In file included from /usr/src/linux-2.6.3-7mdk/include/linux/irq.h:72,
>                  from /usr/src/linux-2.6.3-7mdk/include/asm/hardirq.h:6,
>                  from 
> /usr/src/linux-2.6.3-7mdk/include/linux/interrupt.h:11,
>                  from rt_config.h:54,
>                  from rtmp_main.c:30:
> /usr/src/linux-2.6.3-7mdk/include/asm/hw_irq.h:28: error: 
> `NR_IRQ_VECTORS' undeclared here (          not in a function)
> /usr/src/linux-2.6.3-7mdk/include/asm/hw_irq.h:31: error: `NR_IRQS' 
> undeclared here (not in                                                a 
> function)
> make: *** [rtmp_main.o] Erreur 1
> [root@localhost Module]#> 
> 
> bref, je suis bloqué et j'ai besoin de vos lumières
> 
> @+

--------------------------------------------------------------------
Les listes de diffusion occultes: <URL:http://www.CULTe.org/listes/>