Closed nginnever closed 7 years ago
Trying to build zcash again after installing the updates from pool.diff results in an undefined reference error.
libbitcoin_server.a(libbitcoin_server_a-init.o): In function `AppInit2(boost::thread_group&, CScheduler&)': /home/voxelot/github/zcash-pool/zcash/src/init.cpp:1524: undefined reference to `poolRpcThread(void*)' libbitcoin_server.a(libbitcoin_server_a-main.o): In function `ActivateBestChain(CValidationState&, CBlock*)': /home/voxelot/github/zcash-pool/zcash/src/main.cpp:2707: undefined reference to `newBlockNotify(void*)' collect2: error: ld returned 1 exit status Makefile:3116: recipe for target 'zcashd' failed make[2]: *** [zcashd] Error 1 make[2]: *** Waiting for unfinished jobs.... libbitcoin_server.a(libbitcoin_server_a-main.o): In function `ActivateBestChain(CValidationState&, CBlock*)': /home/voxelot/github/zcash-pool/zcash/src/main.cpp:2707: undefined reference to `newBlockNotify(void*)' libbitcoin_server.a(libbitcoin_server_a-init.o): In function `AppInit2(boost::thread_group&, CScheduler&)': /home/voxelot/github/zcash-pool/zcash/src/init.cpp:1524: undefined reference to `poolRpcThread(void*)' collect2: error: ld returned 1 exit status Makefile:3102: recipe for target 'zcash-gtest' failed make[2]: *** [zcash-gtest] Error 1 libbitcoin_server.a(libbitcoin_server_a-main.o): In function `ActivateBestChain(CValidationState&, CBlock*)': /home/voxelot/github/zcash-pool/zcash/src/main.cpp:2707: undefined reference to `newBlockNotify(void*)' collect2: error: ld returned 1 exit status Makefile:3035: recipe for target 'test/test_bitcoin' failed make[2]: *** [test/test_bitcoin] Error 1 make[2]: Leaving directory '/home/voxelot/github/zcash-pool/zcash/src' Makefile:7457: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/voxelot/github/zcash-pool/zcash/src' Makefile:676: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1
This seems to be the same issue as this https://github.com/eXtremal-ik7/pool_frontend_zcash/issues/5 we both followed the same build process.
But that was closed without a resolution. It seems to be behaving like -L isn't finding the libraries in my BUILD_DIRECTORY which I have set to -L/home/voxelot/github/zcash-pool/...
-L/home/voxelot/github/zcash-pool/...
I have tried
LIBZCASH_LIBS = -lsnark -lgmp -lgmpxx -lboost_system-mt -lcrypto -lsodium -fopenmp -L$(HOME)/github/zcash-pool/poolcore/x86_64-Linux/zcash -lpoolrpczcash -L$(HOME)/github/zcash-pool/libp2p/x86_64-Linux/p2p -lp2p -L$(HOME)/github/zcash-pool/libp2p/x86_64-Linux/asyncio -lasyncio-0.3 -lrt
and
LIBZCASH_LIBS = -lsnark -lgmp -lgmpxx -lboost_system-mt -lcrypto -lsodium -fopenmp -L/home/voxelot/github/zcash-pool/poolcore/x86_64-Linux/zcash -lpoolrpczcash -L/home/voxelot/github/zcash-pool/libp2p/x86_64-Linux/p2p -lp2p -L/home/voxelot/github/zcash-pool/libp2p/x86_64-Linux/asyncio -lasyncio-0.3 -lrt
in zcash/Makefile
Any hints on how to get this to compile?
Fixed:
You have to add the link to /BUILD_DIR/zcash/src/Makefile
/BUILD_DIR/zcash/src/Makefile
maybe the readme should be updated to make this clear "Add path to pool libraries in Makefile:"
Trying to build zcash again after installing the updates from pool.diff results in an undefined reference error.
This seems to be the same issue as this https://github.com/eXtremal-ik7/pool_frontend_zcash/issues/5 we both followed the same build process.
But that was closed without a resolution. It seems to be behaving like -L isn't finding the libraries in my BUILD_DIRECTORY which I have set to
-L/home/voxelot/github/zcash-pool/...
I have tried
LIBZCASH_LIBS = -lsnark -lgmp -lgmpxx -lboost_system-mt -lcrypto -lsodium -fopenmp -L$(HOME)/github/zcash-pool/poolcore/x86_64-Linux/zcash -lpoolrpczcash -L$(HOME)/github/zcash-pool/libp2p/x86_64-Linux/p2p -lp2p -L$(HOME)/github/zcash-pool/libp2p/x86_64-Linux/asyncio -lasyncio-0.3 -lrt
and
LIBZCASH_LIBS = -lsnark -lgmp -lgmpxx -lboost_system-mt -lcrypto -lsodium -fopenmp -L/home/voxelot/github/zcash-pool/poolcore/x86_64-Linux/zcash -lpoolrpczcash -L/home/voxelot/github/zcash-pool/libp2p/x86_64-Linux/p2p -lp2p -L/home/voxelot/github/zcash-pool/libp2p/x86_64-Linux/asyncio -lasyncio-0.3 -lrt
in zcash/Makefile
Any hints on how to get this to compile?