Hi guys.. i'm new here.
Trying to setup a machine to start mining BTC. Current I have a humble rig but im trying to make this work in order to invest more money on it. I have tried HiveOS before but couldn't make it work.
I'm pretty new to this crypto universe, i'm a software developer (0 knowledge of C / C++) so I might have a couple of skills that could be helpfull.
So what I did was install ubutu server on my machine, downloaded all dependencies listed on readme. Tried to run ./autogen and then ./configure --disable-opencl and lastly: make
Everythin as a root.
This is the output:
root@sv-tretaa:/home/tretaa/cgminer# make
make all-recursive
make[1]: Entering directory '/home/tretaa/cgminer'
Making all in lib
make[2]: Entering directory '/home/tretaa/cgminer/lib'
GEN signal.h
GEN string.h
make all-recursive
make[3]: Entering directory '/home/tretaa/cgminer/lib'
make[4]: Entering directory '/home/tretaa/cgminer/lib'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/tretaa/cgminer/lib'
make[3]: Leaving directory '/home/tretaa/cgminer/lib'
make[2]: Leaving directory '/home/tretaa/cgminer/lib'
Making all in compat
make[2]: Entering directory '/home/tretaa/cgminer/compat'
make[3]: Entering directory '/home/tretaa/cgminer/compat'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/tretaa/cgminer/compat'
make[2]: Leaving directory '/home/tretaa/cgminer/compat'
Making all in ccan
make[2]: Entering directory '/home/tretaa/cgminer/ccan'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/tretaa/cgminer/ccan'
make[2]: Entering directory '/home/tretaa/cgminer'
CC cgminer-cgminer.o
CC cgminer-util.o
util.c: In function ‘initiate_stratum’:
util.c:1355:9: warning: ‘CURLINFO_LASTSOCKET’ is deprecated: since 7.45.0. Use CURLINFO_ACTIVESOCKET [-Wdeprecated-declarations]
1355 | curl_easy_getinfo(curl, CURLINFO_LASTSOCKET, (long *)&pool->sock);
| ^~~~~~~~~~~~~~~~~
In file included from util.c:20:
/usr/include/x86_64-linux-gnu/curl/curl.h:2896:3: note: declared here
2896 | CURLINFO_LASTSOCKET CURL_DEPRECATED(7.45.0, "Use CURLINFO_ACTIVESOCKET")
| ^~~~~~~~~~~~~~~~~~~
CC cgminer-sha2.o
CC cgminer-api.o
api.c: In function ‘message’:
api.c:1145:49: warning: format not a string literal and no format arguments [-Wformat-security]
1145 | );
| ^
api.c: In function ‘api’:
api.c:3656:75: warning: ‘%s’ directive writing up to 8191 bytes into a region of size 99 [-Wformat-overflow=]
3656 | sprintf(cmdbuf, "|%s|", cmd);
| ^~
In file included from /usr/include/stdio.h:980,
from api.c:17:
In function ‘sprintf’,
inlined from ‘api’ at api.c:3656:8:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 3 and 8194 bytes into a destination of size 100
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
CC cgminer-logging.o
CC cgminer-driver-opencl.o
CCLD cgminer
/usr/bin/ld: cgminer-driver-opencl.o:/home/tretaa/cgminer/driver-opencl.c:612: multiple definition of `cpus'; cgminer-cgminer.o:/home/tretaa/cgminer/cgminer.c:1683: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:739: cgminer] Error 1
make[2]: Leaving directory '/home/tretaa/cgminer'
make[1]: *** [Makefile:1206: all-recursive] Error 1
make[1]: Leaving directory '/home/tretaa/cgminer'
make: *** [Makefile:642: all] Error 2
I have no idea how to solve this... I'm sorry if I posted on the wrong section.. I just want some guidance here.. if you please help me