new kernel 2.6.27.25 made wireless modules to fail.

hi guys, with new kernel i’m no more able to compile broadcom-wl nor madwifi drivers… ideas (it fail in new flavour ec2):

broadcom fail:

+ for flavor in debug default ec2 pae trace vmi xen
+ rm -rf obj/ec2
+ cp -r source obj/ec2
+ make -C /usr/src/linux-obj/i586/ec2 modules M=/usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/ec2
make: Entering directory `/usr/src/linux-2.6.27.25-0.1-obj/i386/ec2'
make -C ../../../linux-2.6.27.25-0.1 O=/usr/src/linux-2.6.27.25-0.1-obj/i386/ec2/. modules
  CC [M]  /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/ec2/src/wl/sys/wl_linux.o
  CC [M]  /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/ec2/src/wl/sys/wl_iw.o
/usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/ec2/src/wl/sys/wl_iw.c:2131: error: 'wl_get_wireless_stats' undeclared here (not in a function)
make[3]: *** [/usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/ec2/src/wl/sys/wl_iw.o] Error 1
make[2]: *** [_module_/usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/ec2] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
make: Leaving directory `/usr/src/linux-2.6.27.25-0.1-obj/i386/ec2'
error: Bad exit status from /var/tmp/rpm-tmp.21662 (%build)

madwifi:

