Bitcoin Forum
December 04, 2016, 12:21:04 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] Compile minerd for OSX 10.4?  (Read 2494 times)
SockPuppet
Newbie
*
Offline Offline

Activity: 21



View Profile
November 01, 2011, 07:39:54 PM
 #1

Getting minerd compiled on a recent mac isn't too painful.  (The info is in this forum, if I ever get everything working, I'll post instructions)  My problem is with getting it to compile for OSX 10.4, and ideally in a universal binary.  After updating many libraries (m4, automake, autoconf, libtools), I can *almost* get minerd to compile, but it fails during the "make" with the following errors:

Code:
config.status: creating cpuminer-config.h
config.status: cpuminer-config.h is unchanged
config.status: executing depfiles commands
hostname-1:~/Desktop/cpuminer root# make
make  all-recursive
Making all in compat
make[3]: Nothing to be done for `all-am'.
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing     -g -O2 -MT minerd-cpu-miner.o -MD -MP -MF .deps/minerd-cpu-miner.Tpo -c -o minerd-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
powerpc-apple-darwin8-gcc-4.0.1: unrecognized option '-pthread'
cpu-miner.c: In function 'parse_arg':
cpu-miner.c:797: error: '_SC_NPROCESSORS_ONLN' undeclared (first use in this function)
cpu-miner.c:797: error: (Each undeclared identifier is reported only once
cpu-miner.c:797: error: for each function it appears in.)
make[2]: *** [minerd-cpu-miner.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Getting this far has been beyond my ken, so I'm pretty stumped here. Is this because I'm trying to compile on a PPC processor? Should I install the dev tools on an intel box running 10.4?  Should I just give up?  Smiley
1480854064
Hero Member
*
Offline Offline

Posts: 1480854064

View Profile Personal Message (Offline)

Ignore
1480854064
Reply with quote  #2

1480854064
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480854064
Hero Member
*
Offline Offline

Posts: 1480854064

View Profile Personal Message (Offline)

Ignore
1480854064
Reply with quote  #2

1480854064
Report to moderator
1480854064
Hero Member
*
Offline Offline

Posts: 1480854064

View Profile Personal Message (Offline)

Ignore
1480854064
Reply with quote  #2

1480854064
Report to moderator
SockPuppet
Newbie
*
Offline Offline

Activity: 21



View Profile
November 01, 2011, 08:08:25 PM
 #2

but you need to follow this thread here to get it to see your curl install so it works on Intel.

Yep, you are correct.

Quote from: SAC
BTW now I notice why are you compiling software as root user?

I've been working on this so long, I got tired of typing sudo.  Grin  (This is just a test machine anyway, I've installed so many dependencies over top of system dependencies, I'd never use it for anything important without formatting it!)
SockPuppet
Newbie
*
Offline Offline

Activity: 21



View Profile
November 04, 2011, 09:59:21 PM
 #3

I finally got this figured out, with help from a couple people and some dumb luck. Smiley

http://liteco.in/threads/osx-miners.23/
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!