Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HELP ! I can't compile bcm43xx module for aiport extreme !
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
daker
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2004
Posts: 109
Location: Vitoria-Gasteiz

PostPosted: Mon Jan 16, 2006 5:40 pm    Post subject: HELP ! I can't compile bcm43xx module for aiport extreme ! Reply with quote

I dont explait it, because I dont speak english.
But I'll paste the problem.

Code:
localhost driver # make
make -C /lib/modules/2.6.15.1/build M=/opt/airport/trunk/driver modules
make[1]: Entering directory `/usr/src/linux-2.6.15.1'
  CC [M]  /opt/airport/trunk/driver/bcm43xx_main.o
In file included from /opt/airport/trunk/driver/bcm43xx_main.c:43:
/opt/airport/trunk/driver/bcm43xx.h:11:34: net/ieee80211softmac.h: No such file or directory
In file included from /opt/airport/trunk/driver/bcm43xx_main.c:43:
/opt/airport/trunk/driver/bcm43xx.h: In function `bcm43xx_priv':
/opt/airport/trunk/driver/bcm43xx.h:752: warning: implicit declaration of function `ieee80211softmac_priv'
/opt/airport/trunk/driver/bcm43xx.h:752: warning: return makes pointer from integer without a cast
/opt/airport/trunk/driver/bcm43xx.h:958:3: #error "The bcm43xx driver requires the SoftMAC subsystem."
/opt/airport/trunk/driver/bcm43xx.h:959:3: #error "SEE >>>>>>    http://softmac.sipsolutions.net/    <<<<<<"
/opt/airport/trunk/driver/bcm43xx_main.c: In function `bcm43xx_generate_txhdr':
/opt/airport/trunk/driver/bcm43xx_main.c:515: error: dereferencing pointer to incomplete type
/opt/airport/trunk/driver/bcm43xx_main.c:517: error: dereferencing pointer to incomplete type
/opt/airport/trunk/driver/bcm43xx_main.c: In function `bcm43xx_disassociate':
/opt/airport/trunk/driver/bcm43xx_main.c:679: error: dereferencing pointer to incomplete type
/opt/airport/trunk/driver/bcm43xx_main.c: In function `bcm43xx_softmac_init':
/opt/airport/trunk/driver/bcm43xx_main.c:3401: warning: implicit declaration of function `ieee80211softmac_start'
/opt/airport/trunk/driver/bcm43xx_main.c: In function `bcm43xx_rx':
/opt/airport/trunk/driver/bcm43xx_main.c:4126: warning: passing arg 2 of `ieee80211_rx_mgt' from incompatible pointer type
/opt/airport/trunk/driver/bcm43xx_main.c: In function `bcm43xx_net_stop':
/opt/airport/trunk/driver/bcm43xx_main.c:4298: warning: implicit declaration of function `ieee80211softmac_stop'
/opt/airport/trunk/driver/bcm43xx_main.c: In function `bcm43xx_init_private':
/opt/airport/trunk/driver/bcm43xx_main.c:4312: error: dereferencing pointer to incomplete type
/opt/airport/trunk/driver/bcm43xx_main.c: In function `bcm43xx_init_one':
/opt/airport/trunk/driver/bcm43xx_main.c:4377: warning: implicit declaration of function `alloc_ieee80211softmac'
/opt/airport/trunk/driver/bcm43xx_main.c:4377: warning: assignment makes pointer from integer without a cast
/opt/airport/trunk/driver/bcm43xx_main.c:4435: warning: implicit declaration of function `free_ieee80211softmac'
/opt/airport/trunk/driver/bcm43xx_main.c: In function `bcm43xx_resume':
/opt/airport/trunk/driver/bcm43xx_main.c:4566: error: dereferencing pointer to incomplete type
/opt/airport/trunk/driver/bcm43xx_main.c: At top level:
/opt/airport/trunk/driver/bcm43xx_main.c:659: warning: 'bcm43xx_disassociate' defined but not used
/opt/airport/trunk/driver/bcm43xx_main.c:688: warning: 'bcm43xx_associate' defined but not used
make[2]: *** [/opt/airport/trunk/driver/bcm43xx_main.o] Error 1
make[1]: *** [_module_/opt/airport/trunk/driver] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.15.1'
make: *** [modules] Error 2


