Build error
Opened this issue · 1 comments
rianby64 commented
The execution of this
podman run -it ubuntu:bionic
apt-get update
apt-get upgrade
apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler qt5-default build-essential libtool autotools-dev automake pkg-config libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libminiupnpc-dev libgmp3-dev libdb-dev libdb++-dev libgmp3-dev lzma-dev libssl-dev zlib1g-dev zlib1g libgmp-dev git wget
git clone https://github.com/pepeteam/pepecoin.git
cd pepecoin
qmake
make -j2 -f Makefile USE_UPNP=0
ends up with the following error:
src/tests.c: In function 'test_ecdsa_der_parse':
src/tests.c:3561:52: error: dereferencing pointer to incomplete type 'ECDSA_SIG {aka struct ECDSA_SIG_st}'
valid_openssl = !BN_is_negative(sig_openssl->r) && !BN_is_negative(sig_openssl->s) && BN_num_bits(sig_openssl->r) > 0 && BN_num_bits(sig_openssl->r) <= 256 && BN_num_bits(sig_openssl->s) > 0 && BN_num_bits(sig_openssl->s) <= 256;
^~
Makefile:933: recipe for target 'src/tests-tests.o' failed
make[1]: *** [src/tests-tests.o] Error 1
make[1]: Leaving directory '/pepecoin/src/secp256k1'
Makefile:962: recipe for target '/pepecoin/src/secp256k1/src/libsecp256k1_la-secp256k1.o' failed
make: *** [/pepecoin/src/secp256k1/src/libsecp256k1_la-secp256k1.o] Error 2
make: *** Waiting for unfinished jobs....
crypt0pepe commented
You need to change libssl-dev to libssl1.0-dev in the apt-get line:
apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler qt5-default build-essential libtool autotools-dev automake pkg-config libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libminiupnpc-dev libgmp3-dev libdb-dev libdb++-dev libgmp3-dev lzma-dev libssl1.0-dev zlib1g-dev zlib1g libgmp-dev git wget