SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been trying to follow this guide for installing the wireless driver for my Broadcom card BCM43224 and when trying to run the SlackBuild for broadcom-sta, it gives me this after the extraction:
Code:
make: Entering directory `/usr/src/linux-3.2.13'
Wireless Extension is the only possible API for this kernel version
Using Wireless Extension API
make: Leaving directory `/usr/src/linux-3.2.13'
make: Entering directory `/usr/src/linux-3.2.13'
Wireless Extension is the only possible API for this kernel version
Using Wireless Extension API
LD /tmp/SBo/build-broadcom-sta/built-in.o
CC [M] /tmp/SBo/build-broadcom-sta/src/shared/linux_osl.o
CC [M] /tmp/SBo/build-broadcom-sta/src/wl/sys/wl_linux.o
/tmp/SBo/build-broadcom-sta/src/wl/sys/wl_linux.c:388:2: error: unknown field 'ndo_set_multicast_list' specified in initializer
/tmp/SBo/build-broadcom-sta/src/wl/sys/wl_linux.c:388:2: warning: initialization from incompatible pointer type [enabled by default]
/tmp/SBo/build-broadcom-sta/src/wl/sys/wl_linux.c:388:2: warning: (near initialization for 'wl_netdev_ops.ndo_validate_addr') [enabled by default]
make[1]: *** [/tmp/SBo/build-broadcom-sta/src/wl/sys/wl_linux.o] Error 1
make: *** [_module_/tmp/SBo/build-broadcom-sta] Error 2
make: Leaving directory `/usr/src/linux-3.2.13'
I've googled bits of this, and it seems that perhaps the package might be outdated? However, I get the same error when trying to compile the driver on my own using the files from the Broadcom webpage:
Code:
root@secondfiddle:/home/jmgg/Downloads/hybrid_wl# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/linux-3.2.13'
Wireless Extension is the only possible API for this kernel version
Using Wireless Extension API
LD /home/jmgg/Downloads/hybrid_wl/built-in.o
CC [M] /home/jmgg/Downloads/hybrid_wl/src/shared/linux_osl.o
CC [M] /home/jmgg/Downloads/hybrid_wl/src/wl/sys/wl_linux.o
/home/jmgg/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:388:2: error: unknown field 'ndo_set_multicast_list' specified in initializer
/home/jmgg/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:388:2: warning: initialization from incompatible pointer type [enabled by default]
/home/jmgg/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:388:2: warning: (near initialization for 'wl_netdev_ops.ndo_validate_addr') [enabled by default]
make[2]: *** [/home/jmgg/Downloads/hybrid_wl/src/wl/sys/wl_linux.o] Error 1
make[1]: *** [_module_/home/jmgg/Downloads/hybrid_wl] Error 2
make[1]: Leaving directory `/usr/src/linux-3.2.13'
make: *** [all] Error 2
Could anyone give me an pointer as to how to fix this?
Click here to see the post LQ members have rated as the most helpful post in this thread.
You need the firmware, the firmware cutter, and the driver. When I tried, I had the cutter and the driver, but didn't have the firmware--that was the third leg of the stool. It took helpful members from LQ to help me fill in that blank.
@frankbell Not sure if it might have been something I did wrong, but installing the firmware and the cutter didn't seem to fix the issue. Though I'm sure somehow it helped solve it in the end Thank you for your help
@hotchili Your patch was what seemed to do the trick. I opened up the file in vim, made the adjustment (I didn't quite understand how to apply the patch other than manually making the change, perhaps you could explain here for future reference?) and tried to make the module again. Worked perfectly Thank you very much for your help.
@hotchili Your patch was what seemed to do the trick. I opened up the file in vim, made the adjustment (I didn't quite understand how to apply the patch other than manually making the change, perhaps you could explain here for future reference?) and tried to make the module again. Worked perfectly Thank you very much for your help.
Sure. What I have posted is the output of the command "diff", it compares files and prints the difference.
This could be put into a file lets say fix-multicast.diff and then another utility "patch" can use this file.
In this case I have added to the broadcom-sta.SlackBuild, after the package gets extracted:
Code:
patch -p1 < $CWD/fix-multicast.diff
Now the Slackbuild fixes the file itself so that the compilation works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.