quark-project / quark

Quark cryptocurrency
http://www.qrknet.info/
MIT License
34 stars 40 forks source link

On - Make #17

Open milesk12 opened 7 years ago

milesk12 commented 7 years ago

Ubuntu 16.04

Trying to install make gives me this have tried numerous different variations of ./configure
I assume this is an ssl issue but I see no definition given for the ssl version to use?

CXX libquark_wallet_a-db.o CXX libquark_wallet_a-crypter.o CXX libquark_wallet_a-rpcdump.o CXX libquark_wallet_a-rpcwallet.o CXX libquark_wallet_a-wallet.o CXX libquark_wallet_a-wallet_ismine.o CXX libquark_wallet_a-walletdb.o AR libquark_wallet.a /usr/bin/ar: u' modifier ignored sinceD' is the default (see U') CXXLD quarkd quarkd-bitcoind.o: In functionboost::asio::ssl::detail::openssl_init_base::do_init::~do_init()': /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:64: undefined reference to CRYPTO_set_id_callback' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:65: undefined reference toCRYPTO_set_locking_callback' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:66: undefined reference to ERR_free_strings' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:72: undefined reference toEVP_cleanup' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:73: undefined reference to CRYPTO_cleanup_all_ex_data' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:76: undefined reference toENGINE_cleanup' quarkd-bitcoind.o: In function boost::asio::ssl::detail::openssl_init_base::do_init::~do_init()': /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:64: undefined reference toCRYPTO_set_id_callback' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:65: undefined reference to CRYPTO_set_locking_callback' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:66: undefined reference toERR_free_strings' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:72: undefined reference to EVP_cleanup' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:73: undefined reference toCRYPTO_cleanup_all_ex_data' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:76: undefined reference to ENGINE_cleanup' quarkd-bitcoind.o: In functionboost::asio::ssl::detail::openssl_init_base::do_init::do_init()': /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:39: undefined reference to SSL_library_init' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:40: undefined reference toSSL_load_error_strings' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:41: undefined reference to OPENSSL_add_all_algorithms_noconf' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:43: undefined reference toCRYPTO_num_locks' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:46: undefined reference to CRYPTO_set_locking_callback' /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:47: undefined reference toCRYPTO_set_id_callback' libquark_server.a(libquark_server_a-init.o): In function AppInit2(boost::thread_group&)': /opt/quark/src/init.cpp:777: undefined reference toSSLeay_version' libquark_server.a(libquark_server_a-rpcserver.o): In function boost::asio::ssl::context::context(boost::asio::ssl::context_base::method)': /usr/include/boost/asio/ssl/impl/context.ipp:120: undefined reference toSSLv23_method' libquark_util.a(libquark_util_a-util.o): In function CInit::~CInit()': /opt/quark/src/util.cpp:150: undefined reference toRAND_cleanup' /opt/quark/src/util.cpp:152: undefined reference to CRYPTO_set_locking_callback' /opt/quark/src/util.cpp:153: undefined reference toCRYPTO_num_locks' libquark_util.a(libquark_util_a-util.o): In function CInit::CInit()': /opt/quark/src/util.cpp:127: undefined reference toCRYPTO_num_locks' /opt/quark/src/util.cpp:128: undefined reference to CRYPTO_num_locks' /opt/quark/src/util.cpp:130: undefined reference toCRYPTO_set_locking_callback' /opt/quark/src/util.cpp:137: undefined reference to OPENSSL_no_config' libquark_wallet.a(libquark_wallet_a-crypter.o): In functionCCrypter::Encrypt(std::vector<unsigned char, secure_allocator > const&, std::vector<unsigned char, std::allocator >&)': /opt/quark/src/crypter.cpp:65: undefined reference to EVP_CIPHER_CTX_init' /opt/quark/src/crypter.cpp:69: undefined reference toEVP_CIPHER_CTX_cleanup' /opt/quark/src/crypter.cpp:69: undefined reference to EVP_CIPHER_CTX_cleanup' libquark_wallet.a(libquark_wallet_a-crypter.o): In functionCCrypter::Decrypt(std::vector<unsigned char, std::allocator > const&, std::vector<unsigned char, secure_allocator >&)': /opt/quark/src/crypter.cpp:92: undefined reference to EVP_CIPHER_CTX_init' /opt/quark/src/crypter.cpp:96: undefined reference toEVP_CIPHER_CTX_cleanup' /opt/quark/src/crypter.cpp:96: undefined reference to `EVP_CIPHER_CTX_cleanup' collect2: error: ld returned 1 exit status Makefile:2625: recipe for target 'quarkd' failed make[2]: [quarkd] Error 1 make[2]: Leaving directory '/opt/quark/src' Makefile:6396: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/opt/quark/src' Makefile:574: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1

SuwakoMmh commented 7 years ago

I had the same probs on Ubuntu 16.04. The problem is that in 16.04 boost is a dependency to some packages and so you can't downgrade it. To get this to work, you need to compile it on 14.04. I personnally did this in a chroot but this could work with VMs too.

milesk12 commented 7 years ago

I tried inside a VM with 14.04 exactly the same error code above, a little more input as to what the requirements are would be helpful. Like versions of other programs required to compile would help. This looks like an openssl issue but I can't figure out what version is required.

I'm going to cheat and use wine, unless anyone else has a solution.

SuwakoMmh commented 7 years ago

i have a .deb of 0.10.4.4 compiled by myself if you're interested. You may not trust me however.

milesk12 commented 7 years ago

Hey buddy thanks but I just used wine and it works, it seems a little odd that a release dated May requires a version of Ubuntu which is soon be end of product life cycle to compile but TBH it's not just quarkcoin I've had similar issues with other coins. I just compiled an entire exchange and have managed to get it semi functional I was only using it as an engineering experiment to prove to myself I could get it up and working and I have. Thanks for your help tho. This could probably be closed but I'm going to leave it open as the developers should really find a way to make compiling easier on newer version of Ubuntu without having to install older dependencies, I know that SSL has changed a lot in the past few years but still.