Linux 18.04 build error #285

Closed
opened 4 years ago by knul · 5 comments
knul commented 4 years ago

[ 94%] Linking CXX static library libdaemonizer.a
make[3]: Leaving directory '/home/mrx/wownero/build/Linux/master/release'
[ 94%] Built target daemonizer
make[3]: Entering directory '/home/mrx/wownero/build/Linux/master/release'
Scanning dependencies of target wallet_rpc_server
make[3]: Leaving directory '/home/mrx/wownero/build/Linux/master/release'
make[3]: Entering directory '/home/mrx/wownero/build/Linux/master/release'
[ 94%] Building CXX object src/wallet/CMakeFiles/wallet_rpc_server.dir/wallet_rpc_server.cpp.o
[ 95%] Linking CXX executable ../../bin/wownero-wallet-rpc
../crypto/libcncrypto.a(sha3.c.o): In function sha3': sha3.c:(.text+0x46): undefined reference to EVP_MD_CTX_new'
sha3.c:(.text+0x56): undefined reference to `EVP_sha3_256'
collect2: error: ld returned 1 exit status
src/wallet/CMakeFiles/wallet_rpc_server.dir/build.make:141: recipe for target 'bin/wownero-wallet-rpc' failed
make[3]: *** [bin/wownero-wallet-rpc] Error 1
make[3]: Leaving directory '/home/mrx/wownero/build/Linux/master/release'
CMakeFiles/Makefile2:2598: recipe for target 'src/wallet/CMakeFiles/wallet_rpc_server.dir/all' failed
make[2]: *** [src/wallet/CMakeFiles/wallet_rpc_server.dir/all] Error 2
make[2]: Leaving directory '/home/mrx/wownero/build/Linux/master/release'
Makefile:140: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/mrx/wownero/build/Linux/master/release'
Makefile:102: recipe for target 'release-all' failed
make: *** [release-all] Error 2

If I remove Line 686:from /src/cryptonote_core/cryptonote_tx_utils.cpp "crypto::sha3(bd.data(), bd.size(), res);" Then I can successfully build.

[ 94%] Linking CXX static library libdaemonizer.a make[3]: Leaving directory '/home/mrx/wownero/build/Linux/master/release' [ 94%] Built target daemonizer make[3]: Entering directory '/home/mrx/wownero/build/Linux/master/release' Scanning dependencies of target wallet_rpc_server make[3]: Leaving directory '/home/mrx/wownero/build/Linux/master/release' make[3]: Entering directory '/home/mrx/wownero/build/Linux/master/release' [ 94%] Building CXX object src/wallet/CMakeFiles/wallet_rpc_server.dir/wallet_rpc_server.cpp.o [ 95%] Linking CXX executable ../../bin/wownero-wallet-rpc ../crypto/libcncrypto.a(sha3.c.o): In function `sha3': sha3.c:(.text+0x46): undefined reference to `EVP_MD_CTX_new' sha3.c:(.text+0x56): undefined reference to `EVP_sha3_256' collect2: error: ld returned 1 exit status src/wallet/CMakeFiles/wallet_rpc_server.dir/build.make:141: recipe for target 'bin/wownero-wallet-rpc' failed make[3]: *** [bin/wownero-wallet-rpc] Error 1 make[3]: Leaving directory '/home/mrx/wownero/build/Linux/master/release' CMakeFiles/Makefile2:2598: recipe for target 'src/wallet/CMakeFiles/wallet_rpc_server.dir/all' failed make[2]: *** [src/wallet/CMakeFiles/wallet_rpc_server.dir/all] Error 2 make[2]: Leaving directory '/home/mrx/wownero/build/Linux/master/release' Makefile:140: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/mrx/wownero/build/Linux/master/release' Makefile:102: recipe for target 'release-all' failed make: *** [release-all] Error 2 If I remove Line 686:from /src/cryptonote_core/cryptonote_tx_utils.cpp "crypto::sha3(bd.data(), bd.size(), res);" Then I can successfully build.
Owner
type `openssl version` you need openssl 1.1.1^ https://askubuntu.com/questions/1102803/how-to-upgrade-openssl-1-1-0-to-1-1-1-in-ubuntu-18-04
knul commented 4 years ago
Poster

OpenSSL 1.1.1 11 Sep 2018 is my current version

OpenSSL 1.1.1 11 Sep 2018 is my current version
Owner

Did you have an older verion of OpenSSL before? If you updated to a new version, did you link libraries?

Did you have an older verion of OpenSSL before? If you updated to a new version, did you link libraries?
Owner

When you build, what do these lines say?

-- Using OpenSSL found at .....
-- Using OpenSSL include dir at ....
When you build, what do these lines say? ``` -- Using OpenSSL found at ..... -- Using OpenSSL include dir at .... ```
knul commented 4 years ago
Poster

My version was outdated. Upgrading opensll did the trick. Thank you!

My version was outdated. Upgrading opensll did the trick. Thank you!
knul closed this issue 4 years ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: wownero/wownero#285
Loading…
There is no content yet.