ndiswrapper will not compile with newer kernels (Bug #323)


Added by Tommy Boatman almost 3 years ago. Updated over 2 years ago.


Status:In Progress Start date:10/28/2011
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Grimoire:Stable

Description

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
/usr/src/linux-source-2.6.36
M=/home/jroth/Downloads/ndiswrapper-1.56/driver make2:
Entering directory `/usr/src/linux-source-2.6.36' CC [M]
/home/jroth/Downloads/ndiswrapper-1.56/driver/loader.o
/home/jroth/Downloads/ndiswrapper-1.56/driver/loader.c:834:
error: unknown field 'ioctl' specified in initializer
/home/jroth/Downloads/ndiswrapper-1.56/driver/loader.c:834:
warning: initialization from incompatible pointer type
make3: ***
[/home/jroth/Downloads/ndiswrapper-1.56/driver/loader.o]
Error 1

Patches are needed and detailed here -
http://fossplanet.com/f12/compiling-ndiswrapper-module-realtek-rtl8192se-wireless-80968/

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.


History

Updated by Bor Kraljič almost 3 years ago

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

Updated by Sukneet Basuta over 2 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.

Updated by Sukneet Basuta over 2 years ago

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.

  • Status changed from New to In Progress

Updated by Tommy Boatman over 2 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