+ for flavor in debug default ec2 pae trace vmi xen                                                                                                   
+ rm -rf obj/ec2                                                                                                                                      
+ cp -r madwifi-hal-0.10.5.6-r3942-20090205 obj/ec2                                                                                                   
+ make -k -C /usr/src/linux-obj/i586/ec2 modules M=/usr/src/packages/BUILD/obj/ec2 KERNELPATH=/usr/src/linux-obj/i586/ec2                             
make: Entering directory `/usr/src/linux-2.6.27.25-0.1-obj/i386/ec2'                                                                                  
make -C ../../../linux-2.6.27.25-0.1 O=/usr/src/linux-2.6.27.25-0.1-obj/i386/ec2/. modules                                                            
  CC [M]  /usr/src/packages/BUILD/obj/ec2/ath/if_ath.o                                                                                                
  CC [M]  /usr/src/packages/BUILD/obj/ec2/ath/if_ath_radar.o                                                                                          
  CC [M]  /usr/src/packages/BUILD/obj/ec2/ath/if_ath_hal_extensions.o                                                                                 
  CC [M]  /usr/src/packages/BUILD/obj/ec2/ath/if_ath_pci.o                                                                                            
  LD [M]  /usr/src/packages/BUILD/obj/ec2/ath/ath_pci.o                                                                                               
  CC [M]  /usr/src/packages/BUILD/obj/ec2/ath_hal/ah_os.o                                                                                             
  HOSTCC  /usr/src/packages/BUILD/obj/ec2/ath_hal/uudecode                                                                                            
  UUDECODE /usr/src/packages/BUILD/obj/ec2/ath_hal/i386-elf._hal.o                                                                                    
  UNMANGLE /usr/src/packages/BUILD/obj/ec2/ath_hal/i386-elf.hal.o                                                                                     
  LD [M]  /usr/src/packages/BUILD/obj/ec2/ath_hal/ath_hal.o                                                                                           
  CC [M]  /usr/src/packages/BUILD/obj/ec2/ath_rate/amrr/amrr.o                                                                                        
  LD [M]  /usr/src/packages/BUILD/obj/ec2/ath_rate/amrr/ath_rate_amrr.o                                                                               
  CC [M]  /usr/src/packages/BUILD/obj/ec2/ath_rate/minstrel/minstrel.o                                                                                
  LD [M]  /usr/src/packages/BUILD/obj/ec2/ath_rate/minstrel/ath_rate_minstrel.o                                                                       
  CC [M]  /usr/src/packages/BUILD/obj/ec2/ath_rate/onoe/onoe.o                                                                                        
  LD [M]  /usr/src/packages/BUILD/obj/ec2/ath_rate/onoe/ath_rate_onoe.o                                                                               
  CC [M]  /usr/src/packages/BUILD/obj/ec2/ath_rate/sample/sample.o                                                                                    
  LD [M]  /usr/src/packages/BUILD/obj/ec2/ath_rate/sample/ath_rate_sample.o                                                                           
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/if_media.o                                                                                         
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_skb.o                                                                                    
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211.o                                                                                        
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_beacon.o                                                                                 
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_crypto.o                                                                                 
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_crypto_none.o                                                                            
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_input.o                                                                                  
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_node.o                                                                                   
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_output.o                                                                                 
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_power.o                                                                                  
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_proto.o                                                                                  
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_scan.o                                                                                   
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_wireless.o                                                                               
/usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_wireless.c: In function 'ieee80211_ioctl_vattach':                                                 
/usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_wireless.c:5861: error: 'struct net_device' has no member named 'wireless_handlers'                
make[4]: *** [/usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_wireless.o] Error 1                                                                  
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_linux.o                                                                                  
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_monitor.o                                                                                
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_rate.o                                                                                   
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_acl.o
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_crypto_ccmp.o
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_scan_ap.o
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_scan_sta.o
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_crypto_tkip.o
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_crypto_wep.o
  CC [M]  /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_xauth.o
make[4]: Target `__build' not remade because of errors.
make[3]: *** [/usr/src/packages/BUILD/obj/ec2/net80211] Error 2
make[3]: Target `__build' not remade because of errors.
make[2]: *** [_module_/usr/src/packages/BUILD/obj/ec2] Error 2
make[2]: Target `modules' not remade because of errors.
make[1]: *** [sub-make] Error 2
make[1]: Target `modules' not remade because of errors.
make: *** [all] Error 2
make: Target `modules' not remade because of errors.
make: Leaving directory `/usr/src/linux-2.6.27.25-0.1-obj/i386/ec2'
error: Bad exit status from /var/tmp/rpm-tmp.44768 (%build)


any idea? i’m still not able to find a fix

anubisg1 wrote:
> any idea? i’m still not able to find a fix

What wireless device/drivers do you use? If they are not standard
“in-kernel” drivers, then you will have to rebuild them.

Hi,

I have the same problems with the madwifi drivers.
Firstly, I installed directly from the smart repository.
I blacklisted the ath5k and did a modprobe ath_pci.

lspci listed ath_pci and ath_hal and something else I don’t remember, but No success.

Then, I used the rpm source madwifi-0.9.4-1.src.rpm from
Index of /suse/11.1/src and issued the command:

rpmbuild --rebuild madwifi-0.9.4-1.src.rpm

I have the gcc, kernel-sources, linux-kernel-headers installed.

The error message is:

===========snip============

CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_output.o
CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_power.o
CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_proto.o
CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_scan.o
CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_wireless.o
/usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_wireless.c: In function ‘ieee80211_ioctl_vattach’:
/usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_wireless.c:5445: error: ‘struct net_device’ has no member named ‘wireless_handlers’
make[4]: *** [/usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_wireless.o] Error 1
CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_linux.o
CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_monitor.o
CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_rate.o
CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_acl.o
CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_crypto_ccmp.o
CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_scan_ap.o
CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_scan_sta.o
CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_crypto_tkip.o
CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_crypto_wep.o
CC [M] /usr/src/packages/BUILD/obj/ec2/net80211/ieee80211_xauth.o
make[4]: Target __build' not remade because of errors. make[3]: *** [/usr/src/packages/BUILD/obj/ec2/net80211] Error 2 make[3]: Target __build’ not remade because of errors.
make[2]: *** [module/usr/src/packages/BUILD/obj/ec2] Error 2
make[2]: Target modules' not remade because of errors. make[1]: *** [sub-make] Error 2 make[1]: Target modules’ not remade because of errors.
make: *** [all] Error 2
make: Target modules' not remade because of errors. make: Leaving directory /usr/src/linux-2.6.27.25-0.1-obj/i386/ec2’
error: Bad exit status from /var/tmp/rpm-tmp.78388 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.78388 (%build)
========snip==================

Any help would be greatly appreciated…

kL

hi, you miss understood,

i’m rebuilding kmp packages with madwifi and broadcom-wl drivers…

since 2.6.27.21 kernel everything was working fine, now new added flavour “ec2” fail building

Same problem

openSUSE 11.1 kernel 2.6.27.25-0.1-pae
installed kernel-sources kernel-syms module-init-tools before exec ‘rpmbuild --rebuild broadcom-wl-5.10.91.9-6.pm.13.src.rpm’

does anyone find solution ?


Устанавливается broadcom-wl-5.10.91.9-6.pm.13.src.rpm
предупреждение: InstallSourcePackage: Заголовок V3 DSA signature: NOKEY, key ID 9a795806
Выполняется(%prep): /bin/sh -e /var/tmp/rpm-tmp.55960
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf hybrid-portsrc-5_10_91_9
+ /usr/bin/bzip2 -dc /usr/src/packages/SOURCES/hybrid-portsrc-5_10_91_9.tar.bz2
+ tar -xf -
+ STATUS=0
+ '' 0 -ne 0 ']'
+ cd hybrid-portsrc-5_10_91_9
++ /usr/bin/id -u
+ '' 1000 = 0 ']'
++ /usr/bin/id -u
+ '' 1000 = 0 ']'
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (broadcom-wl-5.10.27.6-hidden-essid.patch):'
Patch #0 (broadcom-wl-5.10.27.6-hidden-essid.patch):
+ patch -p0 -s
+ mv lib/wlc_hybrid.o_shipped.32 lib/wlc_hybrid.o_shipped
+ set -- lib Makefile src
+ mkdir source
+ mv lib Makefile src source/
+ mkdir obj
+ exit 0
Выполняется(%build): /bin/sh -e /var/tmp/rpm-tmp.11732
+ umask 022
+ cd /usr/src/packages/BUILD
+ /bin/rm -rf /var/tmp/broadcom-wl-5.10.91.9-build
++ dirname /var/tmp/broadcom-wl-5.10.91.9-build
+ /bin/mkdir -p /var/tmp
+ /bin/mkdir /var/tmp/broadcom-wl-5.10.91.9-build
+ cd hybrid-portsrc-5_10_91_9
+ export 'EXTRA_CFLAGS=-DVERSION=\"5.10.91.9\"'
+ EXTRA_CFLAGS='-DVERSION=\"5.10.91.9\"'
+ for flavor in debug default ec2 pae trace vmi xen
+ rm -rf obj/debug
+ cp -r source obj/debug
+ make -C /usr/src/linux-obj/i586/debug modules M=/usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/debug
make: Entering directory `/usr/src/linux-2.6.27.25-0.1-obj/i386/debug'
make -C ../../../linux-2.6.27.25-0.1 O=/usr/src/linux-2.6.27.25-0.1-obj/i386/debug/. modules
  CC [M]  /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/debug/src/wl/sys/wl_linux.o
  CC [M]  /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/debug/src/wl/sys/wl_iw.o
  CC [M]  /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/debug/src/shared/linux_osl.o
  LD [M]  /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/debug/wl.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: modpost: missing MODULE_LICENSE() in /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/debug/wl.o
