Results 1 to 9 of 9

Thread: madwifi

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    42

    Default madwifi

    having issues making madwifi

    Checking requirements... ok.
    Checking kernel configuration... ok.
    make -C /lib/modules/2.6.28.1/build SUBDIRS=/root/madwifi-0.9.4 modules
    make[1]: Entering directory `/usr/src/linux-source-2.6.28.1'
    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-source-2.6.28.1'
    make: *** [modules] Error 2

    any suggestions

  2. #2
    Member
    Join Date
    Jan 2010
    Posts
    140

    Default

    Try these two patches.
    http://slackbuilds.org/slackbuilds/1...el_2.6.26.diff
    http://slackbuilds.org/slackbuilds/1...el_2.6.27.diff
    Once in the madwifi-0.9.4 directory apply them like this:
    Code:
    # patch -p1 < madwifi-0.9.4_kernel_2.6.26.diff
    # patch -p1 < madwifi-0.9.4_kernel_2.6.27.diff
    Then run make.

  3. #3
    Junior Member jonah_15's Avatar
    Join Date
    Jan 2010
    Posts
    25

    Default

    I still had the same error as easycheese13 even after running the patches. running make gives me the same reported errors. If I find the solution I will post it.

  4. #4
    Member
    Join Date
    Jan 2010
    Posts
    140

    Default

    The original error from the OP was due to issues in changes in the kernel around 2.6.26. This is an old driver and came out before the kernel was finished. It is advised to use the svn version instead, as that should compile against current kernels.
    But if you really want to compile the 0.9.4 version it is best to just download it from madwifi-project.org subversion directory, which contains all of the latest patches.
    Code:
    # svn co http://svn.madwifi-project.org/madwifi/branches/madwifi-0.9.4/ madwifi-ng-0.9.4
    # cd madwifi-ng-0.9.4
    # apt-get install gcc-4.2
    # make CC=gcc-4.2
    It compiled fine with gcc-4.2. It also compiled fine for me with gcc-4.3, although there were a couple of warning messages near the end of make command.

  5. #5
    Junior Member
    Join Date
    Jul 2008
    Posts
    42

    Default Re:

    I have tried the Following:

    # svn co http://svn.madwifi-project.org/madwi...madwifi-0.9.4/ madwifi-ng-0.9.4
    # cd madwifi-ng-0.9.4
    # apt-get install gcc-4.2
    # make CC=gcc-4.2

    This is the error Im getting!

    It compiled fine with gcc-4.2. It also compiled fine for me with gcc-4.3, although there were a couple of warning messages near the end of make command.
    root@bt:~/madwifi-0.9.4# make CC=gcc-4.2
    Checking requirements... ok.
    Checking kernel configuration... ok.
    make -C /lib/modules/2.6.28.1/build SUBDIRS=/root/madwifi-0.9.4 modules
    make[1]: Entering directory `/usr/src/linux-source-2.6.28.1'
    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
    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-source-2.6.28.1'
    make: *** [modules] Error 2

  6. #6
    Junior Member
    Join Date
    Jul 2008
    Posts
    42

    Default Re

    Sorry, i was in the wrong DIR, its working able to install, and packet inject.

    I just want to thank all that helped out... Thanks Again



    Quote Originally Posted by easycheese13 View Post
    I have tried the Following:

    # svn co http://svn.madwifi-project.org/madwi...madwifi-0.9.4/ madwifi-ng-0.9.4
    # cd madwifi-ng-0.9.4
    # apt-get install gcc-4.2
    # make CC=gcc-4.2

    This is the error Im getting!

    It compiled fine with gcc-4.2. It also compiled fine for me with gcc-4.3, although there were a couple of warning messages near the end of make command.
    root@bt:~/madwifi-0.9.4# make CC=gcc-4.2
    Checking requirements... ok.
    Checking kernel configuration... ok.
    make -C /lib/modules/2.6.28.1/build SUBDIRS=/root/madwifi-0.9.4 modules
    make[1]: Entering directory `/usr/src/linux-source-2.6.28.1'
    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
    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-source-2.6.28.1'
    make: *** [modules] Error 2

  7. #7

    Default

    you know that by compiling from source you lost several patches from HD and DigiNinja where applied to the version of the drivers that come with BT4, for instance the capability of enabling karma features directly in the driver with iwpriv.

  8. #8
    Junior Member jonah_15's Avatar
    Join Date
    Jan 2010
    Posts
    25

    Default

    I didn't think DigiNinja's patches were already applied as when I was trying to enable Karma with iwpriv ath0 karma 1 it failed.

    I've installed Madwifi 0.9.4 and applied DigiNinja's patch and Karma is now working perfectly.

  9. #9

    Default

    you are absolutely right!!, it must have gotten changed from the Dev version to the Beta by mistake by someone. It will have to be added again.

Posting Permissions

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