Happens to me too. The problem is in the ndiswrapper source, as the
problem is present also when compiling manually "ndiswrapper-source".

Updating to the newer 1.58rc1 version fixes the bug. I managed to
compile it through dkms using the same dkms.conf file from 1.57-1 (only
changing the ndiswrapper version) and the updated source code. Upgrading
the version in the repositories should be enough to get rid of this bug
(and perhaps other bugs present in the same package which are related to
the kernel version as well).

Steps to solve/workaround the problem:

1.Create the folder /usr/src/ndiswrapper-1.58/
2.Extract there the source code of the ndiswrapper module.
3.Copy the dkms.conf file from /usr/src/ndiswrapper-1.57/ to the 
/usr/src/ndiswrapper-1.58/ folder as well. Open it with a text editor and 
change the version of ndiswrapper listed there to 1.58.
4.Run these commands in your console in order to build and install the module 
using dkms:

sudo dkms add ndiswrapper/1.58
sudo dkms build ndiswrapper/1.58
sudo dkms install ndiswrapper/1.58

Try the module using "modprobe ndiswrapper" or add it to /etc/modules
directly if you want it running every time at system startup.

Enjoy! ;)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1023645

Title:
  ndiswrapper-dkms 1.57-1ubuntu1: ndiswrapper kernel module failed to
  build [error: ‘struct kernel_stat’ has no member named ‘cpustat’]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ndiswrapper/+bug/1023645/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to