Results 1 to 4 of 4

Thread: B43 compile problems

  1. #1
    Junior Member Shaamaan's Avatar
    Join Date
    Dec 2007
    Posts
    34

    Default B43 compile problems

    I'm trying to get some alternative drivers for my wifi card (it's kinda unstable at the moment), and I'm having trouble right at the very beginning.

    I've downloaded the b43 drivers from this site:
    http://linuxwireless.org/en/users/Do...heretodownload

    When I try to compile them like the instructions say, I get a bunch of errors...
    Code:
    bt compat-wireless-2.6 # make
    make -C /lib/modules/2.6.21.5/build M=/root/Desktop/compat-wireless-2.6 modules
    make[1]: Entering directory `/usr/src/linux-2.6.21.5'
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/misc/eeprom_93cx6.o
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.o
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c: In function 'isr_indicate_associated':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:1917: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__maybe_unused'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:1917: error: '__maybe_unused' undeclared (first use in this function)
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:1917: error: (Each undeclared identifier is reported only once
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:1917: error: for each function it appears in.)
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c: In function 'isr_indicate_association_lost':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:2049: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__maybe_unused'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:2049: error: '__maybe_unused' undeclared (first use in this function)
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c: In function 'show_bssinfo':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:4061: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__maybe_unused'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:4061: error: '__maybe_unused' undeclared (first use in this function)
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:4089: error: 'mac' undeclared (first use in this function)
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c: In function 'ipw2100_read_mac_address':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:4665: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__maybe_unused'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:4665: error: '__maybe_unused' undeclared (first use in this function)
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:4667: warning: ISO C90 forbids mixed declarations and code
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c: In function 'ipw2100_wx_set_wap':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:6907: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__maybe_unused'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:6907: error: '__maybe_unused' undeclared (first use in this function)
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c: In function 'ipw2100_wx_get_wap':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:6950: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__maybe_unused'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:6950: error: '__maybe_unused' undeclared (first use in this function)
    make[3]: *** [/root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.o] Error 1
    make[2]: *** [/root/Desktop/compat-wireless-2.6/drivers/net/wireless] Error 2
    make[1]: *** [_module_/root/Desktop/compat-wireless-2.6] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.21.5'
    make: *** [modules] Error 2
    Any suggestions?

    EDIT: As far as I understand, there's a problem with the function DECLARE_MAC_BUF, but I've no idea if I can just comment it out or what...
    Shaamaan

    Free will is an illusion...

  2. #2
    Developer
    Join Date
    Mar 2007
    Posts
    6,126

    Default

    It looks like the kernel was not compiled with the proper dependencies.

    edit :Reading the site though seems it is not needed.


    hhmmm....

    I believe this is your ploblem.

    Since you might be replacing your old mac80211 drivers you should first try to unload all existing mac80211 and related drivers. Note also that broadcom, zydas, and atheros devices have old legacy drivers which you need to be sure are removed first. We provide a mechanism to unload all old and legacy drivers first so you should run to be sure:

    And it seems your driver is questionable....

  3. #3
    Junior Member Shaamaan's Avatar
    Join Date
    Dec 2007
    Posts
    34

    Default

    I will try that, but... Shouldn't that come AFTER a driver is created with... make?

    EDIT:
    Yep, I get the exact same thing when running make unload first.

    Also, as far as I managed to read, the driver bcm43xx is deprecated, and the new drivers are (or at least should be) from that site. Thinking I've got nothing to loose, I'd give them a shot.

    Another EDIT:
    I FINALLY found the function in one of the files that came with the new driver, include/net/compat.h. If I commented out the __maybe_unused it actually compiled (that file at least), but found more errors along the way:
    Code:
    bt compat-wireless-2.6 # make
    make -C /lib/modules/2.6.21.5/build M=/root/Desktop/compat-wireless-2.6 modules
    make[1]: Entering directory `/usr/src/linux-2.6.21.5'
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/misc/eeprom_93cx6.o
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.o
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c: In function 'isr_indicate_associated':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:1917: warning: unused variable 'mac'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c: In function 'isr_indicate_association_lost':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:2049: warning: unused variable 'mac'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c: In function 'ipw2100_read_mac_address':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:4665: warning: unused variable 'mac'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c: In function 'ipw2100_wx_set_wap':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:6907: warning: unused variable 'mac'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c: In function 'ipw2100_wx_get_wap':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2100.c:6950: warning: unused variable 'mac'
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2200.o
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2200.c: In function 'ipw_find_adhoc_network':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2200.c:5429: warning: unused variable 'mac2'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2200.c:5428: warning: unused variable 'mac'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2200.c: In function 'ipw_handle_mgmt_packet':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2200.c:8231: warning: implicit declaration of function 'skb_reset_mac_header'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2200.c: In function 'ipw_handle_promiscuous_tx':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ipw2200.c:10467: warning: implicit declaration of function 'skb_copy_from_linear_data'
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8180_dev.o
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8180_dev.c: In function 'rtl8180_handle_rx':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8180_dev.c:115: warning: implicit declaration of function 'skb_tail_pointer'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8180_dev.c:116: warning: passing argument 2 of 'pci_map_single' makes pointer from integer without a cast
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8180_dev.c: In function 'rtl8180_init_rx_ring':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8180_dev.c:413: warning: passing argument 2 of 'pci_map_single' makes pointer from integer without a cast
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8180_rtl8225.o
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8180_sa2400.o
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8180_max2820.o
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8180_grf5101.o
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8187_dev.o
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8187_dev.c: In function 'rtl8187_rx_cb':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8187_dev.c:203: warning: implicit declaration of function 'skb_tail_pointer'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8187_dev.c:246: warning: assignment makes pointer from integer without a cast
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8187_dev.c: In function 'rtl8187_init_urbs':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8187_dev.c:272: warning: passing argument 4 of 'usb_fill_bulk_urb' makes pointer from integer without a cast
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8187_rtl8225.o
      LD [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8180.o
      LD [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/rtl8187.o
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/adm8211.o
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/adm8211.c: In function 'adm8211_interrupt_rci':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/adm8211.c:413: warning: implicit declaration of function 'skb_tail_pointer'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/adm8211.c:413: warning: passing argument 2 of '__constant_memcpy' makes pointer from integer without a cast
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/adm8211.c:413: warning: passing argument 2 of '__memcpy' makes pointer from integer without a cast
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/adm8211.c:435: warning: passing argument 2 of 'pci_map_single' makes pointer from integer without a cast
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/adm8211.c: In function 'adm8211_init_rings':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/adm8211.c:1532: warning: passing argument 2 of 'pci_map_single' makes pointer from integer without a cast
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/p54common.o
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/p54usb.o
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/p54usb.c: In function 'p54u_rx_cb':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/p54usb.c:104: warning: implicit declaration of function 'skb_tail_pointer'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/p54usb.c:104: warning: assignment makes pointer from integer without a cast
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/p54usb.c: In function 'p54u_init_urbs':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/p54usb.c:142: warning: passing argument 4 of 'usb_fill_bulk_urb' makes pointer from integer without a cast
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/p54pci.o
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/p54pci.c: In function 'p54p_refill_rx_ring':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/p54pci.c:263: warning: implicit declaration of function 'skb_tail_pointer'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/p54pci.c:265: warning: passing argument 2 of 'pci_map_single' makes pointer from integer without a cast
      CC [M]  /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.o
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c: In function 'ath5k_rx_start':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c:1573: warning: implicit declaration of function 'list_first_entry'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c:1573: error: expected expression before 'struct'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c:1573: warning: assignment makes pointer from integer without a cast
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c: In function 'ath5k_tasklet_rx':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c:1650: error: expected expression before 'struct'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c:1650: warning: assignment makes pointer from integer without a cast
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c: In function 'ath5k_beacon_config':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c:1994: warning: parameter names (without types) in function declaration
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c:2023: error: 'nexttbtt' undeclared (first use in this function)
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c:2023: error: (Each undeclared identifier is reported only once
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c:2023: error: for each function it appears in.)
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c: In function 'ath5k_tx':
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c:2422: error: expected expression before 'struct'
    /root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.c:2422: warning: assignment makes pointer from integer without a cast
    make[4]: *** [/root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k/base.o] Error 1
    make[3]: *** [/root/Desktop/compat-wireless-2.6/drivers/net/wireless/ath5k] Error 2
    make[2]: *** [/root/Desktop/compat-wireless-2.6/drivers/net/wireless] Error 2
    make[1]: *** [_module_/root/Desktop/compat-wireless-2.6] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.21.5'
    make: *** [modules] Error 2
    Shaamaan

    Free will is an illusion...

  4. #4
    Just burned his ISO
    Join Date
    Jan 2008
    Posts
    5

    Default

    Just a little constructive critism but just to make sure your still not on 2.6.21.5

    <paste>
    You need two things:
    A kernel >= 2.6.22
    Your kernel headers installed

Posting Permissions

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