when I try to compile ndiswrapper I get the following (unfortunately it seems
to have been automatically garbled by the markdown syntax parsing, but I hope
it is clear enough):
root@ermintrude:/usr/src/ndiswrapper-1.55# make
make -C driver
make: Entering directory /usr/src/ndiswrapper-1.55/driver'
make -C /usr/src/linux-2.6.31-rt9ish M=/usr/src/ndiswrapper-1.55/driver
make: Entering directory/usr/src/linux-2.6.31-rt9ish'
CC /usr/src/ndiswrapper-1.55/driver/loader.o
/usr/src/ndiswrapper-1.55/driver/loader.c: In function ‘loader_init’:
/usr/src/ndiswrapper-1.55/driver/loader.c:850: error: implicit declaration of
function ‘init_MUTEX’
make: Error 1
make: Error 2
make: Leaving directory /usr/src/linux-2.6.31-rt9ish'
make: *** Error 2
make: Leaving directory/usr/src/ndiswrapper-1.55/driver'
make: *** Error 2
How do I get the thing to compile?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
when I try to compile ndiswrapper I get the following (unfortunately it seems
to have been automatically garbled by the markdown syntax parsing, but I hope
it is clear enough):
root@ermintrude:/usr/src/ndiswrapper-1.55# make
make -C driver
make: Entering directory
/usr/src/ndiswrapper-1.55/driver' make -C /usr/src/linux-2.6.31-rt9ish M=/usr/src/ndiswrapper-1.55/driver make: Entering directory
/usr/src/linux-2.6.31-rt9ish'CC /usr/src/ndiswrapper-1.55/driver/loader.o
/usr/src/ndiswrapper-1.55/driver/loader.c: In function ‘loader_init’:
/usr/src/ndiswrapper-1.55/driver/loader.c:850: error: implicit declaration of
function ‘init_MUTEX’
make: Error 1
make: Error 2
make: Leaving directory
/usr/src/linux-2.6.31-rt9ish' make: *** Error 2 make: Leaving directory
/usr/src/ndiswrapper-1.55/driver'make: *** Error 2
How do I get the thing to compile?
SOLUTION:
Replace the text init_MUTEX with semaphore_init in the two files in which
it occurs, namely driver/loader.c and driver/wrapndis.c.