can not compile broadcom-sta on ubuntu 14.10 3.16 kernel

Asked by Alireza Mazarei

When i want to install broadcom driver and use (m-a a-i broadcom-sta-source), error happened,

for templ in ; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/3.16.0-23-generic/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/##KVERS##/3.16.0-23-generic/g ;s/#KVERS#/3.16.0-23-generic/g ; s/_KVERS_/3.16.0-23-generic/g ; s/##KDREV##/3.16.0-23.31/g ; s/#KDREV#/3.16.0-23.31/g ; s/_KDREV_/3.16.0-23.31/g ' < $templ > ${templ%.modules.in}; \
  done
dh_clean
/usr/bin/make clean KBUILD=/usr/src/linux KVERS=3.16.0-23-generic
make[1]: Entering directory '/usr/src/modules/broadcom-sta'
KBUILD_NOPEDANTIC=1 make -C /lib/modules/3.16.0-23-generic/build M=/usr/src/modules/broadcom-sta clean
make[2]: Entering directory '/usr/src/linux-headers-3.16.0-23-generic'
CFG80211 API is prefered for this kernel version
make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-23-generic'
make[1]: Leaving directory '/usr/src/modules/broadcom-sta'
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory '/usr/src/modules/broadcom-sta'
for templ in ; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/3.16.0-23-generic/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/##KVERS##/3.16.0-23-generic/g ;s/#KVERS#/3.16.0-23-generic/g ; s/_KVERS_/3.16.0-23-generic/g ; s/##KDREV##/3.16.0-23.31/g ; s/#KDREV#/3.16.0-23.31/g ; s/_KDREV_/3.16.0-23.31/g ' < $templ > ${templ%.modules.in}; \
  done
dh_clean
/usr/bin/make clean KBUILD=/usr/src/linux KVERS=3.16.0-23-generic
make[2]: Entering directory '/usr/src/modules/broadcom-sta'
KBUILD_NOPEDANTIC=1 make -C /lib/modules/3.16.0-23-generic/build M=/usr/src/modules/broadcom-sta clean
make[3]: Entering directory '/usr/src/linux-headers-3.16.0-23-generic'
CFG80211 API is prefered for this kernel version
/usr/src/modules/broadcom-sta/Makefile:85: Neither CFG80211 nor Wireless Extension is enabled in kernel
make[3]: Leaving directory '/usr/src/linux-headers-3.16.0-23-generic'
make[2]: Leaving directory '/usr/src/modules/broadcom-sta'
make[1]: Nothing to be done for 'kdist_config'.
dh_testdir
dh_testroot
dh_prep
# Build and install the module
make -C /usr/src/linux M=/usr/src/modules/broadcom-sta
make[2]: Entering directory '/usr/src/linux-headers-3.16.0-23-generic'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
Kernel architecture is X86_64
  LD /usr/src/modules/broadcom-sta/built-in.o
  CC [M] /usr/src/modules/broadcom-sta/src/shared/linux_osl.o
  CC [M] /usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.o
/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.c: In function ‘wl_dump_ver’:
/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.c:2039:3: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
   __DATE__, __TIME__, EPI_VERSION_STR);
   ^
/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.c:2039:13: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
   __DATE__, __TIME__, EPI_VERSION_STR);
             ^
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target '/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.o' failed
make[3]: *** [/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.o] Error 1
Makefile:1345: recipe for target '_module_/usr/src/modules/broadcom-sta' failed
make[2]: *** [_module_/usr/src/modules/broadcom-sta] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-23-generic'
debian/rules:16: recipe for target 'binary-modules' failed
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory '/usr/src/modules/broadcom-sta'
/usr/share/modass/include/common-rules.make:56: recipe for target 'kdist_build' failed
make: *** [kdist_build] Error 2

root@alireza:# apt-cache policy linux-headers-3.16.0-23
linux-headers-3.16.0-23:
  Installed: 3.16.0-23.31
  Candidate: 3.16.0-23.31
  Version table:
 *** 3.16.0-23.31 0
        500 http://archive.ubuntu.com/ubuntu/ utopic/main amd64 Packages

Any ideas ?!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Why are you compiling? There are nice packages for Broadcom wireless chips.
https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx

Lots easier.

Revision history for this message
Alireza Mazarei (alirezaimi) said :
#2

I always use this way to install on debian and ubuntu distro,
for now i installed bcmwl-kernel-source and everythings looks fine until now !
Thanks.

Can you help with this problem?

Provide an answer of your own, or ask Alireza Mazarei for more information if necessary.

To post a message you must log in.