Bug #323

ndiswrapper will not compile with newer kernels

Added by Tommy Boatman about 4 years ago. Updated about 4 years ago.

Status:In ProgressStart date:10/28/2011
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


Beyond kernel 2.6.36, ndiswrapper (1.54 in stable and 1.56 - the latest) will fail to build with the following error

driver make1: Entering directory
`/home/jroth/Downloads/ndiswrapper-1.56/driver' make -C
M=/home/jroth/Downloads/ndiswrapper-1.56/driver make2:
Entering directory `/usr/src/linux-source-2.6.36' CC [M]
error: unknown field 'ioctl' specified in initializer
warning: initialization from incompatible pointer type
make3: ***
Error 1

Patches are needed and detailed here -

The ultimate question is, with the wireless support now included IN the kernel, is this spell still really necessary?

Similar issues exist with madwifi (kernel drivers now exist), but I'll detail that later.


#1 Updated by Bor Kraljič about 4 years ago

In my opinion such spells could (or even should) be removed.

#2 Updated by Sukneet Basuta about 4 years ago

Can you perhaps try 1.57-rc1 http://sourceforge.net/projects/ndiswrapper/files/testing/1.57-rc1/
It compiles fine for me on kernel 3.0.8, but I don't have wireless extension enabled.

Or you can find try patching 1.56 with the patches from http://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/ndiswrapper

Imo, we may as well leave it should a user need it for some odd driver. But at the same time, no one has complained, so I assume no one is using it, or they could be using the svn version.

#3 Updated by Sukneet Basuta about 4 years ago

  • Status changed from New to In Progress

I updated the spell to 1.56 and added the archlinux patches. See commit 8abcbc31fe04f01018f0e2d455ce4e2645216e5d
Can you please test this? My kernel does not have the necessary extensions to properly test this.

#4 Updated by Tommy Boatman about 4 years ago

I'll test as soon as I get my wireless-extensioned kernel booted. Should be sometime this weekend.

Also available in: Atom PDF