z38630610
Legendary
Offline
Activity: 1050
Merit: 1000
|
|
December 01, 2016, 01:09:49 PM Last edit: December 01, 2016, 01:20:10 PM by z38630610 |
|
dev this question help, MacdeiMac:elastic-core mac$ java -jar target/elastic-core*.jar Target / elastic-core-0.8.0-sources.jar does not have a master manifest attribute
java -jar target/elastic-core-0.8.0.jar new question : MacdeiMac:build mac$ pwd /Users/mac/xel_miner/build MacdeiMac:build mac$ OPENSSL_ROOT_DIR= “/usr/local/opt/openssl/ ” cmake .. -- The C compiler identification is AppleClang 7.3.0.7030031 -- The CXX compiler identification is AppleClang 7.3.0.7030031 -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at /usr/local/Cellar/cmake/3.7.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:138 (message): Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR) Call Stack (most recent call first): /usr/local/Cellar/cmake/3.7.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /usr/local/Cellar/cmake/3.7.0/share/cmake/Modules/FindOpenSSL.cmake:385 (find_package_handle_standard_args) CMakeLists.txt:8 (find_package) -- Configuring incomplete, errors occurred! See also "/Users/mac/xel_miner/build/CMakeFiles/CMakeOutput.log". MacdeiMac:build mac$ OPENSSL_ROOT_DIR= "/usr/local/opt/openssl/ " cmake .. -- Found OpenSSL: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib (found version "1.0.2j") -- CURL: Found -- SSL: Not Found! why?-- Configuring done -- Generating done -- Build files have been written to: /Users/mac/xel_miner/build -------------IM DIVIDING LINE--------------------------------------------------------------------------------------------------------------------- MacdeiMac:build mac$ make Scanning dependencies of target jansson [ 3%] Building C object compat/jansson/CMakeFiles/jansson.dir/dump.c.o [ 7%] Building C object compat/jansson/CMakeFiles/jansson.dir/error.c.o [ 10%] Building C object compat/jansson/CMakeFiles/jansson.dir/hashtable.c.o [ 14%] Building C object compat/jansson/CMakeFiles/jansson.dir/hashtable_seed.c.o [ 17%] Building C object compat/jansson/CMakeFiles/jansson.dir/load.c.o [ 21%] Building C object compat/jansson/CMakeFiles/jansson.dir/memory.c.o [ 25%] Building C object compat/jansson/CMakeFiles/jansson.dir/pack_unpack.c.o [ 28%] Building C object compat/jansson/CMakeFiles/jansson.dir/strbuffer.c.o [ 32%] Building C object compat/jansson/CMakeFiles/jansson.dir/strconv.c.o [ 35%] Building C object compat/jansson/CMakeFiles/jansson.dir/utf.c.o [ 39%] Building C object compat/jansson/CMakeFiles/jansson.dir/value.c.o [ 42%] Linking C static library libjansson.a [ 42%] Built target jansson Scanning dependencies of target xel_miner [ 46%] Building C object CMakeFiles/xel_miner.dir/xel_miner.c.o In file included from /Users/mac/xel_miner/xel_miner.c:24: /Users/mac/xel_miner/miner.h:51:29: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern __thread _ALIGN(64) *vm_mem; ~~~~~~~~~~~~~~~ ^ /Users/mac/xel_miner/xel_miner.c:78:22: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] __thread _ALIGN(64) *vm_mem = NULL; ~~~~~~~~ ^ /Users/mac/xel_miner/xel_miner.c:255:12: warning: assigning to 'uint8_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] rpc_url = strdup(arg); ^ ~~~~~~~~~~~ /Users/mac/xel_miner/xel_miner.c:263:12: warning: assigning to 'uint8_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] rpc_url = (char*)malloc(strlen(ap) + 8); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/mac/xel_miner/xel_miner.c:264:12: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(rpc_url, "http://%s", ap); ^~~~~~~ /usr/include/secure/_stdio.h:47:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~ /Users/mac/xel_miner/xel_miner.c:268:38: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] rpc_url = realloc(rpc_url, strlen(rpc_url) + 5); ^~~~~~~ /usr/include/string.h:82:28: note: passing argument to parameter here size_t strlen(const char *); ^ /Users/mac/xel_miner/xel_miner.c:269:12: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(rpc_url, "%s/nxt", rpc_url); ^~~~~~~ /usr/include/secure/_stdio.h:47:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~ /Users/mac/xel_miner/xel_miner.c:275:12: warning: assigning to 'uint8_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] rpc_pass = strdup(arg); ^ ~~~~~~~~~~~ /Users/mac/xel_miner/xel_miner.c:279:14: warning: assigning to 'uint8_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] passphrase = strdup(arg); ^ ~~~~~~~~~~~ /Users/mac/xel_miner/xel_miner.c:284:29: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] sha256(passphrase, strlen(passphrase), hash_sha256); ^~~~~~~~~~ /usr/include/string.h:82:28: note: passing argument to parameter here size_t strlen(const char *); ^ /Users/mac/xel_miner/xel_miner.c:284:42: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] sha256(passphrase, strlen(passphrase), hash_sha256); ^~~~~~~~~~~ /Users/mac/xel_miner/crypto/sha2.h:57:28: note: passing argument to parameter 'digest' here unsigned char *digest); ^ /Users/mac/xel_miner/xel_miner.c:292:31: warning: passing 'char *' to parameter of type 'const uint8_t *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] curve25519_donna(publickey, hash_sha256, basepoint); ^~~~~~~~~~~ /Users/mac/xel_miner/miner.h:294:56: note: passing argument to parameter 'secret' here int curve25519_donna(uint8_t *mypublic, const uint8_t *secret, const uint8_t *basepoint); ^ /Users/mac/xel_miner/xel_miner.c:337:12: warning: assigning to 'uint8_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] rpc_user = strdup(arg); ^ ~~~~~~~~~~~ /Users/mac/xel_miner/xel_miner.c:357:10: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(test_filename, arg); ^~~~~~~~~~~~~ /usr/include/secure/_string.h:83:27: note: expanded from macro 'strcpy' __builtin___strcpy_chk (dest, src, __darwin_obsz (dest)) ^~~~ /Users/mac/xel_miner/xel_miner.c:364:10: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(test_filename, arg); ^~~~~~~~~~~~~ /usr/include/secure/_string.h:83:27: note: expanded from macro 'strcpy' __builtin___strcpy_chk (dest, src, __darwin_obsz (dest)) ^~~~ /Users/mac/xel_miner/xel_miner.c:429:13: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] fp = fopen(test_filename, "r"); ^~~~~~~~~~~~~ /usr/include/stdio.h:242:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHO... ^ /Users/mac/xel_miner/xel_miner.c:445:90: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] fprintf(stderr, "ERROR: Test file exceeds max size (%d): %d bytes\n", MAX_SOURCE_SIZE, len); ~~ ^~~ %zu /Users/mac/xel_miner/xel_miner.c:460:12: warning: implicit declaration of function 'tolower' is invalid in C99 [-Wimplicit-function-declaration] buf[i] = tolower(buf[i]); ^ /Users/mac/xel_miner/xel_miner.c:560:6: warning: passing 'char [80]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] MD5(msg, 80, hash); ^~~ /usr/local/opt/openssl/include/openssl/md5.h:113:41: note: passing argument to parameter 'd' here unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); ^ /Users/mac/xel_miner/xel_miner.c:560:15: warning: passing 'char [16]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] MD5(msg, 80, hash); ^~~~ /usr/local/opt/openssl/include/openssl/md5.h:113:69: note: passing argument to parameter 'md' here unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); ^ /Users/mac/xel_miner/xel_miner.c:628:7: warning: passing 'char [64]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] MD5(msg, 64, hash); ^~~ /usr/local/opt/openssl/include/openssl/md5.h:113:41: note: passing argument to parameter 'd' here unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); ^ /Users/mac/xel_miner/xel_miner.c:628:16: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] MD5(msg, 64, hash); ^~~~ /usr/local/opt/openssl/include/openssl/md5.h:113:69: note: passing argument to parameter 'md' here unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); ^ /Users/mac/xel_miner/xel_miner.c:692:29: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] val = json_rpc_call(curl, rpc_url, rpc_userpass, "requestType=getMineableWork&n=1", &err); ^~~~~~~ /Users/mac/xel_miner/miner.h:285:54: note: passing argument to parameter 'url' here extern json_t* json_rpc_call(CURL *curl, const char *url, const char *userpass, const char *req, int *curl_err); ^ /Users/mac/xel_miner/xel_miner.c:692:38: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] val = json_rpc_call(curl, rpc_url, rpc_userpass, "requestType=getMineableWork&n=1", &err); ^~~~~~~~~~~~ /Users/mac/xel_miner/miner.h:285:71: note: passing argument to parameter 'userpass' here extern json_t* json_rpc_call(CURL *curl, const char *url, const char *userpass, const char *req, int *curl_err); ^ /Users/mac/xel_miner/xel_miner.c:696:24: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] val = JSON_LOAD_FILE(test_filename, &err_val); ^~~~~~~~~~~~~ /Users/mac/xel_miner/miner.h:42:54: note: expanded from macro 'JSON_LOAD_FILE' #define JSON_LOAD_FILE(path, err_ptr) json_load_file(path, 0, err_ptr) ^~~~ /Users/mac/xel_miner/compat/jansson/jansson.h:277:36: note: passing argument to parameter 'path' here json_t *json_load_file(const char *path, size_t flags, json_error_t *error); ^ /Users/mac/xel_miner/xel_miner.c:736:22: warning: passing 'unsigned char [22]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(g_work_id, work.work_str, 21); ^~~~~~~~~~~~~ /usr/include/secure/_string.h:119:34: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest)) ^~~ /Users/mac/xel_miner/xel_miner.c:737:22: warning: passing 'unsigned char [50]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(g_work_nm, work.work_nm, 49); ^~~~~~~~~~~~ /usr/include/secure/_string.h:119:34: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest)) ^~~ /Users/mac/xel_miner/xel_miner.c:738:11: warning: passing 'unsigned char [33]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(g_pow_target_str, "%08X%08X%08X...", work.pow_target[0], work.pow_target[1], work.p... ^~~~~~~~~~~~~~~~ /usr/include/secure/_stdio.h:47:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~ /Users/mac/xel_miner/xel_miner.c:840:12: warning: passing 'unsigned char [22]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(work_package.work_str, str, 21); ^~~~~~~~~~~~~~~~~~~~~ /usr/include/secure/_string.h:119:28: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest)) ^~~~ /Users/mac/xel_miner/xel_miner.c:844:12: warning: passing 'unsigned char [50]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(work_package.work_nm, str, 49); ^~~~~~~~~~~~~~~~~~~~ /usr/include/secure/_string.h:119:28: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest)) ^~~~ /Users/mac/xel_miner/xel_miner.c:866:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] rc = ascii85dec(elastic_src, MAX_SOURCE_SIZE, str); ^~~~~~~~~~~ /Users/mac/xel_miner/miner.h:282:39: note: passing argument to parameter 'str' here extern bool ascii85dec(unsigned char *str, int strsz, const char *ascii85); ^ /Users/mac/xel_miner/xel_miner.c:899:27: warning: passing 'unsigned char [22]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!compile_and_link(work_package.work_str)) { ^~~~~~~~~~~~~~~~~~~~~ /Users/mac/xel_miner/miner.h:290:29: note: passing argument to parameter 'file_name' here bool compile_and_link(char* file_name); ^ /Users/mac/xel_miner/xel_miner.c:953:48: warning: passing 'unsigned char [22]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] else if (opt_pref == PREF_WORKID && (!strcmp(g_work_package[work_pkg_id].work_str, pref_workid))) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:77:25: note: passing argument to parameter here int strcmp(const char *, const char *); ^ /Users/mac/xel_miner/xel_miner.c:976:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] rc = ascii85dec(elastic_src, MAX_SOURCE_SIZE, best_src); ^~~~~~~~~~~ /Users/mac/xel_miner/miner.h:282:39: note: passing argument to parameter 'str' here extern bool ascii85dec(unsigned char *str, int strsz, const char *ascii85); ^ /Users/mac/xel_miner/xel_miner.c:1003:10: warning: passing 'unsigned char [22]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(work->work_str, g_work_package[best_pkg].work_str, 21); ^~~~~~~~~~~~~~ /usr/include/secure/_string.h:119:28: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest)) ^~~~ /Users/mac/xel_miner/xel_miner.c:1003:26: warning: passing 'unsigned char [22]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(work->work_str, g_work_package[best_pkg].work_str, 21); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/secure/_string.h:119:34: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest)) ^~~ /Users/mac/xel_miner/xel_miner.c:1004:10: warning: passing 'unsigned char [50]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(work->work_nm, g_work_package[best_pkg].work_nm, 49); ^~~~~~~~~~~~~ /usr/include/secure/_string.h:119:28: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest)) ^~~~ /Users/mac/xel_miner/xel_miner.c:1004:25: warning: passing 'unsigned char [50]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(work->work_nm, g_work_package[best_pkg].work_nm, 49); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/secure/_string.h:119:34: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest)) ^~~ /Users/mac/xel_miner/xel_miner.c:1023:25: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] url = calloc(1, strlen(rpc_url) + 50); ^~~~~~~ /usr/include/string.h:82:28: note: passing argument to parameter here size_t strlen(const char *); ^ /Users/mac/xel_miner/xel_miner.c:1053:33: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] val = json_rpc_call(curl, url, rpc_userpass, data, &err); ^~~~~~~~~~~~ /Users/mac/xel_miner/miner.h:285:71: note: passing argument to parameter 'userpass' here extern json_t* json_rpc_call(CURL *curl, const char *url, const char *userpass, const char *req, int *curl_err); ^ /Users/mac/xel_miner/xel_miner.c:1214:27: warning: passing 'unsigned char [22]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] create_instance(inst, work.work_str); ^~~~~~~~~~~~~ /Users/mac/xel_miner/miner.h:291:51: note: passing argument to parameter 'file_name' here void create_instance(struct instance* inst, char *file_name); ^ /Users/mac/xel_miner/xel_miner.c:1274:12: warning: passing 'unsigned char [65]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(hash_str, "%08X%08X%08X...", swap32(hash32[0]), swap32(hash32[1]), swap32(h... ^~~~~~~~ /usr/include/secure/_stdio.h:47:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~ /Users/mac/xel_miner/xel_miner.c:1275:12: warning: passing 'unsigned char [65]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(gpow_str, "%08X%08X%08X...", (g_pow_target[0]), (g_pow_target[1]), (g_pow_t... ^~~~~~~~ /usr/include/secure/_stdio.h:47:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~ /Users/mac/xel_miner/xel_miner.c:1342:29: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] val = json_rpc_call(curl, rpc_url, rpc_userpass, "requestType=longpoll&randomId=1", &err); ^~~~~~~ /Users/mac/xel_miner/miner.h:285:54: note: passing argument to parameter 'url' here extern json_t* json_rpc_call(CURL *curl, const char *url, const char *userpass, const char *req, int *curl_err); ^ /Users/mac/xel_miner/xel_miner.c:1342:38: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] val = json_rpc_call(curl, rpc_url, rpc_userpass, "requestType=longpoll&randomId=1", &err); ^~~~~~~~~~~~ /Users/mac/xel_miner/miner.h:285:71: note: passing argument to parameter 'userpass' here extern json_t* json_rpc_call(CURL *curl, const char *url, const char *userpass, const char *req, int *curl_err); ^ /Users/mac/xel_miner/xel_miner.c:1530:10: warning: passing 'unsigned char [22]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(g_submit_req[g_submit_req_cnt].work_str, work->work_str, 21); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/secure/_string.h:119:28: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest)) ^~~~ /Users/mac/xel_miner/xel_miner.c:1530:51: warning: passing 'unsigned char [22]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(g_submit_req[g_submit_req_cnt].work_str, work->work_str, 21); ^~~~~~~~~~~~~~ /usr/include/secure/_string.h:119:34: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest)) ^~~ /Users/mac/xel_miner/xel_miner.c:1590:8: warning: implicit declaration of function 'toupper' is invalid in C99 [-Wimplicit-function-declaration] ch = toupper(ch); ^ /Users/mac/xel_miner/xel_miner.c:1611:100: warning: address of array 'g_work_nm' will always evaluate to 'true' [-Wpointer-bool-conversion] ..."Run Time: %02d Days %02d:%02d:%02d\t\tWork Name: %s", day, hour, min, sec, g_work_nm ? g_work_nm : ""); ^~~~~~~~~ ~ /Users/mac/xel_miner/xel_miner.c:1612:78: warning: address of array 'g_work_id' will always evaluate to 'true' [-Wpointer-bool-conversion] ...applog(LOG_WARNING, "Bounty Pending:\t%3d\t\tWork ID: %s", pending_bty, g_work_id ? g_work_id : ""); ^~~~~~~~~ ~ /Users/mac/xel_miner/xel_miner.c:1723:11: warning: assigning to 'uint8_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] rpc_url = strdup("http://127.0.0.1:6876/nxt"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/mac/xel_miner/xel_miner.c:1726:39: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] rpc_userpass = (char*)malloc(strlen(rpc_user) + strlen(rpc_pass) + 2); ^~~~~~~~ /usr/include/string.h:82:28: note: passing argument to parameter here size_t strlen(const char *); ^ /Users/mac/xel_miner/xel_miner.c:1726:58: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] rpc_userpass = (char*)malloc(strlen(rpc_user) + strlen(rpc_pass) + 2); ^~~~~~~~ /usr/include/string.h:82:28: note: passing argument to parameter here size_t strlen(const char *); ^ /Users/mac/xel_miner/xel_miner.c:1726:16: warning: assigning to 'uint8_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] rpc_userpass = (char*)malloc(strlen(rpc_user) + strlen(rpc_pass) + 2); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/mac/xel_miner/xel_miner.c:1729:11: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(rpc_userpass, "%s:%s", rpc_user, rpc_pass); ^~~~~~~~~~~~ /usr/include/secure/_stdio.h:47:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~ 55 warnings generated. [ 50%] Building C object CMakeFiles/xel_miner.dir/xel_compiler.c.o In file included from /Users/mac/xel_miner/xel_compiler.c:7: /Users/mac/xel_miner/miner.h:51:29: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern __thread _ALIGN(64) *vm_mem; ~~~~~~~~~~~~~~~ ^ /Users/mac/xel_miner/xel_compiler.c:89:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(f, &code[0]); ^~~~~~~~ /Users/mac/xel_miner/xel_compiler.c:96:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(stdout, code); ^~~~ /Users/mac/xel_miner/xel_compiler.c:160:15: warning: implicit declaration of function 'dlmopen' is invalid in C99 [-Wimplicit-function-declaration] inst->hndl = dlmopen(LM_ID_BASE, file_name, RTLD_NOW); ^ /Users/mac/xel_miner/xel_compiler.c:160:13: warning: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion] inst->hndl = dlmopen(LM_ID_BASE, file_name, RTLD_NOW); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5 warnings generated. [ 53%] Building C object CMakeFiles/xel_miner.dir/util.c.o In file included from /Users/mac/xel_miner/util.c:23: /Users/mac/xel_miner/miner.h:51:29: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern __thread _ALIGN(64) *vm_mem; ~~~~~~~~~~~~~~~ ^ /Users/mac/xel_miner/util.c:286:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sprintf(str, "%s", buf); ^~~ /usr/include/secure/_stdio.h:47:28: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~ 2 warnings generated. [ 57%] Building C object CMakeFiles/xel_miner.dir/ElasticPL/ElasticPL.c.o In file included from /Users/mac/xel_miner/ElasticPL/ElasticPL.c:13: /Users/mac/xel_miner/ElasticPL/../miner.h:51:29: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern __thread _ALIGN(64) *vm_mem; ~~~~~~~~~~~~~~~ ^ /Users/mac/xel_miner/ElasticPL/ElasticPL.c:85:23: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(val, "%d", root->value); ~~ ^~~~~~~~~~~ %ld /usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ 2 warnings generated. [ 60%] Building C object CMakeFiles/xel_miner.dir/ElasticPL/ElasticPLTokenManager.c.o In file included from /Users/mac/xel_miner/ElasticPL/ElasticPLTokenManager.c:13: /Users/mac/xel_miner/ElasticPL/../miner.h:51:29: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern __thread _ALIGN(64) *vm_mem; ~~~~~~~~~~~~~~~ ^ 1 warning generated. [ 64%] Building C object CMakeFiles/xel_miner.dir/ElasticPL/ElasticPLParser.c.o In file included from /Users/mac/xel_miner/ElasticPL/ElasticPLParser.c:14: /Users/mac/xel_miner/ElasticPL/../miner.h:51:29: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern __thread _ALIGN(64) *vm_mem; ~~~~~~~~~~~~~~~ ^ /Users/mac/xel_miner/ElasticPL/ElasticPLParser.c:269:10: warning: enumeration value 'EXP_NONE' not handled in switch [-Wswitch] switch (token->exp) { ^ 2 warnings generated. [ 67%] Building C object CMakeFiles/xel_miner.dir/ElasticPL/ElasticPLInterpreter.c.o In file included from /Users/mac/xel_miner/ElasticPL/ElasticPLInterpreter.c:18: /Users/mac/xel_miner/ElasticPL/../miner.h:51:29: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern __thread _ALIGN(64) *vm_mem; ~~~~~~~~~~~~~~~ ^ /Users/mac/xel_miner/ElasticPL/ElasticPLInterpreter.c:66:27: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(result, "%d", exp->value); ~~ ^~~~~~~~~~ %ld /usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ /Users/mac/xel_miner/ElasticPL/ElasticPLInterpreter.c:72:32: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(result, "mem[%d]", exp->value); ~~ ^~~~~~~~~~ %ld /usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ 3 warnings generated. [ 71%] Building C object CMakeFiles/xel_miner.dir/crypto/elasticpl_crypto.c.o /Users/mac/xel_miner/crypto/elasticpl_crypto.c:281:11: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if ((idx < 0) || (len <= 0) || ((idx + n) >= VM_MEMORY_SIZE)) ~~~ ^ ~ /Users/mac/xel_miner/crypto/elasticpl_crypto.c:377:12: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if ((idx1 < 0) || (idx2 < 0) || ((idx1 + uncomp_sz) >= VM_MEMORY_SIZE) || ((idx2 + uncomp_sz) >= VM... ~~~~ ^ ~ /Users/mac/xel_miner/crypto/elasticpl_crypto.c:377:26: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if ((idx1 < 0) || (idx2 < 0) || ((idx1 + uncomp_sz) >= VM_MEMORY_SIZE) || ((idx2 + uncomp_sz) >= VM... ~~~~ ^ ~ /Users/mac/xel_miner/crypto/elasticpl_crypto.c:478:12: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if ((idx1 < 0) || (idx2 < 0) || ((idx1 + uncomp_sz) >= VM_MEMORY_SIZE) || ((idx2 + uncomp_sz) >= VM... ~~~~ ^ ~ /Users/mac/xel_miner/crypto/elasticpl_crypto.c:478:26: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if ((idx1 < 0) || (idx2 < 0) || ((idx1 + uncomp_sz) >= VM_MEMORY_SIZE) || ((idx2 + uncomp_sz) >= VM... ~~~~ ^ ~ /Users/mac/xel_miner/crypto/elasticpl_crypto.c:573:12: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if ((idx1 < 0) || ((idx1 + uncomp_sz) >= VM_MEMORY_SIZE)) ~~~~ ^ ~ /Users/mac/xel_miner/crypto/elasticpl_crypto.c:656:12: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if ((idx1 < 0) || (idx2 < 0) || ((idx1 + uncomp_sz) >= VM_MEMORY_SIZE) || ((idx2 + n2) >= VM_MEMORY_SIZE)) ~~~~ ^ ~ /Users/mac/xel_miner/crypto/elasticpl_crypto.c:656:26: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if ((idx1 < 0) || (idx2 < 0) || ((idx1 + uncomp_sz) >= VM_MEMORY_SIZE) || ((idx2 + n2) >= VM_MEMORY_SIZE)) ~~~~ ^ ~ 8 warnings generated. [ 75%] Building C object CMakeFiles/xel_miner.dir/crypto/curve25519-donna.c.o [ 78%] Building C object CMakeFiles/xel_miner.dir/crypto/sha2.c.o [ 82%] Building C object CMakeFiles/xel_miner.dir/crypto/whirlpool.c.o [ 85%] Linking C executable ../xel_miner Undefined symbols for architecture x86_64: "_dlmopen", referenced from: _create_instance in xel_compiler.c.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [../xel_miner] Error 1 make[1]: *** [CMakeFiles/xel_miner.dir/all] Error 2 make: *** [all] Error 2
|