I think that the problem is this :
/opt/airport/trunk/driver/bcm43xx.h:11:34: net/ieee80211softmac.h: No such file or directory

but I dont understand it because ...
Code:

localhost driver # ls -l /usr/src/linux-2.6.15.1/net/ieee80211softmac*
-rwxr-xr-x  1 root root 8842 Jan 16 18:34 /usr/src/linux-2.6.15.1/net/ieee80211softmac.h
-rwxr-xr-x  1 root root 1787 Jan 16 18:34 /usr/src/linux-2.6.15.1/net/ieee80211softmac_wx.h


Please, can any1 help me ? Thanks anyway ! :)[/b]
_________________
Powered by gentoo · Linux User #324026 ·
X.Org 6.8.1 | Gnome 2.8.2 | XFS | Kernel 2.6.9-gentoo
PIII 866Mhz | GFORCE4 MX440 64Mb-DDR | SoundBlaster Live 1024
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Jan 16, 2006 5:53 pm    Post subject: Reply with quote

You need to specify the location of the SoftMAC source.

Please read the sticky in this forum: https://forums.gentoo.org/viewtopic-t-409194.html
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
daker
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2004
Posts: 109
Location: Vitoria-Gasteiz

PostPosted: Mon Jan 16, 2006 8:55 pm    Post subject: Reply with quote

Thanks JoseJX, your answer has resolved the problem.
But now the make crash again, and now i dont understand why :?

