Bonjour
@xubu1957,
Voici mon problème :
anonymed06@an0nym3d06-pc:~/Documents/rtl8812AU_8821AU_linux$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.13.0-32-generic/build M=/home/anonymed06/Documents/rtl8812AU_8821AU_linux modules
make[1] : on entre dans le répertoire « /usr/src/linux-headers-4.13.0-32-generic »
CC [M] /home/anonymed06/Documents/rtl8812AU_8821AU_linux/core/rtw_cmd.o
In file included from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/core/rtw_cmd.c:22:
/home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h: In function ‘thread_enter’:
/home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h:343:2: error: implicit declaration of function ‘allow_signal’; did you mean ‘do_signal’? [-Werror=implicit-function-declaration]
allow_signal(SIGTERM);
^~~~~~~~~~~~
do_signal
/home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h: In function ‘flush_signals_thread’:
/home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h:353:6: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration]
if (signal_pending (current)) {
^~~~~~~~~~~~~~
timer_pending
/home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h:354:3: error: implicit declaration of function ‘flush_signals’; did you mean ‘do_signal’? [-Werror=implicit-function-declaration]
flush_signals(current);
^~~~~~~~~~~~~
do_signal
cc1: all warnings being treated as errors
scripts/Makefile.build:308 : la recette pour la cible « /home/anonymed06/Documents/rtl8812AU_8821AU_linux/core/rtw_cmd.o » a échouée
make[2]: *** [/home/anonymed06/Documents/rtl8812AU_8821AU_linux/core/rtw_cmd.o] Erreur 1
Makefile:1550 : la recette pour la cible « _module_/home/anonymed06/Documents/rtl8812AU_8821AU_linux » a échouée
make[1]: *** [_module_/home/anonymed06/Documents/rtl8812AU_8821AU_linux] Erreur 2
make[1] : on quitte le répertoire « /usr/src/linux-headers-4.13.0-32-generic »
Makefile:1570 : la recette pour la cible « modules » a échouée
make: *** [modules] Erreur 2
Du coup, j'ai bidouillé le fichier, mais j'ai encore des erreur:
anonymed06@an0nym3d06-pc:~/Documents/rtl8812AU_8821AU_linux$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.13.0-32-generic/build M=/home/anonymed06/Documents/rtl8812AU_8821AU_linux modules
make[1] : on entre dans le répertoire « /usr/src/linux-headers-4.13.0-32-generic »
CC [M] /home/anonymed06/Documents/rtl8812AU_8821AU_linux/core/rtw_cmd.o
In file included from ./arch/x86/include/asm/signal.h:35:0,
from ./include/uapi/linux/signal.h:4,
from ./include/linux/signal_types.h:9,
from ./include/linux/sched.h:26,
from ./include/linux/cred.h:21,
from ./include/linux/seq_file.h:11,
from ./include/linux/pinctrl/consumer.h:17,
from ./include/linux/pinctrl/devinfo.h:21,
from ./include/linux/device.h:24,
from ./include/linux/dmaengine.h:20,
from ./include/linux/netdevice.h:38,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service_linux.h:35,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h:41,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/drv_types.h:32,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/core/rtw_cmd.c:22:
/home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h: In function ‘thread_enter’:
./arch/x86/include/uapi/asm/signal.h:37:18: error: passing argument 1 of ‘do_signal’ makes pointer from integer without a cast [-Werror=int-conversion]
#define SIGTERM 15
^
/home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h:343:12: note: in expansion of macro ‘SIGTERM’
do_signal(SIGTERM);
^~~~~~~
In file included from ./include/uapi/linux/signal.h:4:0,
from ./include/linux/signal_types.h:9,
from ./include/linux/sched.h:26,
from ./include/linux/cred.h:21,
from ./include/linux/seq_file.h:11,
from ./include/linux/pinctrl/consumer.h:17,
from ./include/linux/pinctrl/devinfo.h:21,
from ./include/linux/device.h:24,
from ./include/linux/dmaengine.h:20,
from ./include/linux/netdevice.h:38,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service_linux.h:35,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h:41,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/drv_types.h:32,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/core/rtw_cmd.c:22:
./arch/x86/include/asm/signal.h:37:13: note: expected ‘struct pt_regs *’ but argument is of type ‘int’
extern void do_signal(struct pt_regs *regs);
^~~~~~~~~
In file included from ./include/linux/thread_info.h:20:0,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service_linux.h:24,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h:41,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/drv_types.h:32,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/core/rtw_cmd.c:22:
/home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h: In function ‘flush_signals_thread’:
./arch/x86/include/asm/current.h:17:17: error: passing argument 1 of ‘timer_pending’ from incompatible pointer type [-Werror=incompatible-pointer-types]
#define current get_current()
^
/home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h:353:21: note: in expansion of macro ‘current’
if (timer_pending (current)) {
^~~~~~~
In file included from ./include/linux/workqueue.h:8:0,
from ./include/linux/srcu.h:34,
from ./include/linux/notifier.h:15,
from ./include/linux/memory_hotplug.h:6,
from ./include/linux/mmzone.h:771,
from ./include/linux/gfp.h:5,
from ./include/linux/slab.h:14,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service_linux.h:29,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h:41,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/drv_types.h:32,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/core/rtw_cmd.c:22:
./include/linux/timer.h:181:19: note: expected ‘const struct timer_list *’ but argument is of type ‘struct task_struct *’
static inline int timer_pending(const struct timer_list * timer)
^~~~~~~~~~~~~
In file included from ./include/linux/thread_info.h:20:0,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service_linux.h:24,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h:41,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/drv_types.h:32,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/core/rtw_cmd.c:22:
./arch/x86/include/asm/current.h:17:17: error: passing argument 1 of ‘do_signal’ from incompatible pointer type [-Werror=incompatible-pointer-types]
#define current get_current()
^
/home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h:354:13: note: in expansion of macro ‘current’
do_signal(current);
^~~~~~~
In file included from ./include/uapi/linux/signal.h:4:0,
from ./include/linux/signal_types.h:9,
from ./include/linux/sched.h:26,
from ./include/linux/cred.h:21,
from ./include/linux/seq_file.h:11,
from ./include/linux/pinctrl/consumer.h:17,
from ./include/linux/pinctrl/devinfo.h:21,
from ./include/linux/device.h:24,
from ./include/linux/dmaengine.h:20,
from ./include/linux/netdevice.h:38,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service_linux.h:35,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/osdep_service.h:41,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/include/drv_types.h:32,
from /home/anonymed06/Documents/rtl8812AU_8821AU_linux/core/rtw_cmd.c:22:
./arch/x86/include/asm/signal.h:37:13: note: expected ‘struct pt_regs *’ but argument is of type ‘struct task_struct *’
extern void do_signal(struct pt_regs *regs);
^~~~~~~~~
cc1: all warnings being treated as errors
scripts/Makefile.build:308 : la recette pour la cible « /home/anonymed06/Documents/rtl8812AU_8821AU_linux/core/rtw_cmd.o » a échouée
make[2]: *** [/home/anonymed06/Documents/rtl8812AU_8821AU_linux/core/rtw_cmd.o] Erreur 1
Makefile:1550 : la recette pour la cible « _module_/home/anonymed06/Documents/rtl8812AU_8821AU_linux » a échouée
make[1]: *** [_module_/home/anonymed06/Documents/rtl8812AU_8821AU_linux] Erreur 2
make[1] : on quitte le répertoire « /usr/src/linux-headers-4.13.0-32-generic »
Makefile:1570 : la recette pour la cible « modules » a échouée
make: *** [modules] Erreur 2