新手问答 Ubuntu18.04 源码编译 eos mainnet-1.6.2 报错,有没有大佬遇到过,怎么解决的

liuchuanxi · July 22, 2019 · Last by dragon replied at September 06, 2019 · 417 hits

Scanning dependencies of target eosio_chain [ 90%] Building CXX object libraries/chain/CMakeFiles/eosio_chain.dir/merkle.cpp.o [ 90%] Linking CXX executable test_cypher_suites /usr/lib/x86_64-linux-gnu/libcrypto.a(threads_pthread.o): In function fork_once_func': (.text+0x16): undefined reference topthread_atfork' clang: error: linker command failed with exit code 1 (use -v to see invocation) libraries/fc/test/crypto/CMakeFiles/test_cypher_suites.dir/build.make:113: recipe for target 'libraries/fc/test/crypto/test_cypher_suites' failed make[2]: *** [libraries/fc/test/crypto/test_cypher_suites] Error 1 CMakeFiles/Makefile2:783: recipe for target 'libraries/fc/test/crypto/CMakeFiles/test_cypher_suites.dir/all' failed make[1]: *** [libraries/fc/test/crypto/CMakeFiles/test_cypher_suites.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....

共收到 2 条回复

尝试编译下新版本试试?

这个问题,你需要修改将-lpthread的顺序调整到libcrypto.a的后面 就能编译过了

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up