eXtremal-ik7 / pool_frontend_zcash

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

pool_frontend_zcash compile error #4

Open coolsd opened 7 years ago

coolsd commented 7 years ago

root@iZj6c2wgxq1l7b5yeipaz4Z:~/pool_frontend_zcash/x86_64-Linux# cmake ../src -DROOT_SOURCE_DIR=/root -- The C compiler identification is GNU 4.8.4 -- The CXX compiler identification is GNU 4.8.4 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /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: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Boost version: 1.54.0 -- Found the following Boost libraries: -- filesystem -- thread -- system -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found PROTOBUF: /usr/lib/x86_64-linux-gnu/libprotobuf.so -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1f") CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: AIO_INCLUDE_DIR used as include directory in directory /root/pool_frontend_zcash/src AIO_LIBRARY linked by target "pool_frontend_zcash" in directory /root/pool_frontend_zcash/src CONFIG4CPP_INCLUDE_DIR used as include directory in directory /root/pool_frontend_zcash/src CONFIG4CPP_LIBRARY linked by target "pool_frontend_zcash" in directory /root/pool_frontend_zcash/src P2PUTILS_LIBRARY linked by target "pool_frontend_zcash" in directory /root/pool_frontend_zcash/src P2P_LIBRARY linked by target "pool_frontend_zcash" in directory /root/pool_frontend_zcash/src POOLCOMMON_LIBRARY linked by target "pool_frontend_zcash" in directory /root/pool_frontend_zcash/src POOLCORE_INCLUDE_DIR used as include directory in directory /root/pool_frontend_zcash/src POOLCORE_LIBRARY linked by target "pool_frontend_zcash" in directory /root/pool_frontend_zcash/src

-- Configuring incomplete, errors occurred! See also "/root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeOutput.log". See also "/root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeError.log".

burimaliu commented 7 years ago

I also have the same error, can you check /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeError.log and post the content.

coolsd commented 7 years ago

/root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeError.log

Determining if the pthread_create exist failed with the following output: Change Dir: /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec1442566073/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec1442566073.dir/build.make CMakeFiles/cmTryCompileExec1442566073.dir/build make[1]: Entering directory /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1442566073.dir/CheckSymbolExists.c.o /usr/bin/cc -o CMakeFiles/cmTryCompileExec1442566073.dir/CheckSymbolExists.c.o -c /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTryCompileExec1442566073 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1442566073.dir/link.txt --verbose=1 /usr/bin/cc CMakeFiles/cmTryCompileExec1442566073.dir/CheckSymbolExists.c.o -o cmTryCompileExec1442566073 -rdynamic CMakeFiles/cmTryCompileExec1442566073.dir/CheckSymbolExists.c.o: In functionmain': CheckSymbolExists.c:(.text+0x16): undefined reference to pthread_create' collect2: error: ld returned 1 exit status make[1]: *** [cmTryCompileExec1442566073] Error 1 make[1]: Leaving directory/root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp' make: *\ [cmTryCompileExec1442566073/fast] Error 2

File /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */

include

int main(int argc, char\ argv) { (void)argv;

ifndef pthread_create

return ((int*)(&pthread_create))[argc];

else

(void)argc; return 0;

endif

}

Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec1355109593/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec1355109593.dir/build.make CMakeFiles/cmTryCompileExec1355109593.dir/build make[1]: Entering directory /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1355109593.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec1355109593.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.2/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1355109593 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1355109593.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec1355109593.dir/CheckFunctionExists.c.o -o cmTryCompileExec1355109593 -rdynamic -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status make[1]: *** [cmTryCompileExec1355109593] Error 1 make[1]: Leaving directory/root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp' make: *\ [cmTryCompileExec1355109593/fast] Error 2

eXtremal-ik7 commented 7 years ago

I added config4cpp to setup instruction. Before build pool_frontend_zcash you must download sources and build 'libp2p' and 'poolcore' libraries.

coolsd commented 7 years ago

