firoorg / cpuminer

cpuminer with mtp support
Other
38 stars 15 forks source link

Difficulty building on Xenial, Xeon #9

Open 9600- opened 5 years ago

9600- commented 5 years ago

Have not experienced this issue before, when compiling other forks of cpuminer. Dependency version mismatch? Using branch test2.

/root/mtp/cpuminer/util.c:2547: undefined reference to `json_bytes_size'
/tmp/ccsw4Crw.ltrans19.ltrans.o: In function `stratum_unknown_method_bos':
/root/mtp/cpuminer/util.c:2860: undefined reference to `json_object'
/tmp/ccsw4Crw.ltrans19.ltrans.o: In function `json_object_set':
/root/mtp/cpuminer/./compat/bos-jansson/bosjansson.h:238: undefined reference to `json_object_set_new'
/tmp/ccsw4Crw.ltrans19.ltrans.o: In function `stratum_unknown_method_bos':
/root/mtp/cpuminer/util.c:2862: undefined reference to `json_false'
/root/mtp/cpuminer/util.c:2862: undefined reference to `json_object_set_new'
/root/mtp/cpuminer/util.c:2865: undefined reference to `bos_serialize'
/tmp/ccsw4Crw.ltrans19.ltrans.o: In function `stratum_notify_bos':
/root/mtp/cpuminer/util.c:2531: undefined reference to `json_array_size'
/root/mtp/cpuminer/util.c:2533: undefined reference to `json_array_get'
/root/mtp/cpuminer/util.c:2533: undefined reference to `json_bytes_size'
/root/mtp/cpuminer/util.c:2534: undefined reference to `json_array_get'
/root/mtp/cpuminer/util.c:2534: undefined reference to `json_bytes_value'
/root/mtp/cpuminer/util.c:2537: undefined reference to `json_array_get'
/root/mtp/cpuminer/util.c:2537: undefined reference to `json_bytes_value'
/tmp/ccsw4Crw.ltrans19.ltrans.o: In function `stratum_show_message':
/root/mtp/cpuminer/util.c:2939: undefined reference to `json_array_get'
/root/mtp/cpuminer/util.c:2941: undefined reference to `json_string_value'
/root/mtp/cpuminer/util.c:2946: undefined reference to `json_object'
/tmp/ccsw4Crw.ltrans19.ltrans.o: In function `json_object_set':
/root/mtp/cpuminer/./compat/bos-jansson/bosjansson.h:238: undefined reference to `json_object_set_new'
/tmp/ccsw4Crw.ltrans19.ltrans.o: In function `stratum_show_message':
/root/mtp/cpuminer/util.c:2948: undefined reference to `json_null'
/root/mtp/cpuminer/util.c:2948: undefined reference to `json_object_set_new'
/root/mtp/cpuminer/util.c:2949: undefined reference to `json_true'
/root/mtp/cpuminer/util.c:2949: undefined reference to `json_object_set_new'
/root/mtp/cpuminer/util.c:2950: undefined reference to `json_dumps'
/tmp/ccsw4Crw.ltrans29.ltrans.o: In function `jobj_binary.constprop.199':
/root/mtp/cpuminer/util.c:819: undefined reference to `json_object_get'
/root/mtp/cpuminer/util.c:824: undefined reference to `json_string_value'
/tmp/ccsw4Crw.ltrans29.ltrans.o: In function `json_rpc2_call_recur.constprop.196':
/root/mtp/cpuminer/util.c:2244: undefined reference to `json_object_get'
/root/mtp/cpuminer/util.c:2246: undefined reference to `json_object_get'
/root/mtp/cpuminer/util.c:2248: undefined reference to `json_string_set'
/root/mtp/cpuminer/util.c:2251: undefined reference to `json_dumps'
/root/mtp/cpuminer/util.c:2254: undefined reference to `json_object_get'
/root/mtp/cpuminer/util.c:2260: undefined reference to `json_object_get'
/root/mtp/cpuminer/util.c:2262: undefined reference to `json_string_value'
/root/mtp/cpuminer/util.c:2271: undefined reference to `json_object_get'
/root/mtp/cpuminer/util.c:2275: undefined reference to `json_string'
/tmp/ccsw4Crw.ltrans29.ltrans.o: In function `json_object_set':
/root/mtp/cpuminer/./compat/bos-jansson/bosjansson.h:238: undefined reference to `json_object_set_new'
collect2: error: ld returned 1 exit status
Makefile:976: recipe for target 'cpuminer' failed
make[2]: *** [cpuminer] Error 1
make[2]: Leaving directory '/root/mtp/cpuminer'
Makefile:2863: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/mtp/cpuminer'
Makefile:602: recipe for target 'all' failed
make: *** [all] Error 2
strip: 'cpuminer': No such file
djm34 commented 5 years ago

It seems it is an issue with your compilation setting you need to do in order compile ./autogen.sh ./configure --with-crypto --with-curl make

(bos-janson is included into the repo and should compile fine)