dkms-8192 signal() header moved.

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

dkms-8192 signal() header moved.

Postby eduardfaber » Sun Aug 20, 2017 6:57 pm

Since kernel version 4.11 the headerfiles for signal() and others moved to

linux/sched/signal.h

Without an adaptation, the build of the module fails:

$this->bbcode_second_pass_code('', '
DKMS make.log for 8192cu-v4.0.2_9000 for kernel 4.12.8-1-ARCH (armv5tejl)
Sun Aug 20 16:57:15 CEST 2017
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.12.8-1-ARCH/build M=/var/lib/dkms/8192cu/v4.0.2_9000/build modules
make[1]: Entering directory '/usr/lib/modules/4.12.8-1-ARCH/build'
CC [M] /var/lib/dkms/8192cu/v4.0.2_9000/build/core/rtw_cmd.o
In file included from /var/lib/dkms/8192cu/v4.0.2_9000/build/core/rtw_cmd.c:23:0:
/var/lib/dkms/8192cu/v4.0.2_9000/build/include/osdep_service.h: In function 'thread_enter':
/var/lib/dkms/8192cu/v4.0.2_9000/build/include/osdep_service.h:1482:2: error: implicit declaration of function 'allow_signal'; did you mean 'alloc_secdata'? [-Werror=implicit-function-declaration]
allow_signal(SIGTERM);
^~~~~~~~~~~~
alloc_secdata
/var/lib/dkms/8192cu/v4.0.2_9000/build/include/osdep_service.h: In function 'flush_signals_thread':
/var/lib/dkms/8192cu/v4.0.2_9000/build/include/osdep_service.h:1495:6: error: implicit declaration of function 'signal_pending'; did you mean 'timer_pending'? [-Werror=implicit-function-declaration]
if (signal_pending (current))
^~~~~~~~~~~~~~
timer_pending
/var/lib/dkms/8192cu/v4.0.2_9000/build/include/osdep_service.h:1497:3: error: implicit declaration of function 'flush_signals'; did you mean 'flush_tlb_all'? [-Werror=implicit-function-declaration]
flush_signals(current);
^~~~~~~~~~~~~
flush_tlb_all
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:303: /var/lib/dkms/8192cu/v4.0.2_9000/build/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1515: _module_/var/lib/dkms/8192cu/v4.0.2_9000/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.12.8-1-ARCH/build'
make: *** [Makefile:584: modules] Error 2
')

I suggest an adaptation of file /var/lib/dkms/8192cu/v4.0.2_9000/build/include/osdep_service.h with:
$this->bbcode_second_pass_code('', '
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)
// Linux 4.11 moves signal function declarations to its own header file:
#include <linux/sched/signal.h>
#endif
')

somewhere between the headerfiles.


Thanks!
Ed Faber
eduardfaber
 
Posts: 25
Joined: Mon Jan 04, 2016 11:38 pm
Location: Netherlands

Return to ARMv5

Who is online

Users browsing this forum: No registered users and 7 guests