Code:
localhost driver # SOFTMAC_DIR=/opt/airport/source/ make
make -C /lib/modules/2.6.15.1/build M=/opt/airport/trunk/driver modules
make[1]: Entering directory `/usr/src/linux-2.6.15.1'
  CC [M]  /opt/airport/trunk/driver/bcm43xx_main.o
/opt/airport/trunk/driver/bcm43xx_main.c: In function `bcm43xx_rx':
/opt/airport/trunk/driver/bcm43xx_main.c:4126: warning: passing arg 2 of `ieee80211_rx_mgt' from incompatible pointer type
/opt/airport/trunk/driver/bcm43xx_main.c: At top level:
/opt/airport/trunk/driver/bcm43xx_main.c:659: warning: 'bcm43xx_disassociate' defined but not used
/opt/airport/trunk/driver/bcm43xx_main.c:688: warning: 'bcm43xx_associate' defined but not used
  CC [M]  /opt/airport/trunk/driver/bcm43xx_dma.o
  CC [M]  /opt/airport/trunk/driver/bcm43xx_debugfs.o
  CC [M]  /opt/airport/trunk/driver/bcm43xx_radio.o
  CC [M]  /opt/airport/trunk/driver/bcm43xx_phy.o
  CC [M]  /opt/airport/trunk/driver/bcm43xx_power.o
  CC [M]  /opt/airport/trunk/driver/bcm43xx_wx.o
/opt/airport/trunk/driver/bcm43xx_wx.c: In function `bcm43xx_wx_set_channelfreq':
/opt/airport/trunk/driver/bcm43xx_wx.c:118: warning: unused variable `softmac'
/opt/airport/trunk/driver/bcm43xx_wx.c: At top level:
/opt/airport/trunk/driver/bcm43xx_wx.c:1010: error: `ieee80211_wx_set_auth' undeclared here (not in a function)
/opt/airport/trunk/driver/bcm43xx_wx.c:1010: error: initializer element is not constant
/opt/airport/trunk/driver/bcm43xx_wx.c:1010: error: (near initialization for `bcm43xx_wx_handlers[50]')
/opt/airport/trunk/driver/bcm43xx_wx.c:1011: error: `ieee80211_wx_get_auth' undeclared here (not in a function)
/opt/airport/trunk/driver/bcm43xx_wx.c:1011: error: initializer element is not constant
/opt/airport/trunk/driver/bcm43xx_wx.c:1011: error: (near initialization for `bcm43xx_wx_handlers[51]')
/opt/airport/trunk/driver/bcm43xx_wx.c:227: warning: 'bcm43xx_wx_set_sensitivity' defined but not used
/opt/airport/trunk/driver/bcm43xx_wx.c:237: warning: 'bcm43xx_wx_get_sensitivity' defined but not used
/opt/airport/trunk/driver/bcm43xx_wx.c:526: warning: 'bcm43xx_wx_set_retry' defined but not used
/opt/airport/trunk/driver/bcm43xx_wx.c:536: warning: 'bcm43xx_wx_get_retry' defined but not used
/opt/airport/trunk/driver/bcm43xx_wx.c:606: warning: 'bcm43xx_wx_set_power' defined but not used
/opt/airport/trunk/driver/bcm43xx_wx.c:616: warning: 'bcm43xx_wx_get_power' defined but not used
make[2]: *** [/opt/airport/trunk/driver/bcm43xx_wx.o] Error 1
make[1]: *** [_module_/opt/airport/trunk/driver] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.15.1'
make: *** [modules] Error 2

_________________
Powered by gentoo · Linux User #324026 ·
X.Org 6.8.1 | Gnome 2.8.2 | XFS | Kernel 2.6.9-gentoo
PIII 866Mhz | GFORCE4 MX440 64Mb-DDR | SoundBlaster Live 1024
Back to top
View user's profile Send private message
Kuan
Tux's lil' helper
Tux's lil' helper


Joined: 03 Oct 2004
Posts: 79
Location: Spain, ../Zaragoza

PostPosted: Thu Jan 19, 2006 7:51 pm    Post subject: Reply with quote

daker, are you trying to build the SoftMAC source fetched with mercurial?

I have had those errors too, and could solve that problem with the daily snapshot from http://softmac.sipsolutions.net.
Here is my output (without warnings):
Code:
~ bcm43xx-20060119 # SOFTMAC_DIR=/usr/local/src/softmac-snapshot make
make -C /lib/modules/2.6.15-gentoo-r1/build M=/usr/local/src/bcm43xx-20060119 modules
make[1]: Entering directory `/usr/src/linux-2.6.15-gentoo-r1'
  CC [M]  /usr/local/src/bcm43xx-20060119/bcm43xx_main.o
  CC [M]  /usr/local/src/bcm43xx-20060119/bcm43xx_dma.o
  CC [M]  /usr/local/src/bcm43xx-20060119/bcm43xx_debugfs.o
  CC [M]  /usr/local/src/bcm43xx-20060119/bcm43xx_radio.o
  CC [M]  /usr/local/src/bcm43xx-20060119/bcm43xx_phy.o
  CC [M]  /usr/local/src/bcm43xx-20060119/bcm43xx_power.o
  CC [M]  /usr/local/src/bcm43xx-20060119/bcm43xx_wx.o
  CC [M]  /usr/local/src/bcm43xx-20060119/bcm43xx_pio.o
  CC [M]  /usr/local/src/bcm43xx-20060119/bcm43xx_ilt.o
  CC [M]  /usr/local/src/bcm43xx-20060119/bcm43xx_leds.o
  LD [M]  /usr/local/src/bcm43xx-20060119/bcm43xx.o
  Building modules, stage 2.
  MODPOST
  CC      /usr/local/src/bcm43xx-20060119/bcm43xx.mod.o
  LD [M]  /usr/local/src/bcm43xx-20060119/bcm43xx.ko
make[1]: Leaving directory `/usr/src/linux-2.6.15-gentoo-r1'
Back to top
View user's profile Send private message
KeyserZero
n00b
n00b


Joined: 21 Mar 2005
Posts: 68

PostPosted: Thu Jan 19, 2006 7:57 pm    Post subject: Reply with quote

Hey!

I have the same error as you!

Try the 20060110 version of the driver, then it will work!

Greetz
_________________
www.ruby-lang.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum