Post
Topic
Board Mining software (miners)
Re: CGMINER ASIC FPGA GPU overc monit fanspd RPC linux/win/osx/mip/r-pi 3.0.0
by
Marrs
on 08/05/2013, 15:56:19 UTC
The last version of cgminer I was able to compile on OS/X was 2.10.5, since then there has been a change to usbutils.c that has prevented it being compiled.

the error is:

usbutils.c:805: error: redefinition of ‘union semun’

I removed the offending code

and tried to recompile and got

usbutils.c: In function ‘cgminer_usb_lock_bd’:
usbutils.c:908: error: ‘union semun’ has no member named ‘seminfo’
usbutils.c:924: error: ‘union semun’ has no member named ‘seminfo’

so it seems the semun structure on mac osx doesn't include seminfo for some reason.

any ideas?
semun doesn't exist on linux - you have to define it yourself.
I guess the OSX OS devs misunderstood that Tongue

You'd have to come by IRC to help work out how to fix this in OSX - in linux I define it myself as per the requirements - but that fails in OSX coz it is already defined

Maybe in a few hours though I don't have time right now

I am also encountering this issue. Was it ever resolved?

I was using http://www.spaceman.ca/blog/?p=235&cpage=1 to help me get the build up and running.

Build cgminer without enabling support for anything that requires usbutils.c (currently that includes bitforce, modminer, and bflsc). That's what the blog you linked does.