z-classic / zclassic

Zclassic is financial freedom. ZK-SNARKs, and no founder's fee.
https://www.reddit.com/r/Zclassic/
Other
189 stars 81 forks source link

Build errors!! #186

Open hysystem opened 5 years ago

hysystem commented 5 years ago

on_a-chainparams.o -MD -MP -MF .deps/libbitcoin_common_a-chainparams.Tpo -c -o libbitcoin_common_a-chainparams.o test -f 'chainparams.cpp' || echo './'chainparams.cpp chainparams.cpp: In constructor ‘CMainParams::CMainParams()’: chainparams.cpp:52:19: error: ‘struct Consensus::Params’ has no member named ‘fPowAllowMinDifficultyBlocks’ consensus.fPowAllowMinDifficultyBlocks = false; ^ chainparams.cpp: In constructor ‘CTestNetParams::CTestNetParams()’: chainparams.cpp:228:19: error: ‘struct Consensus::Params’ has no member named ‘fPowAllowMinDifficultyBlocks’ consensus.fPowAllowMinDifficultyBlocks = true; ^ At global scope: cc1plus: error: unrecognized command line option "-Wno-builtin-declaration-mismatch" [-Werror] cc1plus: all warnings being treated as errors make[2]: [libbitcoin_common_a-chainparams.o] Error 1 make[2]: Leaving directory `/data/zclassic/src' make[1]: [all-recursive] Error 1 make[1]: Leaving directory `/data/zclassic/src' make: *** [all-recursive] Error 1

nimbosa commented 5 years ago

hi @iasoo, are you using the latest master here on github? if not, please pull from the latest changes, Thanks!

nimbosa commented 5 years ago

also, what Operating System (and version) are you using?

hysystem commented 5 years ago

LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.5.1804 (Core) Release: 7.5.1804 Codename: Core @nimbosa

hysystem commented 5 years ago

git status

On branch master nothing to commit, working directory clean

git pull Already up-to-date.

I using using the latest maste!

hysystem commented 5 years ago

./zcutil/fetch-params.sh

Zcash - fetch-params.sh

This script will fetch the Zcash zkSNARK parameters and verify their integrity with sha256sum.

If they already exist locally, it will exit now and do nothing else. @nimbosa

hysystem commented 5 years ago

gcc version 4.9.2 20150212 (Red Hat 4.9.2-6) (GCC)

nixtechie49 commented 5 years ago

Got the same error during build command.

nimbosa commented 5 years ago
  1. 187 & #188 should fix this on xenial, it must be too old by now and bionic is the new LTS, reference client now uses Ubuntu 18.04.1 LTS, we just might make it official and documentation will be updated properly, CentOS builds however are not yet documented, as far as i know

  2. deprecate policy must also be updated

i must have overlooked these as i was working on the Overwinter branch v1.1.1, fixes will follow shortly, thanks for reporting this