You are not logged in.

#1 2010-04-02 08:28:00

Ferrenrock
Member
Registered: 2008-11-22
Posts: 36

Madiwifi-aircrack PKGBUILD points to a non-existant directory [SOLVED]

I tried installing madwifi-aircrack and I got the following output:

/bin/sh: line 0: cd: /lib/modules/2.6.32-ARCH/build: No such file or directory
Makefile.inc:66: *** /lib/modules/2.6.32-ARCH/build is missing, please set KERNELPATH.  Stop.

Indeed, there is no 'build' folder. The specific code that it references is here:

build() {
  [ "${CARCH}" == "i686" ] && export ARCH=i386

  cd $startdir/src/madwifi
  patch -Np1 -i $startdir/src/madwifi-ng-r4073.patch
  sed -i -e 's/-Werror//g' Makefile.inc
  make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver modules|| return 1
  make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver modules \
       DESTDIR=$startdir/pkg KERNELRELEASE=$_kernver install-modules
  sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install

The full pkgbuild is here:

http://aur.archlinux.org/packages/madwi … k/PKGBUILD

What should I change the directory to?

Last edited by Ferrenrock (2010-04-05 16:45:52)

Offline

#2 2010-04-02 09:25:52

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Madiwifi-aircrack PKGBUILD points to a non-existant directory [SOLVED]

Install kernel26-headers.

Offline

#3 2010-04-05 16:45:34

Ferrenrock
Member
Registered: 2008-11-22
Posts: 36

Re: Madiwifi-aircrack PKGBUILD points to a non-existant directory [SOLVED]

OK, I got it working. After installing that, I still had to change the kernel version in the PKGBUILD from 2.6.31 to 2.6.32. I would be better if that just linked to uname output or something, but I have no idea how to do that.

Offline

#4 2010-04-05 21:45:32

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Madiwifi-aircrack PKGBUILD points to a non-existant directory [SOLVED]

The kernel version is hardcoded to facilitate building against non-running kernels. This is standard practice for kernel module PKGBUILDs.

The fact that madwifi-aircrack in the AUR was last updated on 22 Dec is also relevant.

Offline

Board footer

Powered by FluxBB