JayDDee / cpuminer-opt

Optimized multi algo CPU miner
Other
774 stars 543 forks source link

Curl issue ? #159

Closed syndrael closed 6 years ago

syndrael commented 6 years ago

Hello, I don't understand why my 'make' is not successfull on my VPS Ubuntu 16.04. I think it's because of curl.. (libcurl4-openssl-dev installed). Here are informations: g++ -g -O2 -o cpuminer cpuminer-cpu-miner.o cpuminer-util.o cpuminer-uint256.o cpuminer-api.o cpuminer-sysinfos.o cpuminer-algo-gate-api.o crypto/cpuminer-oaes_lib.o crypto/cpuminer-c_keccak.o crypto/cpuminer-c_groestl.o crypto/cpuminer-c_blake256.o crypto/cpuminer-c_jh.o crypto/cpuminer-c_skein.o crypto/cpuminer-hash.o crypto/cpuminer-aesb.o crypto/cpuminer-magimath.o algo/argon2/argon2a/cpuminer-argon2a.o algo/argon2/argon2a/ar2/cpuminer-argon2.o algo/argon2/argon2a/ar2/cpuminer-opt.o algo/argon2/argon2a/ar2/cpuminer-cores.o algo/argon2/argon2a/ar2/cpuminer-ar2-scrypt-jane.o algo/argon2/argon2a/ar2/cpuminer-blake2b.o algo/argon2/argon2d/cpuminer-argon2d-gate.o algo/argon2/argon2d/blake2/cpuminer-blake2b.o algo/argon2/argon2d/argon2d/cpuminer-argon2.o algo/argon2/argon2d/argon2d/cpuminer-core.o algo/argon2/argon2d/argon2d/cpuminer-opt.o algo/argon2/argon2d/argon2d/cpuminer-thread.o algo/argon2/argon2d/argon2d/cpuminer-encoding.o algo/blake/cpuminer-sph_blake.o algo/blake/cpuminer-blake-hash-4way.o algo/blake/cpuminer-blake-gate.o algo/blake/cpuminer-blake.o algo/blake/cpuminer-blake-4way.o algo/blake/cpuminer-sph_blake2b.o algo/blake/cpuminer-blake2b.o algo/blake/cpuminer-sph-blake2s.o algo/blake/cpuminer-blake2s-hash-4way.o algo/blake/cpuminer-blake2s.o algo/blake/cpuminer-blake2s-gate.o algo/blake/cpuminer-blake2s-4way.o algo/blake/cpuminer-blakecoin-gate.o algo/blake/cpuminer-mod_blakecoin.o algo/blake/cpuminer-blakecoin.o algo/blake/cpuminer-blakecoin-4way.o algo/blake/cpuminer-decred-gate.o algo/blake/cpuminer-decred.o algo/blake/cpuminer-decred-4way.o algo/blake/cpuminer-pentablake-gate.o algo/blake/cpuminer-pentablake-4way.o algo/blake/cpuminer-pentablake.o algo/bmw/cpuminer-sph_bmw.o algo/bmw/cpuminer-bmw-hash-4way.o algo/bmw/cpuminer-bmw256.o algo/cryptonight/cpuminer-cryptolight.o algo/cryptonight/cpuminer-cryptonight-common.o algo/cryptonight/cpuminer-cryptonight-aesni.o algo/cryptonight/cpuminer-cryptonight.o algo/cubehash/cpuminer-sph_cubehash.o algo/cubehash/sse2/cpuminer-cubehash_sse2.o algo/cubehash/cpuminer-cube-hash-2way.o algo/echo/cpuminer-sph_echo.o algo/echo/aes_ni/cpuminer-hash.o algo/gost/cpuminer-sph_gost.o algo/groestl/cpuminer-sph_groestl.o algo/groestl/cpuminer-groestl.o algo/groestl/cpuminer-myrgr-gate.o algo/groestl/cpuminer-myrgr-4way.o algo/groestl/cpuminer-myr-groestl.o algo/groestl/aes_ni/cpuminer-hash-groestl.o algo/groestl/aes_ni/cpuminer-hash-groestl256.o algo/fugue/cpuminer-sph_fugue.o algo/hamsi/cpuminer-sph_hamsi.o algo/hamsi/cpuminer-hamsi-hash-4way.o algo/haval/cpuminer-haval.o algo/haval/cpuminer-haval-hash-4way.o algo/heavy/cpuminer-sph_hefty1.o algo/heavy/cpuminer-heavy.o algo/heavy/cpuminer-bastion.o algo/hodl/cpuminer-aes.o algo/hodl/cpuminer-hodl-gate.o algo/hodl/cpuminer-hodl-wolf.o algo/hodl/cpuminer-sha512_avx.o algo/hodl/cpuminer-sha512_avx2.o algo/jh/cpuminer-sph_jh.o algo/jh/cpuminer-jh-hash-4way.o algo/jh/cpuminer-jha-gate.o algo/jh/cpuminer-jha-4way.o algo/jh/cpuminer-jha.o algo/keccak/cpuminer-sph_keccak.o algo/keccak/cpuminer-keccak.o algo/keccak/cpuminer-keccak-hash-4way.o algo/keccak/cpuminer-keccak-4way.o algo/keccak/cpuminer-keccak-gate.o algo/keccak/sse2/cpuminer-keccak.o algo/luffa/cpuminer-sph_luffa.o algo/luffa/cpuminer-luffa.o algo/luffa/cpuminer-luffa_for_sse2.o algo/luffa/cpuminer-luffa-hash-2way.o algo/lyra2/cpuminer-lyra2.o algo/lyra2/cpuminer-sponge.o algo/lyra2/cpuminer-lyra2rev2-gate.o algo/lyra2/cpuminer-lyra2rev2.o algo/lyra2/cpuminer-lyra2rev2-4way.o algo/lyra2/cpuminer-lyra2re.o algo/lyra2/cpuminer-lyra2z-gate.o algo/lyra2/cpuminer-lyra2z.o algo/lyra2/cpuminer-lyra2z-4way.o algo/lyra2/cpuminer-lyra2z330.o algo/lyra2/cpuminer-lyra2h-gate.o algo/lyra2/cpuminer-lyra2h.o algo/lyra2/cpuminer-lyra2h-4way.o algo/lyra2/cpuminer-allium-gate.o algo/lyra2/cpuminer-allium-4way.o algo/lyra2/cpuminer-allium.o algo/cpuminer-m7m.o algo/neoscrypt/cpuminer-neoscrypt.o algo/nist5/cpuminer-nist5-gate.o algo/nist5/cpuminer-nist5-4way.o algo/nist5/cpuminer-nist5.o algo/nist5/cpuminer-zr5.o algo/cpuminer-pluck.o algo/quark/cpuminer-quark-gate.o algo/quark/cpuminer-quark.o algo/quark/cpuminer-quark-4way.o algo/quark/cpuminer-anime-gate.o algo/quark/cpuminer-anime.o algo/quark/cpuminer-anime-4way.o algo/qubit/cpuminer-qubit-gate.o algo/qubit/cpuminer-qubit.o algo/qubit/cpuminer-qubit-2way.o algo/qubit/cpuminer-deep-gate.o algo/qubit/cpuminer-deep-2way.o algo/qubit/cpuminer-deep.o algo/ripemd/cpuminer-sph_ripemd.o algo/ripemd/cpuminer-ripemd-hash-4way.o algo/ripemd/cpuminer-lbry-gate.o algo/ripemd/cpuminer-lbry.o algo/ripemd/cpuminer-lbry-4way.o algo/cpuminer-scrypt.o algo/scryptjane/cpuminer-scrypt-jane.o algo/sha/cpuminer-sph_sha2.o algo/sha/cpuminer-sph_sha2big.o algo/sha/cpuminer-sha2-hash-4way.o algo/sha/cpuminer-sha2.o algo/sha/cpuminer-sha256t-gate.o algo/sha/cpuminer-sha256t-4way.o algo/sha/cpuminer-sha256t.o algo/shabal/cpuminer-sph_shabal.o algo/shabal/cpuminer-shabal-hash-4way.o algo/shavite/cpuminer-sph_shavite.o algo/shavite/cpuminer-sph-shavite-aesni.o algo/shavite/cpuminer-shavite.o algo/simd/cpuminer-sph_simd.o algo/simd/cpuminer-nist.o algo/simd/cpuminer-vector.o algo/simd/cpuminer-simd-hash-2way.o algo/skein/cpuminer-sph_skein.o algo/skein/cpuminer-skein-hash-4way.o algo/skein/cpuminer-skein.o algo/skein/cpuminer-skein-4way.o algo/skein/cpuminer-skein-gate.o algo/skein/cpuminer-skein2.o algo/skein/cpuminer-skein2-4way.o algo/skein/cpuminer-skein2-gate.o algo/sm3/cpuminer-sm3.o algo/sm3/cpuminer-sm3-hash-4way.o algo/tiger/cpuminer-sph_tiger.o algo/whirlpool/cpuminer-sph_whirlpool.o algo/whirlpool/cpuminer-whirlpool-hash-4way.o algo/whirlpool/cpuminer-whirlpool-gate.o algo/whirlpool/cpuminer-whirlpool-4way.o algo/whirlpool/cpuminer-whirlpool.o algo/whirlpool/cpuminer-whirlpoolx.o algo/x11/cpuminer-x11-gate.o algo/x11/cpuminer-x11.o algo/x11/cpuminer-x11-4way.o algo/x11/cpuminer-x11gost-gate.o algo/x11/cpuminer-x11gost.o algo/x11/cpuminer-x11gost-4way.o algo/x11/cpuminer-c11-gate.o algo/x11/cpuminer-c11.o algo/x11/cpuminer-c11-4way.o algo/x11/cpuminer-tribus-gate.o algo/x11/cpuminer-tribus.o algo/x11/cpuminer-tribus-4way.o algo/x11/cpuminer-timetravel-gate.o algo/x11/cpuminer-timetravel.o algo/x11/cpuminer-timetravel-4way.o algo/x11/cpuminer-timetravel10-gate.o algo/x11/cpuminer-timetravel10.o algo/x11/cpuminer-timetravel10-4way.o algo/x11/cpuminer-fresh.o algo/x11/cpuminer-x11evo.o algo/x11/cpuminer-x11evo-4way.o algo/x11/cpuminer-x11evo-gate.o algo/x12/cpuminer-x12-gate.o algo/x12/cpuminer-x12.o algo/x12/cpuminer-x12-4way.o algo/x13/cpuminer-x13-gate.o algo/x13/cpuminer-x13.o algo/x13/cpuminer-x13-4way.o algo/x13/cpuminer-x13sm3-gate.o algo/x13/cpuminer-x13sm3.o algo/x13/cpuminer-x13sm3-4way.o algo/x13/cpuminer-phi1612-gate.o algo/x13/cpuminer-phi1612.o algo/x13/cpuminer-phi1612-4way.o algo/x13/cpuminer-skunk-gate.o algo/x13/cpuminer-skunk-4way.o algo/x13/cpuminer-skunk.o algo/x13/cpuminer-drop.o algo/x14/cpuminer-x14-gate.o algo/x14/cpuminer-x14.o algo/x14/cpuminer-x14-4way.o algo/x14/cpuminer-veltor-gate.o algo/x14/cpuminer-veltor.o algo/x14/cpuminer-veltor-4way.o algo/x14/cpuminer-polytimos-gate.o algo/x14/cpuminer-polytimos.o algo/x14/cpuminer-polytimos-4way.o algo/x14/cpuminer-axiom.o algo/x15/cpuminer-x15-gate.o algo/x15/cpuminer-x15.o algo/x15/cpuminer-x15-4way.o algo/x17/cpuminer-x17-gate.o algo/x17/cpuminer-x17.o algo/x17/cpuminer-x17-4way.o algo/x17/cpuminer-xevan-gate.o algo/x17/cpuminer-xevan.o algo/x17/cpuminer-xevan-4way.o algo/x17/cpuminer-x16r-gate.o algo/x17/cpuminer-x16r.o algo/x17/cpuminer-x16r-4way.o algo/x17/cpuminer-hmq1725.o algo/yescrypt/cpuminer-yescrypt.o algo/yescrypt/cpuminer-sha256_Y.o algo/yescrypt/cpuminer-yescrypt-best.o asm/cpuminer-neoscrypt_asm.o asm/cpuminer-sha2-x64.o asm/cpuminer-scrypt-x64.o asm/cpuminer-aesb-x64.o compat/jansson/libjansson.a -lpthread -lssl -lcrypto -lgmp cpuminer-cpu-miner.o: In function longpoll_thread': /home/syndrael/cpuminer-opt/cpu-miner.c:2085: undefined reference tocurl_easy_init' /home/syndrael/cpuminer-opt/cpu-miner.c:2204: undefined reference to curl_easy_cleanup' cpuminer-cpu-miner.o: In functionworkio_thread': /home/syndrael/cpuminer-opt/cpu-miner.c:1410: undefined reference to curl_easy_init' /home/syndrael/cpuminer-opt/cpu-miner.c:1447: undefined reference tocurl_easy_cleanup' cpuminer-cpu-miner.o: In function show_version_and_exit': /home/syndrael/cpuminer-opt/cpu-miner.c:2520: undefined reference tocurl_version' cpuminer-cpu-miner.o: In function main': /home/syndrael/cpuminer-opt/cpu-miner.c:3253: undefined reference tocurl_global_init' cpuminer-util.o: In function json_load_url': /home/syndrael/cpuminer-opt/util.c:631: undefined reference tocurl_easy_init' /home/syndrael/cpuminer-opt/util.c:636: undefined reference to curl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:637: undefined reference tocurl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:638: undefined reference to curl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:639: undefined reference tocurl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:640: undefined reference to curl_easy_setopt' cpuminer-util.o:/home/syndrael/cpuminer-opt/util.c:641: more undefined references tocurl_easy_setopt' follow cpuminer-util.o: In function json_load_url': /home/syndrael/cpuminer-opt/util.c:655: undefined reference tocurl_easy_perform' /home/syndrael/cpuminer-opt/util.c:667: undefined reference to curl_easy_cleanup' /home/syndrael/cpuminer-opt/util.c:651: undefined reference tocurl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:653: undefined reference to curl_easy_setopt' cpuminer-util.o: In functionstratum_connect': /home/syndrael/cpuminer-opt/util.c:1137: undefined reference to curl_easy_cleanup' /home/syndrael/cpuminer-opt/util.c:1138: undefined reference tocurl_easy_init' /home/syndrael/cpuminer-opt/util.c:1161: undefined reference to curl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:1162: undefined reference tocurl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:1163: undefined reference to curl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:1164: undefined reference tocurl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:1165: undefined reference to curl_easy_setopt' cpuminer-util.o:/home/syndrael/cpuminer-opt/util.c:1166: more undefined references tocurl_easy_setopt' follow cpuminer-util.o: In function stratum_connect': /home/syndrael/cpuminer-opt/util.c:1181: undefined reference tocurl_easy_perform' /home/syndrael/cpuminer-opt/util.c:1184: undefined reference to curl_easy_cleanup' /home/syndrael/cpuminer-opt/util.c:1160: undefined reference tocurl_easy_setopt' cpuminer-util.o: In function stratum_disconnect': /home/syndrael/cpuminer-opt/util.c:1201: undefined reference tocurl_easy_cleanup' cpuminer-util.o: In function json_rpc_call': /home/syndrael/cpuminer-opt/util.c:464: undefined reference tocurl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:466: undefined reference to curl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:468: undefined reference tocurl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:470: undefined reference to curl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:471: undefined reference tocurl_easy_setopt' cpuminer-util.o:/home/syndrael/cpuminer-opt/util.c:472: more undefined references to curl_easy_setopt' follow cpuminer-util.o: In functionjson_rpc_call': /home/syndrael/cpuminer-opt/util.c:511: undefined reference to curl_slist_append' /home/syndrael/cpuminer-opt/util.c:512: undefined reference tocurl_slist_append' /home/syndrael/cpuminer-opt/util.c:513: undefined reference to curl_slist_append' /home/syndrael/cpuminer-opt/util.c:514: undefined reference tocurl_slist_append' /home/syndrael/cpuminer-opt/util.c:518: undefined reference to curl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:520: undefined reference tocurl_easy_perform' /home/syndrael/cpuminer-opt/util.c:611: undefined reference to curl_slist_free_all' /home/syndrael/cpuminer-opt/util.c:612: undefined reference tocurl_easy_reset' /home/syndrael/cpuminer-opt/util.c:498: undefined reference to curl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:484: undefined reference tocurl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:463: undefined reference to curl_easy_setopt' /home/syndrael/cpuminer-opt/util.c:620: undefined reference tocurl_slist_free_all' /home/syndrael/cpuminer-opt/util.c:621: undefined reference to curl_easy_reset' /home/syndrael/cpuminer-opt/util.c:524: undefined reference tocurl_easy_getinfo' collect2: error: ld returned 1 exit status Makefile:1850: recipe for target 'cpuminer' failed make[2]: [cpuminer] Error 1 make[2]: Leaving directory '/home/syndrael/cpuminer-opt' Makefile:5713: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/home/syndrael/cpuminer-opt' Makefile:907: recipe for target 'all' failed make: *** [all] Error 2

Thanks for your help Regards

syndrael commented 6 years ago

./build.sh instead of make.. Sorry my fault !!