see include/linux/module.h for more information
  CC      /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/debug/wl.mod.o
  LD [M]  /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/debug/wl.ko
make: Leaving directory `/usr/src/linux-2.6.27.25-0.1-obj/i386/debug'
+ for flavor in debug default ec2 pae trace vmi xen
+ rm -rf obj/default
+ cp -r source obj/default
+ make -C /usr/src/linux-obj/i586/default modules M=/usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/default
make: Entering directory `/usr/src/linux-2.6.27.25-0.1-obj/i386/default'
make -C ../../../linux-2.6.27.25-0.1 O=/usr/src/linux-2.6.27.25-0.1-obj/i386/default/. modules
  CC [M]  /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/default/src/wl/sys/wl_linux.o
  CC [M]  /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/default/src/wl/sys/wl_iw.o
  CC [M]  /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/default/src/shared/linux_osl.o
  LD [M]  /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/default/wl.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: modpost: missing MODULE_LICENSE() in /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/default/wl.o
see include/linux/module.h for more information
  CC      /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/default/wl.mod.o
  LD [M]  /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/default/wl.ko
make: Leaving directory `/usr/src/linux-2.6.27.25-0.1-obj/i386/default'
+ for flavor in debug default ec2 pae trace vmi xen
+ rm -rf obj/ec2
+ cp -r source obj/ec2
+ make -C /usr/src/linux-obj/i586/ec2 modules M=/usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/ec2
make: Entering directory `/usr/src/linux-2.6.27.25-0.1-obj/i386/ec2'
make -C ../../../linux-2.6.27.25-0.1 O=/usr/src/linux-2.6.27.25-0.1-obj/i386/ec2/. modules
  CC [M]  /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/ec2/src/wl/sys/wl_linux.o
  CC [M]  /usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/ec2/src/wl/sys/wl_iw.o
/usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/ec2/src/wl/sys/wl_iw.c:2131: error: ‘wl_get_wireless_stats’ undeclared here (not in a function)
make[3]: *** [/usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/ec2/src/wl/sys/wl_iw.o] Ошибка 1
make[2]: *** [_module_/usr/src/packages/BUILD/hybrid-portsrc-5_10_91_9/obj/ec2] Ошибка 2
make[1]: *** [sub-make] Ошибка 2
make: *** [all] Ошибка 2
make: Leaving directory `/usr/src/linux-2.6.27.25-0.1-obj/i386/ec2'
ошибка: Неверный код возврата из /var/tmp/rpm-tmp.11732 (%build)


Ошибки сборки пакетов:
    InstallSourcePackage: Заголовок V3 DSA signature: NOKEY, key ID 9a795806
    Неверный код возврата из /var/tmp/rpm-tmp.11732 (%build)