eXtremal-ik7 / pool_frontend_zcash

ZCash mining pool/solo mining suite
50 stars 46 forks source link

patch zcash with pool.diff and recompile failed...... #43

Open chenwfy opened 6 years ago

chenwfy commented 6 years ago

Hi, I got some trouble while trying to set up the zcash mining pool. Would you please give me a help to find the reasons which caused the error.

OS:Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-131-generic x86_64) https://github.com/zcash/zcash (V1.1.2) https://github.com/eXtremal-ik7/libp2p -b version/0.3

steps: 1:Compiled and run zcash ./zcutil/fetch-params.sh ./zcutil/build.sh -j$(nproc) screen -dmS "zecnode" ./ZEC/zcash/src/zcashd All blocks are downloaded.......

2. While following the instructions on page https://github.com/eXtremal-ik7/pool_frontend_zcash to install all items, I encountered an error when I executed the below commands:

cd /opt/ZEC/zcash nano Makefile LIBZCASH_LIBS = -lsnark -lgmp -lgmpxx -lboost_system-mt -lcrypto -lsodium -fopenmp -L/opt/ZEC/poolcore/x86_64-Linux/zcash -lpoolrpczcash -L/opt/ZEC/libp2p/x86_64-Linux/p2p -lp2p -L/opt/ZEC/libp2p/x86_64-Linux/asyncio -lasyncio-0.3 -lrt

cd src nano Makefile LIBZCASH_LIBS = -lsnark -lgmp -lgmpxx -lboost_system-mt -lcrypto -lsodium -fopenmp -L/opt/ZEC/poolcore/x86_64-Linux/zcash -lpoolrpczcash -L/opt/ZEC/libp2p/x86_64-Linux/p2p -lp2p -L/opt/ZEC/libp2p/x86_64-Linux/asyncio -lasyncio-0.3 -lrt

cd .. patch -p0 < /opt/ZEC/pool_frontend_zcash/pool.diff make -j2

error message: ........ /usr/bin/ld: cannot find -lsnark; /usr/bin/ld: cannot find -lboost_system-mt; ...............

I confirmed that I ran the below command successfully: sudo apt-get install cmake libssl-dev libsodium-dev libpcre3-dev libleveldb-dev libboost-all-dev libgmp-dev libprotobuf-dev protobuf-compiler libjansson-dev screen build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake

so, I tried: 1): Compiled and installed libsnark according to the instructions from https://github.com/scipr-lab/libsnark 2):dpkg -S libboost_system libboost-system1.58-dev:amd64: /usr/lib/x86_64-linux-gnu/libboost_system.a libboost-system1.58.0:amd64: /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 libboost-system1.58-dev:amd64: /usr/lib/x86_64-linux-gnu/libboost_system.so

ln -s /usr/lib/x86_64-linux-gnu/libboost_system.a /usr/lib/libboost_system-mt.a ln -s /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 /usr/lib/libboost_system-mt.so.1.58.0 ln -s /usr/lib/x86_64-linux-gnu/libboost_system.so /usr/lib/libboost_system-mt.so

Try Again: cd /opt/ZEC/zcash make -j2

The error still existed as following:

root@ZECPOOL:/opt/ZEC/zcash# nano Makefile root@ZECPOOL:/opt/ZEC/zcash# cd src root@ZECPOOL:/opt/ZEC/zcash/src# nano Makefile root@ZECPOOL:/opt/ZEC/zcash/src# cd .. root@ZECPOOL:/opt/ZEC/zcash# patch -p0 < /opt/ZEC/pool_frontend_zcash/pool.diff patching file src/init.cpp Hunk #1 succeeded at 71 (offset 13 lines). Hunk #2 succeeded at 1828 (offset 192 lines). patching file src/main.cpp Hunk #1 succeeded at 44 (offset 5 lines). Hunk #2 succeeded at 3139 (offset 429 lines). patching file src/miner.cpp Hunk #1 succeeded at 464 (offset 8 lines). root@ZECPOOL:/opt/ZEC/zcash# nano Makefile root@ZECPOOL:/opt/ZEC/zcash# cd src\

