kalios Prout ! | Bonjour, J'ai acheté une carte PCI spécifique avec un driver linux fourni en tant que module prévu pour un kernel 2.4.22. Malheureusement je suis en 2.4.28. Heureusement j'ai les sources du modules
j'ai donc bêtement tappé la commande
Code :
- gcc -Wall -DMODULE -D__KERNEL__ -I . -c ldipci.c -o ldipci.o
|
Voici que j'obtient ceci...
Code :
- In file included from /usr/include/asm/system.h:5,
- from /usr/include/asm/processor.h:18,
- from /usr/include/asm/thread_info.h:13,
- from /usr/include/linux/thread_info.h:21,
- from /usr/include/linux/spinlock.h:19,
- from /usr/include/linux/capability.h:45,
- from /usr/include/linux/sched.h:7,
- from /usr/include/linux/module.h:10,
- from ldipci.c:21:
- /usr/include/linux/kernel.h:72: error: erreur de syntaxe before "size_t"
- /usr/include/linux/kernel.h:74: error: erreur de syntaxe before "size_t"
- In file included from /usr/include/linux/timex.h:186,
- from /usr/include/linux/sched.h:11,
- from /usr/include/linux/module.h:10,
- from ldipci.c:21:
- /usr/include/linux/time.h:14: error: erreur de syntaxe before "time_t"
- /usr/include/linux/time.h:16: error: erreur de syntaxe before '}' token
- /usr/include/linux/time.h:20: error: erreur de syntaxe before "time_t"
- In file included from /usr/include/linux/timex.h:186,
- from /usr/include/linux/sched.h:11,
- from /usr/include/linux/module.h:10,
- from ldipci.c:21:
- /usr/include/linux/time.h: Dans la fonction « timespec_to_jiffies »:
- /usr/include/linux/time.h:198: error: dereferencing pointer to incomplete type
- /usr/include/linux/time.h:199: error: dereferencing pointer to incomplete type
- /usr/include/linux/time.h: Dans la fonction « jiffies_to_timespec »:
- /usr/include/linux/time.h:219: error: dereferencing pointer to incomplete type
- /usr/include/linux/time.h:219: error: dereferencing pointer to incomplete type
- /usr/include/linux/time.h: Dans la fonction « timeval_to_jiffies »:
- /usr/include/linux/time.h:237: error: dereferencing pointer to incomplete type
- /usr/include/linux/time.h:238: error: dereferencing pointer to incomplete type
- /usr/include/linux/time.h: Dans la fonction « jiffies_to_timeval »:
- /usr/include/linux/time.h:257: error: dereferencing pointer to incomplete type
- /usr/include/linux/time.h:257: error: dereferencing pointer to incomplete type
- /usr/include/linux/time.h:258: error: dereferencing pointer to incomplete type
- /usr/include/linux/time.h: Dans la fonction « timespec_equal »:
- /usr/include/linux/time.h:263: error: dereferencing pointer to incomplete type
- /usr/include/linux/time.h:263: error: dereferencing pointer to incomplete type
- /usr/include/linux/time.h:263: error: dereferencing pointer to incomplete type
- /usr/include/linux/time.h:263: error: dereferencing pointer to incomplete type
- /usr/include/linux/time.h: Dans la fonction « get_seconds »:
- /usr/include/linux/time.h:305: error: invalid use of undefined type `struct timespec'
- /usr/include/linux/time.h: Hors de toute fonction :
- /usr/include/linux/time.h:329: error: erreur de syntaxe before "time_t"
- .......
|
Je n'arrive pas à comprendre quelle est l'erreur, pourvez-vous m'aider ? ---------------
.:coin:.
|