Bug 438 - dkms-broadcom-wl failes to build
Summary: dkms-broadcom-wl failes to build
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-18 19:47 CET by Andres Kaaber
Modified: 2011-03-20 18:40 CET (History)
3 users (show)

See Also:
Source RPM: dkms-broadcom-wl
CVE:
Status comment:


Attachments
Diff between old and new file (328 bytes, patch)
2011-03-20 12:52 CET, Lucien XU
Details | Diff

Description Andres Kaaber 2011-03-18 19:47:57 CET
Description of problem:
dkms-broadcom-wl failes to build

[root@kaaber Allalaadimised]# urpmi dkms-broadcom-wl-5.100.82.38-1.mga1.i586.rpm 


dkms-broadcom-wl-5.100.82.38-1.mga1.i586.rpm paigaldamine
Valmistumine...                  #################################################################################
      1/1: dkms-broadcom-wl      #################################################################################
+ /usr/sbin/dkms --rpm_safe_upgrade add -m broadcom-wl -v 5.100.82.38-1.mga1

Creating symlink /var/lib/dkms/broadcom-wl/5.100.82.38-1.mga1/source ->
                 /usr/src/broadcom-wl-5.100.82.38-1.mga1

DKMS: add Completed.
+ /usr/sbin/dkms --rpm_safe_upgrade build -m broadcom-wl -v 5.100.82.38-1.mga1

Preparing kernel 2.6.37.4-desktop-1.mga for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper....
using /proc/config.gz
make oldconfig....
make prepare....

Building module:
cleaning build area....
make KERNELRELEASE=2.6.37.4-desktop-1.mga -C /lib/modules/2.6.37.4-desktop-1.mga/build M=$(pwd)....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.37.4-desktop-1.mga (i586)
Consult the make.log in the build directory
/var/lib/dkms/broadcom-wl/5.100.82.38-1.mga1/build/ for more information.
+ /usr/sbin/dkms --rpm_safe_upgrade install -m broadcom-wl -v 5.100.82.38-1.mga1

Error! Could not locate wl.ko.gz for module broadcom-wl in the DKMS tree.
You must run a dkms build for kernel 2.6.37.4-desktop-1.mga (i586) first.
warning: %post(dkms-broadcom-wl-5.100.82.38-1.mga1.i586) scriptlet failed, exit status 4
[root@kaaber Allalaadimised]#

Reproducible: 

Steps to Reproduce:
Comment 1 Manuel Hiebel 2011-03-18 21:36:27 CET
Same here. ( x86_64 )

CC: (none) => manuel
Hardware: i586 => All
Source RPM: (none) => dkms-broadcom-wl

Comment 2 Lucien XU 2011-03-20 12:52:59 CET
Created attachment 154 [details]
Diff between old and new file
Comment 3 Lucien XU 2011-03-20 12:53:22 CET
I think that there is some solution.
The broadcom code is no longer adapted for new kernels.
When I tried to build it manually, I faced some problems.

The solution was to replace a line in./src/wl/sys/wl_linux.c.
At line 485, replace init_MUTEX(&wl->sem); with sema_init(&wl->sem , 1);

I have made a diff file from the old file and the new file.
(See previous post)

CC: (none) => sfietkonstantin

D Morgan 2011-03-20 12:57:38 CET

CC: (none) => dmorganec
Assignee: bugsquad => tmb

Comment 4 Thomas Backlund 2011-03-20 18:40:32 CET
A fixed broadcom-wl-5.100.82.38-2.mga1 is submitted.

Thanks for the report

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.