root@ZECPOOL:/opt/ZEC/zcash/src# root@ZECPOOL:/opt/ZEC/zcash/src# nano Makefile root@ZECPOOL:/opt/ZEC/zcash/src# cd .. root@ZECPOOL:/opt/ZEC/zcash# make -j2 Making all in src make[1]: Entering directory '/opt/ZEC/zcash/src' make[2]: Entering directory '/opt/ZEC/zcash/src' CXX zcashd-bitcoind.o CXX libbitcoin_server_a-sendalert.o CXX libbitcoin_server_a-addrman.o CXX libbitcoin_server_a-alert.o CXX libbitcoin_server_a-asyncrpcoperation.o CXX libbitcoin_server_a-asyncrpcqueue.o CXX libbitcoin_server_a-bloom.o CXX libbitcoin_server_a-chain.o CXX libbitcoin_server_a-checkpoints.o CXX libbitcoin_server_a-deprecation.o CXX libbitcoin_server_a-httprpc.o CXX libbitcoin_server_a-httpserver.o CXX libbitcoin_server_a-init.o CXX libbitcoin_server_a-dbwrapper.o CXX libbitcoin_server_a-main.o CXX libbitcoin_server_a-merkleblock.o CXX libbitcoin_server_a-metrics.o CXX libbitcoin_server_a-miner.o CXX libbitcoin_server_a-net.o CXX libbitcoin_server_a-paymentdisclosure.o CXX libbitcoin_server_a-paymentdisclosuredb.o CXX policy/libbitcoin_server_a-fees.o CXX libbitcoin_server_a-pow.o CXX libbitcoin_server_a-rest.o CXX rpc/libbitcoin_server_a-blockchain.o CXX rpc/libbitcoin_server_a-mining.o CXX rpc/libbitcoin_server_a-misc.o CXX rpc/libbitcoin_server_a-net.o CXX rpc/libbitcoin_server_a-rawtransaction.o CXX rpc/libbitcoin_server_a-server.o CXX script/libbitcoin_server_a-sigcache.o CXX libbitcoin_server_a-torcontrol.o CXX libbitcoin_server_a-txdb.o CXX libbitcoin_server_a-txmempool.o CXX libbitcoin_server_a-validationinterface.o CXX libbitcoin_common_a-chainparams.o CXX libbitcoin_common_a-coins.o CXX libbitcoin_common_a-compressor.o CXX consensus/libbitcoin_common_a-upgrades.o CXX libbitcoin_common_a-core_read.o CXX libbitcoin_common_a-core_write.o CXX libbitcoin_common_a-key.o CXX libbitcoin_common_a-key_io.o CXX libbitcoin_common_a-keystore.o CXX primitives/libbitcoin_common_a-block.o CXX primitives/libbitcoin_common_a-transaction.o CXX libbitcoin_common_a-pubkey.o CXX script/libbitcoin_common_a-interpreter.o CXX script/libbitcoin_common_a-script.o CXX script/libbitcoin_common_a-script_error.o CXX script/libbitcoin_common_a-sign.o CXX script/libbitcoin_common_a-standard.o CXX compat/libbitcoin_util_a-glibc_sanity.o CXX compat/libbitcoin_util_a-strnlen.o CXX libbitcoin_util_a-random.o CXX rpc/libbitcoin_util_a-protocol.o CXX support/libbitcoin_util_a-cleanse.o CXX libbitcoin_util_a-utilmoneystr.o CXX crypto/crypto_libbitcoin_crypto_a-equihash.o CXX crypto/crypto_libbitcoin_crypto_a-hmac_sha256.o CXX crypto/crypto_libbitcoin_crypto_a-hmac_sha512.o CXX crypto/crypto_libbitcoin_crypto_a-ripemd160.o CXX crypto/crypto_libbitcoin_crypto_a-sha1.o CXX crypto/crypto_libbitcoin_crypto_a-sha256.o CXX crypto/crypto_libbitcoin_crypto_a-sha512.o CXX zcash/libzcash_a-IncrementalMerkleTree.o CXX zcash/libzcash_a-NoteEncryption.o CXX zcash/libzcash_a-Address.o CXX zcash/libzcash_a-JoinSplit.o CXX zcash/libzcash_a-Proof.o CXX zcash/libzcash_a-Note.o CXX zcash/libzcash_a-prf.o CXX zcash/libzcash_a-util.o CXX zmq/libbitcoin_zmq_a-zmqabstractnotifier.o CXX zmq/libbitcoin_zmq_a-zmqnotificationinterface.o CXX zmq/libbitcoin_zmq_a-zmqpublishnotifier.o CXX libbitcoin_wallet_a-utiltest.o CXX libbitcoin_wallet_a-zcbenchmarks.o CXX wallet/libbitcoin_wallet_a-asyncrpcoperation_mergetoaddress.o CXX wallet/libbitcoin_wallet_a-asyncrpcoperation_sendmany.o CXX wallet/libbitcoin_wallet_a-asyncrpcoperation_shieldcoinbase.o CXX wallet/libbitcoin_wallet_a-crypter.o CXX wallet/libbitcoin_wallet_a-db.o CXX libbitcoin_wallet_a-paymentdisclosure.o CXX libbitcoin_wallet_a-paymentdisclosuredb.o CXX wallet/libbitcoin_wallet_a-rpcdisclosure.o CXX wallet/libbitcoin_wallet_a-rpcdump.o CXX wallet/libbitcoin_wallet_a-rpcwallet.o CXX wallet/libbitcoin_wallet_a-wallet.o CXX wallet/libbitcoin_wallet_a-wallet_ismine.o CXX wallet/libbitcoin_wallet_a-walletdb.o CXX zcash_cli-bitcoin-cli.o CXX rpc/libbitcoin_cli_a-client.o CXX zcash_tx-bitcoin-tx.o CXX test/test_test_bitcoin-arith_uint256_tests.o CXX test/test_test_bitcoin-addrman_tests.o CXX test/test_test_bitcoin-alert_tests.o CXX test/test_test_bitcoin-allocator_tests.o CXX test/test_test_bitcoin-base32_tests.o CXX test/test_test_bitcoin-base58_tests.o CXX test/test_test_bitcoin-base64_tests.o CXX test/test_test_bitcoin-bech32_tests.o CXX test/test_test_bitcoin-bip32_tests.o CXX test/test_test_bitcoin-bloom_tests.o CXX test/test_test_bitcoin-checkblock_tests.o CXX test/test_test_bitcoin-Checkpoints_tests.o CXX test/test_test_bitcoin-coins_tests.o CXX test/test_test_bitcoin-compress_tests.o CXX test/test_test_bitcoin-convertbits_tests.o CXX test/test_test_bitcoin-crypto_tests.o CXX test/test_test_bitcoin-DoS_tests.o CXX test/test_test_bitcoin-equihash_tests.o CXX test/test_test_bitcoin-getarg_tests.o CXX test/test_test_bitcoin-hash_tests.o CXX test/test_test_bitcoin-key_tests.o CXX test/test_test_bitcoin-dbwrapper_tests.o CXX test/test_test_bitcoin-main_tests.o CXX test/test_test_bitcoin-mempool_tests.o CXX test/test_test_bitcoin-miner_tests.o CXX test/test_test_bitcoin-mruset_tests.o CXX test/test_test_bitcoin-multisig_tests.o CXX test/test_test_bitcoin-netbase_tests.o CXX test/test_test_bitcoin-pmt_tests.o CXX test/test_test_bitcoin-policyestimator_tests.o CXX test/test_test_bitcoin-pow_tests.o CXX test/test_test_bitcoin-prevector_tests.o CXX test/test_test_bitcoin-raii_event_tests.o CXX test/test_test_bitcoin-reverselock_tests.o CXX test/test_test_bitcoin-rpc_tests.o CXX test/test_test_bitcoin-sanity_tests.o CXX test/test_test_bitcoin-scheduler_tests.o CXX test/test_test_bitcoin-script_P2SH_tests.o CXX test/test_test_bitcoin-script_tests.o CXX test/test_test_bitcoin-scriptnum_tests.o CXX test/test_test_bitcoin-serialize_tests.o CXX test/test_test_bitcoin-sighash_tests.o CXX test/test_test_bitcoin-sigopcount_tests.o CXX test/test_test_bitcoin-skiplist_tests.o CXX test/test_test_bitcoin-test_bitcoin.o CXX test/test_test_bitcoin-timedata_tests.o CXX test/test_test_bitcoin-torcontrol_tests.o CXX test/test_test_bitcoin-transaction_tests.o CXX test/test_test_bitcoin-uint256_tests.o CXX test/test_test_bitcoin-univalue_tests.o CXX test/test_test_bitcoin-util_tests.o CXX test/test_test_bitcoin-sha256compress_tests.o CXX test/test_test_bitcoin-accounting_tests.o CXX wallet/test/test_test_bitcoin-wallet_tests.o CXX test/test_test_bitcoin-rpc_wallet_tests.o CXX gtest/zcash_gtest-main.o CXX gtest/zcash_gtest-utils.o CXX gtest/zcash_gtest-test_checktransaction.o CXX gtest/zcash_gtest-json_test_vectors.o CXX gtest/zcash_gtest-test_foundersreward.o CXX wallet/gtest/zcash_gtest-test_wallet_zkeys.o CXX gtest/zcash_gtest-test_tautology.o CXX gtest/zcash_gtest-test_deprecation.o CXX gtest/zcash_gtest-test_equihash.o CXX gtest/zcash_gtest-test_httprpc.o CXX gtest/zcash_gtest-test_joinsplit.o CXX gtest/zcash_gtest-test_keystore.o CXX gtest/zcash_gtest-test_noteencryption.o CXX gtest/zcash_gtest-test_mempool.o CXX gtest/zcash_gtest-test_merkletree.o CXX gtest/zcash_gtest-test_metrics.o CXX gtest/zcash_gtest-test_miner.o CXX gtest/zcash_gtest-test_pow.o CXX gtest/zcash_gtest-test_random.o CXX gtest/zcash_gtest-test_rpc.o CXX gtest/zcash_gtest-test_sapling_note.o CXX gtest/zcash_gtest-test_transaction.o CXX gtest/zcash_gtest-test_upgrades.o CXX gtest/zcash_gtest-test_validation.o CXX gtest/zcash_gtest-test_circuit.o CXX gtest/zcash_gtest-test_txid.o CXX gtest/zcash_gtest-test_libzcash_utils.o CXX gtest/zcash_gtest-test_paymentdisclosure.o CXX gtest/zcash_gtest-test_proofs.o CXX gtest/zcash_gtest-test_pedersen_hash.o CXX gtest/zcash_gtest-test_checkblock.o CXX wallet/gtest/zcash_gtest-test_wallet.o AR libbitcoin_server.a AR libbitcoin_common.a CXX libbitcoin_util_a-clientversion.o AR crypto/libbitcoin_crypto.a AR libzcash.a AR libbitcoin_zmq.a AR libbitcoin_wallet.a AR libbitcoin_cli.a AR libbitcoin_util.a CXXLD zcash-cli CXXLD zcashd CXXLD zcash-tx libbitcoin_common.a(libbitcoin_common_a-transaction.o): In function SproutProofVerifier::operator()(std::array<unsigned char, 192ul> const&) const': /opt/ZEC/zcash/src/primitives/transaction.cpp:129: undefined reference tolibrustzcash_sprout_verify' libzcash.a(libzcash_a-IncrementalMerkleTree.o): In function libzcash::PedersenHash::combine(libzcash::PedersenHash const&, libzcash::PedersenHash const&, unsigned long)': /opt/ZEC/zcash/src/zcash/IncrementalMerkleTree.cpp:25: undefined reference tolibrustzcash_merkle_hash' libzcash.a(libzcash_a-IncrementalMerkleTree.o): In function libzcash::PedersenHash::uncommitted()': /opt/ZEC/zcash/src/zcash/IncrementalMerkleTree.cpp:33: undefined reference tolibrustzcash_tree_uncommitted' libzcash.a(libzcash_a-NoteEncryption.o): In function libzcash::SaplingNoteEncryption::FromDiversifier(std::array<unsigned char, 11ul>)': /opt/ZEC/zcash/src/zcash/NoteEncryption.cpp:109: undefined reference tolibrustzcash_sapling_generate_r' /opt/ZEC/zcash/src/zcash/NoteEncryption.cpp:112: undefined reference to librustzcash_sapling_ka_derivepublic' libzcash.a(libzcash_a-NoteEncryption.o): In functionlibzcash::SaplingNoteEncryption::encrypt_to_recipient(uint256 const&, std::array<unsigned char, 564ul> const&)': /opt/ZEC/zcash/src/zcash/NoteEncryption.cpp:130: undefined reference to librustzcash_sapling_ka_agree' libzcash.a(libzcash_a-NoteEncryption.o): In functionlibzcash::AttemptSaplingEncDecryption(std::array<unsigned char, 580ul> const&, uint256 const&, uint256 const&)': /opt/ZEC/zcash/src/zcash/NoteEncryption.cpp:163: undefined reference to librustzcash_sapling_ka_agree' libzcash.a(libzcash_a-NoteEncryption.o): In functionlibzcash::AttemptSaplingEncDecryption(std::array<unsigned char, 580ul> const&, uint256 const&, uint256 const&, uint256 const&)': /opt/ZEC/zcash/src/zcash/NoteEncryption.cpp:199: undefined reference to librustzcash_sapling_ka_agree' libzcash.a(libzcash_a-Address.o): In functionlibzcash::SaplingExpandedSpendingKey::full_viewing_key() const': /opt/ZEC/zcash/src/zcash/Address.cpp:51: undefined reference to librustzcash_ask_to_ak' /opt/ZEC/zcash/src/zcash/Address.cpp:52: undefined reference tolibrustzcash_nsk_to_nk' libzcash.a(libzcash_a-Address.o): In function libzcash::SaplingFullViewingKey::in_viewing_key() const': /opt/ZEC/zcash/src/zcash/Address.cpp:66: undefined reference tolibrustzcash_crh_ivk' libzcash.a(libzcash_a-Address.o): In function libzcash::SaplingFullViewingKey::is_valid() const': /opt/ZEC/zcash/src/zcash/Address.cpp:72: undefined reference tolibrustzcash_crh_ivk' libzcash.a(libzcash_a-Address.o): In function libzcash::SaplingIncomingViewingKey::address(std::array<unsigned char, 11ul>) const': /opt/ZEC/zcash/src/zcash/Address.cpp:87: undefined reference tolibrustzcash_check_diversifier' /opt/ZEC/zcash/src/zcash/Address.cpp:88: undefined reference to librustzcash_ivk_to_pkd' libzcash.a(libzcash_a-JoinSplit.o): In functionlibzcash::JoinSplitCircuit<2ul, 2ul>::prove(bool, std::array<libzcash::JSInput, 2ul> const&, std::array<libzcash::JSOutput, 2ul> const&, std::array<libzcash::SproutNote, 2ul>&, std::array<std::array<unsigned char, 601ul>, 2ul>&, uint256&, uint256 const&, uint256&, std::array<uint256, 2ul>&, std::array<uint256, 2ul>&, std::array<uint256, 2ul>&, unsigned long, unsigned long, uint256 const&, bool, uint256)': /opt/ZEC/zcash/src/zcash/JoinSplit.cpp:289: undefined reference to librustzcash_sprout_prove' libzcash.a(libzcash_a-Note.o): In functionlibzcash::SaplingNote::SaplingNote(libzcash::SaplingPaymentAddress const&, unsigned long)': /opt/ZEC/zcash/src/zcash/Note.cpp:47: undefined reference to librustzcash_sapling_generate_r' libzcash.a(libzcash_a-Note.o): In functionlibzcash::SaplingNote::cm() const': /opt/ZEC/zcash/src/zcash/Note.cpp:53: undefined reference to librustzcash_sapling_compute_cm' libzcash.a(libzcash_a-Note.o): In functionlibzcash::SaplingNote::nullifier(libzcash::SaplingSpendingKey const&, unsigned long) const': /opt/ZEC/zcash/src/zcash/Note.cpp:75: undefined reference to librustzcash_sapling_compute_nf' libzcash.a(libzcash_a-prf.o): In functionPRF_ask(uint256 const&)': /opt/ZEC/zcash/src/zcash/prf.cpp:31: undefined reference to librustzcash_to_scalar' libzcash.a(libzcash_a-prf.o): In functionPRF_nsk(uint256 const&)': /opt/ZEC/zcash/src/zcash/prf.cpp:39: undefined reference to librustzcash_to_scalar' libzcash.a(libzcash_a-prf.o): In functiondefault_diversifier(uint256 const&)': /opt/ZEC/zcash/src/zcash/prf.cpp:66: undefined reference to `librustzcash_check_diversifier' collect2: error: ld returned 1 exit status Makefile:2401: recipe for target 'zcash-tx' failed make[2]: [zcash-tx] Error 1 make[2]: Waiting for unfinished jobs.... libbitcoin_server.a(libbitcoin_server_a-init.o): In function ZC_LoadParams': /opt/ZEC/zcash/src/init.cpp:745: undefined reference tolibrustzcash_init_zksnark_params' libbitcoin_server.a(libbitcoin_server_a-main.o): In function ContextualCheckTransaction(CTransaction const&, CValidationState&, int, int)': /opt/ZEC/zcash/src/main.cpp:1001: undefined reference tolibrustzcash_sapling_verification_ctx_init' /opt/ZEC/zcash/src/main.cpp:1004: undefined reference to librustzcash_sapling_check_spend' /opt/ZEC/zcash/src/main.cpp:1015: undefined reference tolibrustzcash_sapling_verification_ctx_free' /opt/ZEC/zcash/src/main.cpp:1022: undefined reference to librustzcash_sapling_check_output' /opt/ZEC/zcash/src/main.cpp:1030: undefined reference tolibrustzcash_sapling_verification_ctx_free' /opt/ZEC/zcash/src/main.cpp:1036: undefined reference to librustzcash_sapling_final_check' /opt/ZEC/zcash/src/main.cpp:1043: undefined reference tolibrustzcash_sapling_verification_ctx_free' /opt/ZEC/zcash/src/main.cpp:1048: undefined reference to librustzcash_sapling_verification_ctx_free' libbitcoin_common.a(libbitcoin_common_a-transaction.o): In functionSproutProofVerifier::operator()(std::array<unsigned char, 192ul> const&) const': /opt/ZEC/zcash/src/primitives/transaction.cpp:129: undefined reference to librustzcash_sprout_verify' libzcash.a(libzcash_a-IncrementalMerkleTree.o): In functionlibzcash::PedersenHash::combine(libzcash::PedersenHash const&, libzcash::PedersenHash const&, unsigned long)': /opt/ZEC/zcash/src/zcash/IncrementalMerkleTree.cpp:25: undefined reference to librustzcash_merkle_hash' libzcash.a(libzcash_a-IncrementalMerkleTree.o): In functionlibzcash::PedersenHash::uncommitted()': /opt/ZEC/zcash/src/zcash/IncrementalMerkleTree.cpp:33: undefined reference to librustzcash_tree_uncommitted' libzcash.a(libzcash_a-NoteEncryption.o): In functionlibzcash::SaplingNoteEncryption::FromDiversifier(std::array<unsigned char, 11ul>)': /opt/ZEC/zcash/src/zcash/NoteEncryption.cpp:109: undefined reference to librustzcash_sapling_generate_r' /opt/ZEC/zcash/src/zcash/NoteEncryption.cpp:112: undefined reference tolibrustzcash_sapling_ka_derivepublic' libzcash.a(libzcash_a-NoteEncryption.o): In function libzcash::SaplingNoteEncryption::encrypt_to_recipient(uint256 const&, std::array<unsigned char, 564ul> const&)': /opt/ZEC/zcash/src/zcash/NoteEncryption.cpp:130: undefined reference tolibrustzcash_sapling_ka_agree' libzcash.a(libzcash_a-NoteEncryption.o): In function libzcash::AttemptSaplingEncDecryption(std::array<unsigned char, 580ul> const&, uint256 const&, uint256 const&)': /opt/ZEC/zcash/src/zcash/NoteEncryption.cpp:163: undefined reference tolibrustzcash_sapling_ka_agree' libzcash.a(libzcash_a-NoteEncryption.o): In function libzcash::AttemptSaplingEncDecryption(std::array<unsigned char, 580ul> const&, uint256 const&, uint256 const&, uint256 const&)': /opt/ZEC/zcash/src/zcash/NoteEncryption.cpp:199: undefined reference tolibrustzcash_sapling_ka_agree' libzcash.a(libzcash_a-Address.o): In function libzcash::SaplingExpandedSpendingKey::full_viewing_key() const': /opt/ZEC/zcash/src/zcash/Address.cpp:51: undefined reference tolibrustzcash_ask_to_ak' /opt/ZEC/zcash/src/zcash/Address.cpp:52: undefined reference to librustzcash_nsk_to_nk' libzcash.a(libzcash_a-Address.o): In functionlibzcash::SaplingFullViewingKey::in_viewing_key() const': /opt/ZEC/zcash/src/zcash/Address.cpp:66: undefined reference to librustzcash_crh_ivk' libzcash.a(libzcash_a-Address.o): In functionlibzcash::SaplingFullViewingKey::is_valid() const': /opt/ZEC/zcash/src/zcash/Address.cpp:72: undefined reference to librustzcash_crh_ivk' libzcash.a(libzcash_a-Address.o): In functionlibzcash::SaplingIncomingViewingKey::address(std::array<unsigned char, 11ul>) const': /opt/ZEC/zcash/src/zcash/Address.cpp:87: undefined reference to librustzcash_check_diversifier' /opt/ZEC/zcash/src/zcash/Address.cpp:88: undefined reference tolibrustzcash_ivk_to_pkd' libzcash.a(libzcash_a-JoinSplit.o): In function `libzcash::JoinSplitCircuit<2ul, 2ul>::prove(bool, std::array<libzcash::JSInput, 2ul> const&, std::array<libzcash::JSOutput, 2ul> const&, std::array<libzcash::SproutNote, 2ul>&, std::array<std::array<unsigned char, 601ul>, 2ul>&, uint256&, uint256 const&, uint256&, std::array<uint256, 2ul>&, std::array<uint256, 2ul>&, std::array<uint256, 2ul>&, unsigned long, unsigned long, uint256 const&, bool, uint256)': /opt/ZEC/zcash/src/zcash/JoinSplit.cpp:289: undefined reference to librustzcash_sprout_prove' libzcash.a(libzcash_a-Note.o): In functionlibzcash::SaplingNote::SaplingNote(libzcash::SaplingPaymentAddress const&, unsigned long)': /opt/ZEC/zcash/src/zcash/Note.cpp:47: undefined reference to librustzcash_sapling_generate_r' libzcash.a(libzcash_a-Note.o): In functionlibzcash::SaplingNote::cm() const': /opt/ZEC/zcash/src/zcash/Note.cpp:53: undefined reference to librustzcash_sapling_compute_cm' libzcash.a(libzcash_a-Note.o): In functionlibzcash::SaplingNote::nullifier(libzcash::SaplingSpendingKey const&, unsigned long) const': /opt/ZEC/zcash/src/zcash/Note.cpp:75: undefined reference to librustzcash_sapling_compute_nf' libzcash.a(libzcash_a-prf.o): In functionPRF_ask(uint256 const&)': /opt/ZEC/zcash/src/zcash/prf.cpp:31: undefined reference to librustzcash_to_scalar' libzcash.a(libzcash_a-prf.o): In functionPRF_nsk(uint256 const&)': /opt/ZEC/zcash/src/zcash/prf.cpp:39: undefined reference to librustzcash_to_scalar' libzcash.a(libzcash_a-prf.o): In functiondefault_diversifier(uint256 const&)': /opt/ZEC/zcash/src/zcash/prf.cpp:66: undefined reference to `librustzcash_check_diversifier' collect2: error: ld returned 1 exit status Makefile:2405: recipe for target 'zcashd' failed make[2]: [zcashd] Error 1 make[2]: Leaving directory '/opt/ZEC/zcash/src' Makefile:5678: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/opt/ZEC/zcash/src' Makefile:628: recipe for target 'all-recursive' failed make: * [all-recursive] Error 1

root@ZECPOOL:/opt/ZEC/zcash#

Would you help me find out what’s wrong and how to solve the problem? thk u!

eXtremal-ik7 commented 6 years ago

Can you try build original (non-patched) ZCash code before using instructions from here https://github.com/zcash/zcash/wiki/1.0-User-Guide ? I think rust disable option can help you.