eXtremal-ik7 / pool_frontend_zcash

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

New poolcore compile error #23

Open jrazer opened 7 years ago

jrazer commented 7 years ago

CentOS 7

cmake ../src -DROOT_SOURCE_DIR=/opt -DZCASH_ENABLED=1 ends with: [ 33%] Building CXX object poolcore/CMakeFiles/poolcore.dir/api.cpp.o In file included from /opt/poolcore/src/include/poolcore/accounting.h:6:0, from /opt/poolcore/src/include/poolcore/backend.h:4, from /opt/poolcore/src/poolcore/api.cpp:4: /opt/poolcore/src/include/poolcore/kvdb.h:4:24: fatal error: leveldb/db.h: No such file or directory

include "leveldb/db.h"

                    ^

compilation terminated. make[2]: [poolcore/CMakeFiles/poolcore.dir/api.cpp.o] Error 1 make[1]: [poolcore/CMakeFiles/poolcore.dir/all] Error 2 make: *** [all] Error 2

nginnever commented 7 years ago

Looks like you are missing a linkage to leveldb. Are you sure that you have it installed on your Centos system?

jrazer commented 7 years ago

Yes, install it - and next error in pool_frontend_zcash -- Found Protobuf: /usr/lib64/libprotobuf.so;-lpthread (found version "2.5.0") -- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.1e") -- Configuring done -- Generating done -- Build files have been written to: /opt/pool_frontend_zcash/x86_64-Linux [root@face1 x86_64-Linux]# make [ 12%] Running C++ protocol buffer compiler on /opt/pool_frontend_zcash/src/protocol.proto Scanning dependencies of target pool_frontend_zcash [ 25%] Building CXX object CMakeFiles/pool_frontend_zcash.dir/main.cpp.o In file included from /opt/pool_frontend_zcash/src/main.cpp:1:0: /opt/pool_frontend_zcash/src/zcashpool.h:83:3: error: ‘set’ in namespace ‘std’ does not name a type std::set uniqueShares; ^ /opt/pool_frontend_zcash/src/main.cpp: In function ‘void timerProc(void)’: /opt/pool_frontend_zcash/src/main.cpp:332:14: error: ‘struct poolContext’ has no member named ‘uniqueShares’ ctx->uniqueShares.clear();
^ /opt/pool_frontend_zcash/src/main.cpp: In function ‘void signalHandler(p2pPeer, void, size_t, void*)’: /opt/pool_frontend_zcash/src/main.cpp:454:16: error: ‘struct poolContext’ has no member named ‘uniqueShares’ context->uniqueShares.clear(); ^ make[2]: [CMakeFiles/pool_frontend_zcash.dir/main.cpp.o] Error 1 make[1]: [CMakeFiles/pool_frontend_zcash.dir/all] Error 2 make: *** [all] Error 2

OS: CentOS 7

criminalist commented 6 years ago

The same error, most likely due to the version of openssl, you need 1.0.1 If you decide to write here