Jump to content

Recommended Posts

Posted (edited)

Ive got an ubiquiti network expresscard atheros wifi card, and since a couple of automatic upgrades ago the ath0 interface has disappeared. In fact the expresscard doesnt seem to show in lshw at all. Anyway, Im trying to compile the madwifi drivers for it but its failling...

 

Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.28-13-generic/build SUBDIRS=/root/madwifi-0.9.4 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-13-generic'
 CC [M]  /root/madwifi-0.9.4/ath/if_ath.o
In file included from include/linux/gfp.h:4,
                from include/linux/kmod.h:22,
                from include/linux/module.h:13,
                from /root/madwifi-0.9.4/ath/if_ath.c:51:
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory
include/linux/mmzone.h:256:5: error: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
                from include/linux/kmod.h:22,
                from include/linux/module.h:13,
                from /root/madwifi-0.9.4/ath/if_ath.c:51:
include/linux/mmzone.h:277: error: 'MAX_NR_ZONES' undeclared here (not in a function)
In file included from include/linux/scatterlist.h:6,
                from /usr/src/linux-headers-2.6.28-13-generic/arch/x86/include/asm/dma-mapping.h:9,
                from include/linux/dma-mapping.h:57,
                from include/linux/dmaengine.h:29,
                from include/linux/skbuff.h:29,
                from /root/madwifi-0.9.4/ath/if_ath.c:53:
include/linux/mm.h:437:63: error: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:485:62: error: "NR_PAGEFLAGS" is not defined
make[3]: *** [/root/madwifi-0.9.4/ath/if_ath.o] Error 1
make[2]: *** [/root/madwifi-0.9.4/ath] Error 2
make[1]: *** [_module_/root/madwifi-0.9.4] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-13-generic'
make: *** [modules] Error 2

 

I dont have a clue when it comes to the kernel, can anyone pick ot what bit of that is causing the error please?

 

edit: A similar error occurs when trying to compile a new driver for the internal PRO/Wireless 4965 AG card...

 

 

  CC [M]  /root/compat-wireless-2009-07-09/drivers/misc/eeprom/eeprom_93cx6.o
In file included from include/linux/gfp.h:4,
                from include/linux/kmod.h:22,
                from include/linux/module.h:13,
                from include/linux/textsearch.h:7,
                from include/linux/skbuff.h:26,
                from /root/compat-wireless-2009-07-09/include/net/compat-2.6.29.h:10,
                from /root/compat-wireless-2009-07-09/include/net/compat.h:20,
                from :0:
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory
include/linux/mmzone.h:256:5: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
                from include/linux/kmod.h:22,
                from include/linux/module.h:13,
                from include/linux/textsearch.h:7,
                from include/linux/skbuff.h:26,
                from /root/compat-wireless-2009-07-09/include/net/compat-2.6.29.h:10,
                from /root/compat-wireless-2009-07-09/include/net/compat.h:20,
                from :0:
include/linux/mmzone.h:277: error: ‘MAX_NR_ZONES’ undeclared here (not in a function)
In file included from include/linux/scatterlist.h:6,
                from /usr/src/linux-headers-2.6.28-13-generic/arch/x86/include/asm/dma-mapping.h:9,
                from include/linux/dma-mapping.h:57,
                from include/linux/dmaengine.h:29,
                from include/linux/skbuff.h:29,
                from /root/compat-wireless-2009-07-09/include/net/compat-2.6.29.h:10,
                from /root/compat-wireless-2009-07-09/include/net/compat.h:20,
                from :0:
include/linux/mm.h:437:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:485:62: warning: "NR_PAGEFLAGS" is not defined
make[3]: *** [/root/compat-wireless-2009-07-09/drivers/misc/eeprom/eeprom_93cx6.o] Error 1
make[2]: *** [/root/compat-wireless-2009-07-09/drivers/misc/eeprom] Error 2
make[1]: *** [_module_/root/compat-wireless-2009-07-09] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-13-generic'
make: *** [modules] Error 2

Edited by RabbieBurns
Posted

Just a guess but bounds.h is not included and am guessing that includes references to the other variables etc ?

 

No linux guru or nothing so most likely wrong

 

include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory

 

edit: A similar error occurs when trying to compile a new driver for the internal PRO/Wireless 4965 AG card...

 

Any chance you can edit the post and add the error for the wifi card to see if its the same or not

Posted

its a start ill google for that..

 

checking lshw I think that the expresscard slot is found but no the wifi card?

 

*-pcmcia
               description: CardBus bridge
               product: RL5c476 II
               vendor: Ricoh Co Ltd
               physical id: 4
               bus info: pci@0000:09:04.0
               version: ba
               width: 64 bits
               clock: 33MHz
               capabilities: pcmcia bus_master cap_list
               configuration: driver=yenta_cardbus latency=176 maxlatency=5 mingnt=128 module=yenta_socket
               resources: iomemory:b00d0a090-b00d0a08f