root@iZj6cgsnrlfzjxvqxjtstpZ:~/pool_frontend_zcash/x86_64-Linux# make -j5 [ 14%] [ 28%] Building CXX object CMakeFiles/pool_frontend_zcash.dir/zcashpool.cpp.o Building CXX object CMakeFiles/pool_frontend_zcash.dir/main.cpp.o In file included from /root/pool_frontend_zcash/src/main.cpp:1:0: /root/pool_frontend_zcash/src/zcashpool.h:83:3: error: ‘set’ in namespace ‘std’ does not name a type std::set uniqueShares; ^ In file included from /root/pool_frontend_zcash/src/zcashpool.cpp:1:0: /root/pool_frontend_zcash/src/zcashpool.h:83:3: error: ‘set’ in namespace ‘std’ does not name a type std::set uniqueShares; ^ /root/pool_frontendzcash/src/main.cpp: In function ‘void* timerProc(void)’: /root/pool_frontend_zcash/src/main.cpp:334:14: error: ‘struct poolContext’ has no member named ‘uniqueShares’ ctx->uniqueShares.clear(); ^ /root/pool_frontendzcash/src/main.cpp: In function ‘void signalHandler(p2pPeer, void_, sizet, void)’: /root/pool_frontend_zcash/src/main.cpp:456:16: error: ‘struct poolContext’ has no member named ‘uniqueShares’ context->uniqueShares.clear(); ^ /root/pool_frontendzcash/src/zcashpool.cpp: In function ‘void onShare(poolContext, pool::proto::Request&, pool::proto::Reply&, bool_)’: /root/pool_frontend_zcash/src/zcashpool.cpp:212:17: error: ‘struct poolContext’ has no member named ‘uniqueShares’ if (!context->uniqueShares.insert(shareHeaderHash).second) { ^ /root/pool_frontend_zcash/src/zcashpool.cpp: In function ‘int64t stratumCheckShare(poolContext, aioObject, StratumMessage, uint256, const char*, int64t)’: /root/pool_frontend_zcash/src/zcashpool.cpp:389:17: error: ‘struct poolContext’ has no member named ‘uniqueShares’ if (!context->uniqueShares.insert(shareHeaderHash).second) { ^ make[2]: ** [CMakeFiles/pool_frontend_zcash.dir/main.cpp.o] Error 1 make[2]: * Waiting for unfinished jobs.... make[2]: * [CMakeFiles/pool_frontend_zcash.dir/zcashpool.cpp.o] Error 1 make[1]: * [CMakeFiles/pool_frontend_zcash.dir/all] Error 2 make: * [all] Error 2

eXtremal-ik7 commented 7 years ago

error: ‘set’ in namespace ‘std’ does not name a type Hmm.. add #include ?

eXtremal-ik7 commented 7 years ago

#include <set>

grib69 commented 7 years ago

Error like in coolsd CentoOS 7

make -j5 [ 12%] Running C++ protocol buffer compiler on /root/tmp/coins/zec/_build-pool/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 [ 37%] Building CXX object CMakeFiles/pool_frontend_zcash.dir/zcashpool.cpp.o [ 50%] Building CXX object CMakeFiles/pool_frontend_zcash.dir/zmtp.cpp.o [ 62%] Building CXX object CMakeFiles/pool_frontend_zcash.dir/equihash_original.cpp.o [ 75%] Building CXX object CMakeFiles/pool_frontend_zcash.dir/stratum.cpp.o [ 87%] Building CXX object CMakeFiles/pool_frontend_zcash.dir/protocol.pb.cc.o In file included from /root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/main.cpp:1:0: /root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/zcashpool.h:85:3: error: ‘set’ in namespace ‘std’ does not name a type std::set uniqueShares; ^ In file included from /root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/zcashpool.cpp:1:0: /root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/zcashpool.h:85:3: error: ‘set’ in namespace ‘std’ does not name a type std::set uniqueShares; ^ /root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/main.cpp: In function ‘void timerProc(void)’: /root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/main.cpp:334:14: error: ‘struct poolContext’ has no member named ‘uniqueShares’ ctx->uniqueShares.clear(); ^ /root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/main.cpp: In function ‘void signalHandler(p2pPeer, void, size_t, void)’: /root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/main.cpp:465:16: error: ‘struct poolContext’ has no member named ‘uniqueShares’ context->uniqueShares.clear(); ^ /root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/zcashpool.cpp: In function ‘void onShare(poolContext, pool::proto::Request&, pool::proto::Reply&, bool)’: /root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/zcashpool.cpp:201:17: error: ‘struct poolContext’ has no member named ‘uniqueShares’ if (!context->uniqueShares.insert(shareHeaderHash).second) { ^ /root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/zcashpool.cpp: In function ‘int64_t stratumCheckShare(poolContext, aioObject, StratumMessage, uint256*, const char, int64_t)’: /root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/zcashpool.cpp:376:17: error: ‘struct poolContext’ has no member named ‘uniqueShares’ if (!context->uniqueShares.insert(shareHeaderHash).second) { ^ make[2]: ** [CMakeFiles/pool_frontend_zcash.dir/main.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... make[2]: [CMakeFiles/pool_frontend_zcash.dir/zcashpool.cpp.o] Error 1 make[1]: [CMakeFiles/pool_frontend_zcash.dir/all] Error 2 make: *** [all] Error 2

eesmet commented 7 years ago

Hello,

I'm having problem here can anyone help me about ?

User@Userpool:~/ZEC/poolcore/x86_64-Linux$ cmake ../src -DROOT_SOURCE_DIR=/home/user/ZEC -DZCASH_ENABLED=1 -- Boost version: 1.58.0 -- Found the following Boost libraries: -- thread -- system -- chrono -- date_time -- atomic /home/user/ZEC/zcash CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: AIO_LIBRARY linked by target "poolrpccmd" in directory /home/user/ZEC/poolcore/src/poolrpccmd P2P_LIBRARY linked by target "poolrpccmd" in directory /home/user/ZEC/poolcore/src/poolrpccmd

-- Configuring incomplete, errors occurred! See also "/home/user/ZEC/poolcore/x86_64-Linux/CMakeFiles/CMakeOutput.log". See also "/home/user/ZEC/poolcore/x86_64-Linux/CMakeFiles/CMakeError.log".

hung135 commented 7 years ago

any update on the error above?