[1] git clone https://github.com/pgiri/ndiswrapper
[2] cd ndiswrapper/ndiswrapper
[3] make
Result:
make -C utils
make[1]: Entering directory '/media/Software/linux/drivers/ndiswrapper-1.62/utils'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/media/Software/linux/drivers/ndiswrapper-1.62/utils'
make -C driver
make[1]: Entering directory '/media/Software/linux/drivers/ndiswrapper-1.62/driver'
make -C /usr/src/linux-headers-5.3.0-46-generic M=/media/Software/linux/drivers/ndiswrapper-1.62/driver
make[2]: Entering directory '/usr/src/linux-headers-5.3.0-46-generic'
CC [M] /media/Software/linux/drivers/ndiswrapper-1.62/driver/crt.o
In file included from /media/Software/linux/drivers/ndiswrapper-1.62/driver/crt.c:16:0:
/media/Software/linux/drivers/ndiswrapper-1.62/driver/ntoskernel.h: In function ‘raise_irql’:
/media/Software/linux/drivers/ndiswrapper-1.62/driver/ntoskernel.h:113:40: error: ‘struct task_struct’ has no member named ‘cpus_allowed’; did you mean ‘nr_cpus_allowed’?
#define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed)
^
/media/Software/linux/drivers/ndiswrapper-1.62/driver/ntoskernel.h:668:36: note: in expansion of macro ‘tsk_cpus_allowed’
cpumask_copy(&info->cpus_allowed, tsk_cpus_allowed(current));
^~~~~~~~~~~~~~~~
scripts/Makefile.build:288: recipe for target '/media/Software/linux/drivers/ndiswrapper-1.62/driver/crt.o' failed
make[3]: *** [/media/Software/linux/drivers/ndiswrapper-1.62/driver/crt.o] Error 1
Makefile:1655: recipe for target '_module_/media/Software/linux/drivers/ndiswrapper-1.62/driver' failed
make[2]: *** [_module_/media/Software/linux/drivers/ndiswrapper-1.62/driver] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.3.0-46-generic'
Makefile:183: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/media/Software/linux/drivers/ndiswrapper-1.62/driver'
Makefile:23: recipe for target 'driver' failed
make: *** [driver] Error 2
System Specs:
os: ubuntu 18.04
kernel:
Repeatable Steps:
[1]
git clone https://github.com/pgiri/ndiswrapper
[2]cd ndiswrapper/ndiswrapper
[3]make
Result: