You are not logged in.

#1 2008-08-10 13:25:23

lowie82ph
Member
Registered: 2008-08-10
Posts: 22

Error in compiling madwifi - SOLVED

Hi, big_smile
I'm new to archlinux and PKGBUILD

I installed kernel26zenmm, and now my atheros wifi card is not working.
So i tried compiling madwifi for this kernel but I got errorrs

here is the PKGBUILD i used:

# $Id$
# Originally by kleptophobiac <kleptophobiac@gmail.com>
# Modified by James Rayner for the repositories <iphitus@gmail.com>

_kernver=`uname -r`;

pkgname=madwifi-ng-zenmm
pkgver=0.9.4.3382
pkgrel=5
pkgdesc="Madwifi drivers for Atheros wireless chipsets. For zenmm 2.6 kernel"
arch=(i686 x86_64)
license=('GPL')
url="http://madwifi.org"
depends=('madwifi-utils')
makedepends=('sharutils')
install=madwifi-ng-zenmm.install
# subversion source: svn checkout http://svn.madwifi.org/madwifi/trunk madwifi
source=(ftp://ftp.archlinux.org/other/madwifi/madwifi-${pkgver}.tar.bz2
    #http://downloads.sourceforge.net/madwifi/madwifi-${pkgver}.tar.gz
    )
md5sums=('e490429c026b5faff06696f947d9a39d')

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

  #cd $startdir/src/$pkgname-$pkgver
  cd $startdir/src/madwifi
  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

  # install to wireless kernel directory
  mkdir -p $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/madwifi
  mv $startdir/pkg/lib/modules/$_kernver/net/* $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/madwifi
  rm -r $startdir/pkg/lib/modules/$_kernver/net/
}

and here is the error:

==> Making package: madwifi-ng-zenmm 0.9.4.3382-5 i686 (Sun Aug 10 21:01:40 PHT 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found madwifi-0.9.4.3382.tar.bz2 in build dir
==> Validating source files with md5sums...
    madwifi-0.9.4.3382.tar.bz2 ... Passed
==> Extracting Sources...
  -> bsdtar -x -f madwifi-0.9.4.3382.tar.bz2
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.27-rc1-zenmm0-20080709/build SUBDIRS=/home/lowie/builds/atheros/src/madwifi modules
make[1]: Entering directory `/usr/src/linux-2.6.27-rc1-zenmm0-20080709'
  CC [M]  /home/lowie/builds/atheros/src/madwifi/net80211/ieee80211_power.o
/home/lowie/builds/atheros/src/madwifi/net80211/ieee80211_power.c: In function 'ieee80211_pwrsave':
/home/lowie/builds/atheros/src/madwifi/net80211/ieee80211_power.c:246: error: implicit declaration of function '__skb_append'
make[3]: *** [/home/lowie/builds/atheros/src/madwifi/net80211/ieee80211_power.o] Error 1
make[2]: *** [/home/lowie/builds/atheros/src/madwifi/net80211] Error 2
make[1]: *** [_module_/home/lowie/builds/atheros/src/madwifi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27-rc1-zenmm0-20080709'
make: *** [modules] Error 2
==> ERROR: Build Failed.
    Aborting..

Please help me what's wrong...

Thank you.

Last edited by lowie82ph (2008-08-14 22:21:13)

Offline

#2 2008-08-11 12:36:18

lowie82ph
Member
Registered: 2008-08-10
Posts: 22

Re: Error in compiling madwifi - SOLVED

anyone?

Offline

#3 2008-08-11 16:12:26

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Error in compiling madwifi - SOLVED

You probably need to use a more recent snapshot from the madwifi site.

Offline

#4 2008-08-14 22:19:37

lowie82ph
Member
Registered: 2008-08-10
Posts: 22

Re: Error in compiling madwifi - SOLVED

thanks fwojciec, i have now compiled using the recent snapshot.

Offline

Board footer

Powered by FluxBB