Posted
Have you got the right linux headers package installed? Have you run the configure script before trying to make the package?

 

There doesnt seem to be a configure script. And Ive no idea what headers package installed its all just done through autoupdates?

Posted

not that it helps but just spotted the following

 

*-pcmcia

description: CardBus bridge

product: RL5c476 II

vendor: Ricoh Co Ltd

physical id: 4

bus info: pci@0000:09:04.0

version: ba

width: 64 bits

clock: 33MHz

capabilities: pcmcia bus_master cap_list

configuration: driver=yenta_cardbus latency=176 maxlatency=5 mingnt=128 module=yenta_socket

resources: iomemory:b00d0a090-b00d0a08f

Posted

edit: A similar error occurs when trying to compile a new driver for the internal PRO/Wireless 4965 AG card...

 

Any chance you can edit the post and add the error for the wifi card to see if its the same or not

 

done ...

Posted
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.28-13-generic/build SUBDIRS=/root/madwifi-0.9.4 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-13-generic'
 CC [M]  /root/madwifi-0.9.4/ath/if_ath.o
 CC [M]  /root/madwifi-0.9.4/ath/if_ath_pci.o
 LD [M]  /root/madwifi-0.9.4/ath/ath_pci.o
 CC [M]  /root/madwifi-0.9.4/ath_hal/ah_os.o
 HOSTCC  /root/madwifi-0.9.4/ath_hal/uudecode
 UUDECODE /root/madwifi-0.9.4/ath_hal/i386-elf.hal.o
 LD [M]  /root/madwifi-0.9.4/ath_hal/ath_hal.o
 CC [M]  /root/madwifi-0.9.4/ath_rate/amrr/amrr.o
 LD [M]  /root/madwifi-0.9.4/ath_rate/amrr/ath_rate_amrr.o
 CC [M]  /root/madwifi-0.9.4/ath_rate/minstrel/minstrel.o
 LD [M]  /root/madwifi-0.9.4/ath_rate/minstrel/ath_rate_minstrel.o
 CC [M]  /root/madwifi-0.9.4/ath_rate/onoe/onoe.o
 LD [M]  /root/madwifi-0.9.4/ath_rate/onoe/ath_rate_onoe.o
 CC [M]  /root/madwifi-0.9.4/ath_rate/sample/sample.o
 LD [M]  /root/madwifi-0.9.4/ath_rate/sample/ath_rate_sample.o
 CC [M]  /root/madwifi-0.9.4/net80211/if_media.o
 CC [M]  /root/madwifi-0.9.4/net80211/ieee80211.o
 CC [M]  /root/madwifi-0.9.4/net80211/ieee80211_beacon.o
 CC [M]  /root/madwifi-0.9.4/net80211/ieee80211_crypto.o
 CC [M]  /root/madwifi-0.9.4/net80211/ieee80211_crypto_none.o
 CC [M]  /root/madwifi-0.9.4/net80211/ieee80211_input.o
 CC [M]  /root/madwifi-0.9.4/net80211/ieee80211_node.o
 CC [M]  /root/madwifi-0.9.4/net80211/ieee80211_output.o
 CC [M]  /root/madwifi-0.9.4/net80211/ieee80211_power.o
/root/madwifi-0.9.4/net80211/ieee80211_power.c: In function 'ieee80211_pwrsave':
/root/madwifi-0.9.4/net80211/ieee80211_power.c:240: error: implicit declaration of function '__skb_append'
make[3]: *** [/root/madwifi-0.9.4/net80211/ieee80211_power.o] Error 1
make[2]: *** [/root/madwifi-0.9.4/net80211] Error 2
make[1]: *** [_module_/root/madwifi-0.9.4] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-13-generic'
make: *** [modules] Error 2

reinstalled the kernel, and getting this error now

Posted

You appear to be missing the libc6 header files. Run the following to get a sane build environment.

 

sudo apt-get update
sudo sudo apt-get install build-essential

Posted
You appear to be missing the libc6 header files. Run the following to get a sane build environment.

 

sudo apt-get update
sudo sudo apt-get install build-essential

 

Is it a bird ? Is it a plane ?

 

No its Geoff to the rescue :troll:

Posted

got it working. Found these instructions on another forum.

 

the problem seems to lie in the ieee_80211_power implementation, building from trunk works:

sudo apt-get install libc6-dev
sudo apt-get install build-essential
sudo apt-get install subversion
svn checkout {http doublepoint doubleslash}svn.madwifi-project.org/madwifi/trunk madwifi
cd madwifi
make 
make install

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...