Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390627 - net-wireless/broadcom-sta-5.100.82.112-r1 w/ linux-3.2 - work/src/wl/sys/wl_linux.c:390:2: error: unknown field ‘ndo_set_multicast_list’ specified in initializer
Summary: net-wireless/broadcom-sta-5.100.82.112-r1 w/ linux-3.2 - work/src/wl/sys/wl_l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: MATSUU Takuto (RETIRED)
URL: http://git.kernel.org/?p=linux/kernel...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-15 16:42 UTC by Jure Repinc
Modified: 2011-11-21 16:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jure Repinc 2011-11-15 16:42:16 UTC
I tried to emerge the broadcom driver but it fails when compiling with this error:
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) net-wireless/broadcom-sta-5.100.82.112-r1
>>> Failed to emerge net-wireless/broadcom-sta-5.100.82.112-r1, Log file:
>>>  '/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 3.68, 1.82, 0.81
 * Package:    net-wireless/broadcom-sta-5.100.82.112-r1
 * Repository: gentoo
 * Maintainer: matsuu@gentoo.org
 * USE:        amd64 consolekit elibc_glibc kernel_linux multilib policykit userland_GNU
 * FEATURES:   preserve-libs sandbox splitdebug
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     3.2.0-rc1+
 * Checking for suitable kernel configuration options...
 [ ok ]
 * Applying broadcom-sta-5.10.91.9-license.patch ...
 [ ok ]
 * Applying broadcom-sta-5.100.82.38-gcc.patch ...
 [ ok ]
 * Applying broadcom-sta-5.100.82.111-linux-3.0.patch ...
 [ ok ]
 * Applying broadcom-sta-5.100.82.112-linux-2.6.39.patch ...
 [ ok ]                                                                                                                                                                                         
ln: ni mogoče ustvariti simbolne povezave »Module.symvers«: File exists                                                                                                                         
 * Preparing wl module                                                                                                                                                                          
make: Entering directory `/usr/src/linux-git'                                                                                                                                                   
CFG80211 API is prefered for this kernel version                                                                                                                                                
Using CFG80211 API                                                                                                                                                                              
  CC [M]  /var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/work/src/shared/linux_osl.o                                                                                                
  CC [M]  /var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/work/src/wl/sys/wl_iw.o                                                                                                    
  CC [M]  /var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/work/src/wl/sys/wl_linux.o                                                                                                 
  CC [M]  /var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/work/src/wl/sys/wl_cfg80211.o                                                                                              
/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/work/src/wl/sys/wl_linux.c:390:2: error: unknown field ‘ndo_set_multicast_list’ specified in initializer                             
/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/work/src/wl/sys/wl_linux.c:390:2: warning: initialization from incompatible pointer type [enabled by default]                        
/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/work/src/wl/sys/wl_linux.c:390:2: warning: (near initialization for ‘wl_netdev_ops.ndo_validate_addr’) [enabled by default]          
make[1]: *** [/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/work/src/wl/sys/wl_linux.o] Error 1                                                                                    
make[1]: *** Waiting for unfinished jobs....                                                                                                                                                    
make: *** [wl.ko] Error 2                                                                                                                                                                       
make: Leaving directory `/usr/src/linux-git'                                                                                                                                                    
emake failed                                                                                                                                                                                    
 * ERROR: net-wireless/broadcom-sta-5.100.82.112-r1 failed (compile phase):                                                                                                                     
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  -C /usr/src/linux M=/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/work wl.ko
 * 
 * Call stack:
 *     ebuild.sh, line   84:  Called src_compile
 *   environment, line 3409:  Called linux-mod_src_compile
 *   environment, line 2631:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                               CROSS_COMPILE=${CHOST}-                                                 LDFLAGS=\"$(get_abi_LDFLAGS)\"                                          ${BUILD_FIXES}                                          ${BUILD_PARAMS}                                                 ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 * 
 * If you need support, post the output of 'emerge --info =net-wireless/broadcom-sta-5.100.82.112-r1',
 * the complete build log and the output of 'emerge -pqv =net-wireless/broadcom-sta-5.100.82.112-r1'.
 * The complete build log is located at '/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/temp/environment'.
 * S: '/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/work'

 * Messages for package net-wireless/broadcom-sta-5.100.82.112-r1:

 * ERROR: net-wireless/broadcom-sta-5.100.82.112-r1 failed (compile phase):
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  -C /usr/src/linux M=/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/work wl.ko
 * 
 * Call stack:
 *     ebuild.sh, line   84:  Called src_compile
 *   environment, line 3409:  Called linux-mod_src_compile
 *   environment, line 2631:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                               CROSS_COMPILE=${CHOST}-                                                 LDFLAGS=\"$(get_abi_LDFLAGS)\"                                          ${BUILD_FIXES}                                          ${BUILD_PARAMS}                                                 ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 * 
 * If you need support, post the output of 'emerge --info =net-wireless/broadcom-sta-5.100.82.112-r1',
 * the complete build log and the output of 'emerge -pqv =net-wireless/broadcom-sta-5.100.82.112-r1'.
 * The complete build log is located at '/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/temp/environment'.
 * S: '/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.112-r1/work'

Reproducible: Always

Steps to Reproduce:
1. Use kernel 3.2.0-rc1 or later
2. try to emerge broadcom-sta
Actual Results:  
Compilation fails

Expected Results:  
The driver should compile without errors

It looks like the compilation error is because in kernel commit b81693d9149c598302e8eb9c20cb20330d922c8e the callback ndo_set_multicast_list was removed:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b81693d9149c598302e8eb9c20cb20330d922c8e
Comment 1 MATSUU Takuto (RETIRED) gentoo-dev 2011-11-21 16:03:41 UTC
Fixed in cvs. 5.100.82.112-r2