xmr-stak-amd icon indicating copy to clipboard operation
xmr-stak-amd copied to clipboard

Problem when building on Arch Linux

Open elisaado opened this issue 7 years ago • 1 comments

Hi all, this happened then I tried to build xmr-stak-amd:

[ 42%] Built target xmr-stak-amd-c
[ 47%] Linking CXX executable bin/xmr-stak-amd
CMakeFiles/xmr-stak-amd.dir/cli-miner.cpp.o: In function `main':
cli-miner.cpp:(.text.startup+0x2e): undefined reference to `OPENSSL_init_ssl'
cli-miner.cpp:(.text.startup+0x3a): undefined reference to `OPENSSL_init_ssl'
cli-miner.cpp:(.text.startup+0x4b): undefined reference to `OPENSSL_init_crypto'
cli-miner.cpp:(.text.startup+0x57): undefined reference to `OPENSSL_init_ssl'
cli-miner.cpp:(.text.startup+0x63): undefined reference to `OPENSSL_init_crypto'
CMakeFiles/xmr-stak-amd.dir/socket.cpp.o: In function `tls_socket::set_hostname(char const*)':
socket.cpp:(.text+0x6a9): undefined reference to `TLS_method'
socket.cpp:(.text+0x722): undefined reference to `SSL_CTX_set_options'
CMakeFiles/xmr-stak-amd.dir/socket.cpp.o: In function `tls_socket::init_ctx()':
socket.cpp:(.text+0xbda): undefined reference to `TLS_method'
socket.cpp:(.text+0xc28): undefined reference to `SSL_CTX_set_options'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/xmr-stak-amd.dir/build.make:335: bin/xmr-stak-amd] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/xmr-stak-amd.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

I'm running a gcc version higher than 5.1 so there should be no problems...

OS: Arch Linux Arch: 64 bit (x86_64)

elisaado avatar Oct 10 '17 12:10 elisaado

Building works with cmake . -DOpenSSL_ENABLE=OFF && make

elisaado avatar Oct 17 '17 17:10 elisaado