+ Post New Thread
Results 1 to 15 of 15
*nix Thread, madwifi wont compile in Technical; Ive got an ubiquiti network expresscard atheros wifi card, and since a couple of automatic upgrades ago the ath0 interface ...
  1. #1

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200

    madwifi wont compile

    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...

    Code:
    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...


    Code:
      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 <command-line>: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 <command-line>: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 <command-line>: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
    Last edited by RabbieBurns; 10th July 2009 at 08:42 AM.

  2. #2

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,807
    Thank Post
    3,320
    Thanked 1,056 Times in 977 Posts
    Rep Power
    365
    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

  3. #3


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,475
    Thank Post
    866
    Thanked 850 Times in 672 Posts
    Rep Power
    196
    Have you got the right linux headers package installed? Have you run the configure script before trying to make the package?

  4. #4

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    its a start ill google for that..

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

    Code:
    *-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

  5. #5

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    Quote Originally Posted by tom_newton View Post
    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?

  6. #6

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,807
    Thank Post
    3,320
    Thanked 1,056 Times in 977 Posts
    Rep Power
    365
    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

  7. #7

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    yeh I think the whole chipset is richo, the sd card reader is richo too, and i think the webcam might be too

  8. #8

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    Quote Originally Posted by mac_shinobi View Post
    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 ...

  9. #9

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    Code:
    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

  10. #10

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    You appear to be missing the libc6 header files. Run the following to get a sane build environment.

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

  11. #11

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,807
    Thank Post
    3,320
    Thanked 1,056 Times in 977 Posts
    Rep Power
    365
    Quote Originally Posted by Geoff View Post
    You appear to be missing the libc6 header files. Run the following to get a sane build environment.

    Code:
    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

  12. #12

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    got it working. Found these instructions on another forum.

    Code:
    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

  13. #13

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Ah so trunk works? is 0.9.4 broken on ubuntu then?

  14. #14

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    yeh, trunk worked perfectly... it would appear that way, but could just be my laptop / card ?

  15. #15

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Nope, your not wrong.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 16
    Last Post: 23rd February 2009, 01:20 PM
  2. WSUS wont sync!
    By PRicho in forum Windows Server 2000/2003
    Replies: 3
    Last Post: 18th November 2008, 12:19 PM
  3. Replies: 6
    Last Post: 9th October 2008, 12:28 PM
  4. image wont display
    By PEO in forum EduGeek Joomla 1.5 Package
    Replies: 4
    Last Post: 29th July 2008, 03:22 PM
  5. Harddrive wont format.....
    By flashsnaps in forum Hardware
    Replies: 12
    Last Post: 21st January 2008, 11:47 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •