Post
Topic
Board Mining software (miners)
Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx
by
-ck
on 19/08/2011, 01:07:34 UTC
Hi there...
I configured the program with ./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" on FreeBSD.
But when I type make next, it showed up like this:
Quote
make  all-recursive
Making all in lib
make  all-recursive
Making all in compat
Making all in jansson
Making all in ccan
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I./lib -I./lib   -I/usr/local/include -MT cgminer-util.o -MD -MP -MF .deps/cgminer-util.Tpo -c -o cgminer-util.o `test -f 'util.c' || echo './'`util.c
In file included from util.c:35:
miner.h:33:1: warning: "alloca" redefined
In file included from util.c:16:
/usr/include/stdlib.h:237:1: warning: this is the location of the previous definition
util.c: In function 'json_rpc_call_sockopt_cb':
util.c:268: error: 'SOL_TCP' undeclared (first use in this function)
util.c:268: error: (Each undeclared identifier is reported only once
util.c:268: error: for each function it appears in.)
util.c:268: error: 'TCP_KEEPCNT' undeclared (first use in this function)
util.c:271: error: 'TCP_KEEPIDLE' undeclared (first use in this function)
util.c:274: error: 'TCP_KEEPINTVL' undeclared (first use in this function)
*** Error code 1

Stop in /usr/home/users/xxxxxxx/xxxxxxxx/cgminer-1.5.6.
*** Error code 1

Stop in /usr/home/users/xxxxxxx/xxxxxxxx/cgminer-1.5.6.
*** Error code 1

Stop in /usr/home/users/xxxxxxx/xxxxxxxx/cgminer-1.5.6.
Could somebody please help?
Thanks Cry

No one's ever tried to compile it for freebsd before as far as I'm aware. It looks like freebsd will need some special defines to get it working. While I can generically put some in in the next release in the hope it works, I can't guarantee it will be fixed.