View previous topic :: View next topic |
Author |
Message |
dolphinaura Tux's lil' helper
Joined: 13 Jul 2010 Posts: 145
|
Posted: Sun Dec 18, 2011 6:58 pm Post subject: rt-sources + broadcom-sta |
|
|
I am currently running the latest rt-sources, and I cannot compile broadcom-sta, which is the only working driver for my Network controller: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01).
Code: |
>>> Emerging (1 of 1) net-wireless/broadcom-sta-5.100.82.38-r1
* hybrid-portsrc_x86_64-v5_100_82_38.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/3.0.9-rt25-sandyd/build
* Found sources for kernel version:
* 3.0.9-rt25-sandyd
* Checking for suitable kernel configuration options...
* CONFIG_MAC80211: should not be set. But it is.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
>>> Unpacking source...
>>> Unpacking hybrid-portsrc_x86_64-v5_100_82_38.tar.gz to /var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/work
>>> Source unpacked in /var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/work
>>> Preparing source in /var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/work ...
* 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.38-linux-2.6.37.patch ... [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/work ...
ln: failed to create symbolic link `Module.symvers': File exists
* Preparing wl module
make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' -C /usr/src/linux M=/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/work wl.ko
make: Entering directory `/usr/src/linux-3.0.9-rt25'
CC [M] /var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/work/src/shared/linux_osl.o
CC [M] /var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/work/src/wl/sys/wl_linux.o
CC [M] /var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/work/src/wl/sys/wl_iw.o
LD [M] /var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/work/wl.o
MODPOST 1 modules
FATAL: modpost: GPL-incompatible module wl.ko uses GPL-only symbol 'migrate_enable'
make[1]: *** [__modpost] Error 1
make: *** [wl.ko] Error 2
make: Leaving directory `/usr/src/linux-3.0.9-rt25'
emake failed
* ERROR: net-wireless/broadcom-sta-5.100.82.38-r1 failed (compile phase):
* Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=-m elf_x86_64 -C /usr/src/linux M=/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/work wl.ko
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 3223: Called linux-mod_src_compile
* environment, line 2426: 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.38-r1',
* the complete build log and the output of 'emerge -pqv =net-wireless/broadcom-sta-5.100.82.38-r1'.
* The complete build log is located at '/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/temp/environment'.
* S: '/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/work'
>>> Failed to emerge net-wireless/broadcom-sta-5.100.82.38-r1, Log file:
>>> '/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38-r1/temp/build.log'
* IMPORTANT: 9 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
| [/code] _________________ ------------------------
Dolphinaura
http://twitter.com/dolphinaura
http://dolphinaura.com |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Sun Dec 18, 2011 9:29 pm Post subject: |
|
|
You need to replace EXPORT_SYMBOL_GPL(migrate_enable) with EXPORT_SYMBOL(migrate_enable) in kernel/sched.c. Also do this with migrate_disable and all other symbols where this problem comes up.
Note that you are not allowed to redistribute the resulting binaries. |
|
Back to top |
|
|
dolphinaura Tux's lil' helper
Joined: 13 Jul 2010 Posts: 145
|
Posted: Sun Dec 18, 2011 11:44 pm Post subject: |
|
|
chithanh wrote: | You need to replace EXPORT_SYMBOL_GPL(migrate_enable) with EXPORT_SYMBOL(migrate_enable) in kernel/sched.c. Also do this with migrate_disable and all other symbols where this problem comes up.
Note that you are not allowed to redistribute the resulting binaries. |
Ah! That does it.
Thanks! _________________ ------------------------
Dolphinaura
http://twitter.com/dolphinaura
http://dolphinaura.com |
|
Back to top |
|
|
|