You are not logged in.

#1 2013-10-23 21:32:27

helmut
Member
Registered: 2008-10-10
Posts: 65

[SOLVED] cannot compile ndiswrapper due to inexistent build directory

I have a wireless card for which I have not found an open source driver (lspci -> Marvell Technology Group Ltd. 88w8335 [Libertas] 802.11b/g Wireless (rev 03)).

Therefore I have tried to install ndiswrapper and use the windows driver for this card.

I have found a tarball in AUR. But the INSTALL requires

The command

  ls /lib/modules/`uname -r`/build

should have at least 'include' directory and '.config' file.

Unfortunately the "build" directory does not exist.

How can I get these directories with the appropriate "include" and ".config" file. Or is there any other possibility to get ndiswrapper installed?

Thanks for any help.

P.S. uname -r -> 3.11.5-1-ARCH

Last edited by helmut (2013-10-23 23:11:16)

Offline

#2 2013-10-23 21:34:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] cannot compile ndiswrapper due to inexistent build directory

Do you have linux-headers installed?

If you're using https://aur.archlinux.org/packages/nd/n … r/PKGBUILD you should have them installed, because they're the makedependecy.


Edit:

helmut wrote:

P.S. uname -r -> 3.11.5-1-ARCH

Update your system and reboot.You should be using version 3.11.6-1.

Last edited by karol (2013-10-23 21:39:11)

Offline

#3 2013-10-23 21:43:46

helmut
Member
Registered: 2008-10-10
Posts: 65

Re: [SOLVED] cannot compile ndiswrapper due to inexistent build directory

Linux headers are installed. But there might be an inconsistency.

uname -r
3.11.5-1-ARCH

ls /lib/modules/
3.11.5-1-ARCH  3.11.6-1-ARCH  extramodules-3.11-ARCH

The 3.11.6... directory contains a "build" subdirectory.

I am trying a systemupdate "pacman -Syu". Maybe this removes the inconsistency.

Last edited by helmut (2013-10-23 21:45:48)

Offline

#4 2013-10-23 21:45:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] cannot compile ndiswrapper due to inexistent build directory

Update your system and reboot.You should be using version 3.11.6-1.

Offline

#5 2013-10-23 22:00:15

helmut
Member
Registered: 2008-10-10
Posts: 65

Re: [SOLVED] cannot compile ndiswrapper due to inexistent build directory

Updating the system resolved the issue with the not found directory.

Unfortunately the "make" fails. Obviously are the kernel header files not compatible with the expectations of ndiswrapper. This is strange, because version 1.58 should work with kernel 3.11. Any idea on how this can be fixed (see below the output of make)?

make

make -C /usr/src/linux-3.11.6-1-ARCH M=/home/helmut/ndiswrapper-1.58/driver
make[2]: Entering directory '/usr/src/linux-3.11.6-1-ARCH'
  CC [M]  /home/helmut/ndiswrapper-1.58/driver/loader.o
/home/helmut/ndiswrapper-1.58/driver/loader.c: In function ‘load_user_space_driver’:
/home/helmut/ndiswrapper-1.58/driver/loader.c:578:3: error: too few arguments to function ‘add_taint’
   add_taint(TAINT_PROPRIETARY_MODULE);
   ^
In file included from include/linux/cache.h:4:0,
                 from include/linux/time.h:4,
                 from include/linux/ktime.h:24,
                 from include/linux/timer.h:5,
                 from /home/helmut/ndiswrapper-1.58/driver/ntoskernel.h:20,
                 from /home/helmut/ndiswrapper-1.58/driver/ndis.h:19,
                 from /home/helmut/ndiswrapper-1.58/driver/loader.c:16:
include/linux/kernel.h:401:13: note: declared here
 extern void add_taint(unsigned flag, enum lockdep_ok);
             ^
scripts/Makefile.build:308: recipe for target '/home/helmut/ndiswrapper-1.58/driver/loader.o' failed
make[3]: *** [/home/helmut/ndiswrapper-1.58/driver/loader.o] Error 1
Makefile:1225: recipe for target '_module_/home/helmut/ndiswrapper-1.58/driver' failed
make[2]: *** [_module_/home/helmut/ndiswrapper-1.58/driver] Error 2
make[2]: Leaving directory '/usr/src/linux-3.11.6-1-ARCH'
Makefile:177: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/home/helmut/ndiswrapper-1.58/driver'
Makefile:25: recipe for target 'driver' failed
make: *** [driver] Error 2

Offline

#6 2013-10-23 22:07:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] cannot compile ndiswrapper due to inexistent build directory

Hmmm, works for me. I used 'makepkg -si' to make and install it.

Offline

#7 2013-10-23 22:16:34

helmut
Member
Registered: 2008-10-10
Posts: 65

Re: [SOLVED] cannot compile ndiswrapper due to inexistent build directory

What package do you have? I have found only a tarball without any PKGBUILD file etc. in AUR (https://aur.archlinux.org/packages/ndiswrapper/). Is there any other source?

pacman -Ss ndiswrapper doesn't find anything.

Last edited by helmut (2013-10-23 22:16:52)

Offline

#8 2013-10-23 22:19:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] cannot compile ndiswrapper due to inexistent build directory

I'm using https://aur.archlinux.org/packages/ndiswrapper/ on a 32-bit Arch.
Are you sure you know how to use AUR? Are you trying to tell me that https://aur.archlinux.org/packages/nd/n … per.tar.gz doesn't have the PKGBUILD, the patch and .install?

I'm using [testing] but it should work regardless.

Offline

#9 2013-10-23 22:31:06

helmut
Member
Registered: 2008-10-10
Posts: 65

Re: [SOLVED] cannot compile ndiswrapper due to inexistent build directory

I have downloaded the source in a wrong manner. I've clicked to download the source tarball instead in the "Package Actions" on "Download tarball".

Now the installation of ndiswrapper worked without any problems. Sorry for this stupid error.

Offline

#10 2013-10-23 22:49:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] cannot compile ndiswrapper due to inexistent build directory

You probably were missing the patch, that's why it didn't want to compile https://bbs.archlinux.org/viewtopic.php … 7#p1340787


Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB