Advertisement
Guest User

Cryptonite wallet Linux building errors

a guest
Sep 25th, 2017
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.60 KB | None | 0 0
  1. Making all in src
  2. make[1]: Entering directory '/home/severoraz/lab/builds/Cryptonite/src'
  3. make all-recursive
  4. make[2]: Entering directory '/home/severoraz/lab/builds/Cryptonite/src'
  5. Making all in .
  6. make[3]: Entering directory '/home/severoraz/lab/builds/Cryptonite/src'
  7. CXX addrman.o
  8. In file included from chainparams.h:9:0,
  9. from protocol.h:13,
  10. from addrman.h:9,
  11. from addrman.cpp:5:
  12. bignum.h:56:24: error: invalid use of incomplete type ‘BIGNUM {aka struct bignum_st}’
  13. class CBigNum : public BIGNUM
  14. ^~~~~~
  15. In file included from /usr/include/openssl/crypto.h:31:0,
  16. from allocators.h:15,
  17. from serialize.h:9,
  18. from netbase.h:13,
  19. from addrman.h:8,
  20. from addrman.cpp:5:
  21. /usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’
  22. typedef struct bignum_st BIGNUM;
  23. ^~~~~~~~~
  24. In file included from chainparams.h:9:0,
  25. from protocol.h:13,
  26. from addrman.h:9,
  27. from addrman.cpp:5:
  28. bignum.h: In constructor ‘CBigNum::CBigNum()’:
  29. bignum.h:61:9: error: ‘BN_init’ was not declared in this scope
  30. BN_init(this);
  31. ^~~~~~~
  32. bignum.h:61:9: note: suggested alternative: ‘BN_print’
  33. BN_init(this);
  34. ^~~~~~~
  35. BN_print
  36. bignum.h: In copy constructor ‘CBigNum::CBigNum(const CBigNum&)’:
  37. bignum.h:66:9: error: ‘BN_init’ was not declared in this scope
  38. BN_init(this);
  39. ^~~~~~~
  40. bignum.h:66:9: note: suggested alternative: ‘BN_print’
  41. BN_init(this);
  42. ^~~~~~~
  43. BN_print
  44. bignum.h:67:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’
  45. if (!BN_copy(this, &b))
  46. ^
  47. bignum.h:69:31: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_clear_free(BIGNUM*)’
  48. BN_clear_free(this);
  49. ^
  50. bignum.h: In member function ‘CBigNum& CBigNum::operator=(const CBigNum&)’:
  51. bignum.h:76:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’
  52. if (!BN_copy(this, &b))
  53. ^
  54. bignum.h: In destructor ‘CBigNum::~CBigNum()’:
  55. bignum.h:83:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_clear_free(BIGNUM*)’
  56. BN_clear_free(this);
  57. ^
  58. bignum.h: In constructor ‘CBigNum::CBigNum(signed char)’:
  59. bignum.h:87:37: error: ‘BN_init’ was not declared in this scope
  60. CBigNum(signed char n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
  61. ^~~~~~~
  62. bignum.h:87:37: note: suggested alternative: ‘BN_print’
  63. CBigNum(signed char n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
  64. ^~~~~~~
  65. BN_print
  66. bignum.h: In constructor ‘CBigNum::CBigNum(short int)’:
  67. bignum.h:88:37: error: ‘BN_init’ was not declared in this scope
  68. CBigNum(short n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
  69. ^~~~~~~
  70. bignum.h:88:37: note: suggested alternative: ‘BN_print’
  71. CBigNum(short n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
  72. ^~~~~~~
  73. BN_print
  74. bignum.h: In constructor ‘CBigNum::CBigNum(int)’:
  75. bignum.h:89:37: error: ‘BN_init’ was not declared in this scope
  76. CBigNum(int n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
  77. ^~~~~~~
  78. bignum.h:89:37: note: suggested alternative: ‘BN_print’
  79. CBigNum(int n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
  80. ^~~~~~~
  81. BN_print
  82. bignum.h: In constructor ‘CBigNum::CBigNum(long int)’:
  83. bignum.h:90:37: error: ‘BN_init’ was not declared in this scope
  84. CBigNum(long n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
  85. ^~~~~~~
  86. bignum.h:90:37: note: suggested alternative: ‘BN_print’
  87. CBigNum(long n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
  88. ^~~~~~~
  89. BN_print
  90. bignum.h: In constructor ‘CBigNum::CBigNum(long long int)’:
  91. bignum.h:91:37: error: ‘BN_init’ was not declared in this scope
  92. CBigNum(long long n) { BN_init(this); setint64(n); }
  93. ^~~~~~~
  94. bignum.h:91:37: note: suggested alternative: ‘BN_print’
  95. CBigNum(long long n) { BN_init(this); setint64(n); }
  96. ^~~~~~~
  97. BN_print
  98. bignum.h: In constructor ‘CBigNum::CBigNum(unsigned char)’:
  99. bignum.h:92:37: error: ‘BN_init’ was not declared in this scope
  100. CBigNum(unsigned char n) { BN_init(this); setulong(n); }
  101. ^~~~~~~
  102. bignum.h:92:37: note: suggested alternative: ‘BN_print’
  103. CBigNum(unsigned char n) { BN_init(this); setulong(n); }
  104. ^~~~~~~
  105. BN_print
  106. bignum.h: In constructor ‘CBigNum::CBigNum(short unsigned int)’:
  107. bignum.h:93:37: error: ‘BN_init’ was not declared in this scope
  108. CBigNum(unsigned short n) { BN_init(this); setulong(n); }
  109. ^~~~~~~
  110. bignum.h:93:37: note: suggested alternative: ‘BN_print’
  111. CBigNum(unsigned short n) { BN_init(this); setulong(n); }
  112. ^~~~~~~
  113. BN_print
  114. bignum.h: In constructor ‘CBigNum::CBigNum(unsigned int)’:
  115. bignum.h:94:37: error: ‘BN_init’ was not declared in this scope
  116. CBigNum(unsigned int n) { BN_init(this); setulong(n); }
  117. ^~~~~~~
  118. bignum.h:94:37: note: suggested alternative: ‘BN_print’
  119. CBigNum(unsigned int n) { BN_init(this); setulong(n); }
  120. ^~~~~~~
  121. BN_print
  122. bignum.h: In constructor ‘CBigNum::CBigNum(long unsigned int)’:
  123. bignum.h:95:37: error: ‘BN_init’ was not declared in this scope
  124. CBigNum(unsigned long n) { BN_init(this); setulong(n); }
  125. ^~~~~~~
  126. bignum.h:95:37: note: suggested alternative: ‘BN_print’
  127. CBigNum(unsigned long n) { BN_init(this); setulong(n); }
  128. ^~~~~~~
  129. BN_print
  130. bignum.h: In constructor ‘CBigNum::CBigNum(long long unsigned int)’:
  131. bignum.h:96:37: error: ‘BN_init’ was not declared in this scope
  132. CBigNum(unsigned long long n) { BN_init(this); setuint64(n); }
  133. ^~~~~~~
  134. bignum.h:96:37: note: suggested alternative: ‘BN_print’
  135. CBigNum(unsigned long long n) { BN_init(this); setuint64(n); }
  136. ^~~~~~~
  137. BN_print
  138. bignum.h: In constructor ‘CBigNum::CBigNum(uint256)’:
  139. bignum.h:97:37: error: ‘BN_init’ was not declared in this scope
  140. explicit CBigNum(uint256 n) { BN_init(this); setuint256(n); }
  141. ^~~~~~~
  142. bignum.h:97:37: note: suggested alternative: ‘BN_print’
  143. explicit CBigNum(uint256 n) { BN_init(this); setuint256(n); }
  144. ^~~~~~~
  145. BN_print
  146. bignum.h: In constructor ‘CBigNum::CBigNum(const std::vector<unsigned char>&)’:
  147. bignum.h:101:9: error: ‘BN_init’ was not declared in this scope
  148. BN_init(this);
  149. ^~~~~~~
  150. bignum.h:101:9: note: suggested alternative: ‘BN_print’
  151. BN_init(this);
  152. ^~~~~~~
  153. BN_print
  154. bignum.h: In member function ‘void CBigNum::setulong(long unsigned int)’:
  155. bignum.h:107:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’
  156. if (!BN_set_word(this, n))
  157. ^
  158. bignum.h: In member function ‘long unsigned int CBigNum::getulong() const’:
  159. bignum.h:113:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’
  160. return BN_get_word(this);
  161. ^
  162. bignum.h: In member function ‘unsigned int CBigNum::getuint() const’:
  163. bignum.h:118:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’
  164. return BN_get_word(this);
  165. ^
  166. bignum.h: In member function ‘int CBigNum::getint() const’:
  167. bignum.h:123:43: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’
  168. unsigned long n = BN_get_word(this);
  169. ^
  170. bignum.h:124:33: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’
  171. if (!BN_is_negative(this))
  172. ^
  173. In file included from chainparams.h:9:0,
  174. from protocol.h:13,
  175. from addrman.h:9,
  176. from addrman.cpp:5:
  177. bignum.h: In member function ‘void CBigNum::setint64(int64_t)’:
  178. bignum.h:172:37: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’
  179. BN_mpi2bn(pch, p - pch, this);
  180. ^
  181. bignum.h: In member function ‘void CBigNum::setuint64(uint64_t)’:
  182. bignum.h:199:37: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’
  183. BN_mpi2bn(pch, p - pch, this);
  184. ^
  185. bignum.h: In member function ‘void CBigNum::setuint256(uint256)’:
  186. bignum.h:227:37: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’
  187. BN_mpi2bn(pch, p - pch, this);
  188. ^
  189. bignum.h: In member function ‘uint256 CBigNum::getuint256() const’:
  190. bignum.h:232:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
  191. unsigned int nSize = BN_bn2mpi(this, NULL);
  192. ^
  193. bignum.h:236:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
  194. BN_bn2mpi(this, &vch[0]);
  195. ^
  196. bignum.h: In member function ‘void CBigNum::setvch(const std::vector<unsigned char>&)’:
  197. bignum.h:257:46: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’
  198. BN_mpi2bn(&vch2[0], vch2.size(), this);
  199. ^
  200. bignum.h: In member function ‘std::vector<unsigned char> CBigNum::getvch() const’:
  201. bignum.h:262:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
  202. unsigned int nSize = BN_bn2mpi(this, NULL);
  203. ^
  204. bignum.h:266:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
  205. BN_bn2mpi(this, &vch[0]);
  206. ^
  207. bignum.h: In member function ‘CBigNum& CBigNum::SetCompact(unsigned int)’:
  208. bignum.h:302:36: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’
  209. BN_set_word(this, nWord);
  210. ^
  211. bignum.h:306:36: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’
  212. BN_set_word(this, nWord);
  213. ^
  214. bignum.h:307:46: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’
  215. BN_lshift(this, this, 8*(nSize-3));
  216. ^
  217. bignum.h:309:40: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_set_negative(BIGNUM*, int)’
  218. BN_set_negative(this, fNegative);
  219. ^
  220. In file included from bignum.h:17:0,
  221. from chainparams.h:9,
  222. from protocol.h:13,
  223. from addrman.h:9,
  224. from addrman.cpp:5:
  225. bignum.h: In member function ‘unsigned int CBigNum::GetCompact() const’:
  226. bignum.h:320:30: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_num_bits(const BIGNUM*)’
  227. unsigned int nSize = BN_num_bytes(this);
  228. ^
  229. In file included from chainparams.h:9:0,
  230. from protocol.h:13,
  231. from addrman.h:9,
  232. from addrman.cpp:5:
  233. bignum.h:324:40: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’
  234. nCompact = BN_get_word(this) << 8*(3-nSize);
  235. ^
  236. bignum.h:328:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rshift(BIGNUM*, const BIGNUM*, int)’
  237. BN_rshift(&bn, this, 8*(nSize-3));
  238. ^
  239. bignum.h:329:39: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’
  240. nCompact = BN_get_word(&bn);
  241. ^
  242. bignum.h:339:41: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’
  243. nCompact |= (BN_is_negative(this) ? 0x00800000 : 0);
  244. ^
  245. bignum.h: In member function ‘std::__cxx11::string CBigNum::ToString(int) const’:
  246. bignum.h:380:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_set_negative(BIGNUM*, int)’
  247. BN_set_negative(&bn, false);
  248. ^
  249. bignum.h:383:29: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
  250. if (BN_cmp(&bn, &bn0) == 0)
  251. ^
  252. bignum.h:385:32: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
  253. while (BN_cmp(&bn, &bn0) > 0)
  254. ^
  255. bignum.h:387:54: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
  256. if (!BN_div(&dv, &rem, &bn, &bnBase, pctx))
  257. ^
  258. bignum.h:393:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’
  259. if (BN_is_negative(this))
  260. ^
  261. bignum.h: In member function ‘bool CBigNum::operator!() const’:
  262. bignum.h:426:31: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_zero(const BIGNUM*)’
  263. return BN_is_zero(this);
  264. ^
  265. bignum.h: In member function ‘CBigNum& CBigNum::operator+=(const CBigNum&)’:
  266. bignum.h:431:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’
  267. if (!BN_add(this, this, &b))
  268. ^
  269. bignum.h: In member function ‘CBigNum& CBigNum::operator*=(const CBigNum&)’:
  270. bignum.h:445:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
  271. if (!BN_mul(this, this, &b, pctx))
  272. ^
  273. bignum.h: In member function ‘CBigNum& CBigNum::operator<<=(unsigned int)’:
  274. bignum.h:464:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’
  275. if (!BN_lshift(this, this, shift))
  276. ^
  277. bignum.h: In member function ‘CBigNum& CBigNum::operator>>=(unsigned int)’:
  278. bignum.h:475:28: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
  279. if (BN_cmp(&a, this) > 0)
  280. ^
  281. bignum.h:481:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rshift(BIGNUM*, const BIGNUM*, int)’
  282. if (!BN_rshift(this, this, shift))
  283. ^
  284. bignum.h: In member function ‘CBigNum& CBigNum::operator++()’:
  285. bignum.h:490:47: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’
  286. if (!BN_add(this, this, BN_value_one()))
  287. ^
  288. bignum.h: In member function ‘CBigNum& CBigNum::operator--()’:
  289. bignum.h:507:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’
  290. if (!BN_sub(&r, this, BN_value_one()))
  291. ^
  292. bignum.h: In function ‘const CBigNum operator+(const CBigNum&, const CBigNum&)’:
  293. bignum.h:532:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’
  294. if (!BN_add(&r, &a, &b))
  295. ^
  296. bignum.h: In function ‘const CBigNum operator-(const CBigNum&, const CBigNum&)’:
  297. bignum.h:540:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’
  298. if (!BN_sub(&r, &a, &b))
  299. ^
  300. bignum.h: In function ‘const CBigNum operator-(const CBigNum&)’:
  301. bignum.h:548:43: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’
  302. BN_set_negative(&r, !BN_is_negative(&r));
  303. ^
  304. bignum.h: In function ‘const CBigNum operator*(const CBigNum&, const CBigNum&)’:
  305. bignum.h:556:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
  306. if (!BN_mul(&r, &a, &b, pctx))
  307. ^
  308. bignum.h: In function ‘const CBigNum operator/(const CBigNum&, const CBigNum&)’:
  309. bignum.h:565:39: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
  310. if (!BN_div(&r, NULL, &a, &b, pctx))
  311. ^
  312. In file included from bignum.h:17:0,
  313. from chainparams.h:9,
  314. from protocol.h:13,
  315. from addrman.h:9,
  316. from addrman.cpp:5:
  317. bignum.h: In function ‘const CBigNum operator%(const CBigNum&, const CBigNum&)’:
  318. bignum.h:574:10: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘2’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
  319. if (!BN_mod(&r, &a, &b, pctx))
  320. ^
  321. In file included from chainparams.h:9:0,
  322. from protocol.h:13,
  323. from addrman.h:9,
  324. from addrman.cpp:5:
  325. bignum.h: In function ‘const CBigNum operator<<(const CBigNum&, unsigned int)’:
  326. bignum.h:582:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’
  327. if (!BN_lshift(&r, &a, shift))
  328. ^
  329. bignum.h: In function ‘bool operator==(const CBigNum&, const CBigNum&)’:
  330. bignum.h:594:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
  331. inline bool operator==(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) == 0); }
  332. ^
  333. bignum.h: In function ‘bool operator!=(const CBigNum&, const CBigNum&)’:
  334. bignum.h:595:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
  335. inline bool operator!=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) != 0); }
  336. ^
  337. bignum.h: In function ‘bool operator<=(const CBigNum&, const CBigNum&)’:
  338. bignum.h:596:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
  339. inline bool operator<=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) <= 0); }
  340. ^
  341. bignum.h: In function ‘bool operator>=(const CBigNum&, const CBigNum&)’:
  342. bignum.h:597:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
  343. inline bool operator>=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) >= 0); }
  344. ^
  345. bignum.h: In function ‘bool operator<(const CBigNum&, const CBigNum&)’:
  346. bignum.h:598:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
  347. inline bool operator<(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) < 0); }
  348. ^
  349. bignum.h: In function ‘bool operator>(const CBigNum&, const CBigNum&)’:
  350. bignum.h:599:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
  351. inline bool operator>(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) > 0); }
  352. ^
  353. make[3]: *** [Makefile:881: addrman.o] Error 1
  354. make[3]: Leaving directory '/home/severoraz/lab/builds/Cryptonite/src'
  355. make[2]: *** [Makefile:903: all-recursive] Error 1
  356. make[2]: Leaving directory '/home/severoraz/lab/builds/Cryptonite/src'
  357. make[1]: *** [Makefile:675: all] Error 2
  358. make[1]: Leaving directory '/home/severoraz/lab/builds/Cryptonite/src'
  359. make: *** [Makefile:509: all-recursive] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement