mrmylanman wrote:
Code: Select all
mylan-laptop hybrid-portsrc_x86_64-v5_100_82_38 # make
/home/mylan/Downloads/hybrid-portsrc_x86_64-v5_100_82_38/src/wl/sys/wl_linux.c: In function ‘wl_attach’:
/home/mylan/Downloads/hybrid-portsrc_x86_64-v5_100_82_38/src/wl/sys/wl_linux.c:485: error: implicit declaration of function ‘init_MUTEX’
Searching Google using the term
"error: implicit declaration of function ‘init_MUTEX’" and found several pages, the first half dozen seemed to all be related to graphics drivers. I narrowed the search by adding
broadcom as a term and found something very similar on a Gentoo site
http://bugs.gentoo.org/350196
Code: Select all
In function ‘wl_attach’:
/var/tmp/portage/net-wireless/broadcom-sta-5.100.82.38/work/src/wl/sys/wl_linux.c:487:3:
error: implicit declaration of function ‘init_MUTEX’
make[1]: ***
He offered this solution:
I solved the problem by changing line 487 from
init_MUTEX(&wl->sem);
into
sema_init(&wl->sem, 1);
This is beyond me, at this time, but I hope it helps you.
EDIT: I would agree with richyrich. In the search results relating to the graphics drivers, a number of them mention semaphore.h. And frequently they concerned people using a non-stock kernel or compiling their own kernel.