blackbird icon indicating copy to clipboard operation
blackbird copied to clipboard

HMAC_CTX ctx’ has incomplete type and cannot be defined

Open fredericoahb opened this issue 5 years ago • 4 comments

While attempting to build on Ubuntu Linux I get the following compilation error

test.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____28()’: test.cpp:688:11: error: aggregate ‘HMAC_CTX ctx’ has incomplete type and cannot be defined HMAC_CTX ctx; ^~~ test.cpp:757:2: error: ‘HMAC_CTX_init’ was not declared in this scope HMAC_CTX_init(&ctx); // OpenSSL ^~~~~~~~~~~~~ test.cpp:757:2: note: suggested alternative: ‘HMAC_CTX_new’ HMAC_CTX_init(&ctx); // OpenSSL ^~~~~~~~~~~~~ HMAC_CTX_new test.cpp:777:2: error: ‘HMAC_CTX_cleanup’ was not declared in this scope HMAC_CTX_cleanup(&ctx); ^~~~~~~~~~~~~~~~ test.cpp:777:2: note: suggested alternative: ‘HMAC_CTX_get_md’ HMAC_CTX_cleanup(&ctx); ^~~~~~~~~~~~~~~~ HMAC_CTX_get_md test.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____32()’: test.cpp:894:11: error: aggregate ‘HMAC_CTX ctx’ has incomplete type and cannot be defined HMAC_CTX ctx; ^~~ test.cpp:963:2: error: ‘HMAC_CTX_init’ was not declared in this scope HMAC_CTX_init(&ctx); // OpenSSL ^~~~~~~~~~~~~ test.cpp:963:2: note: suggested alternative: ‘HMAC_CTX_new’ HMAC_CTX_init(&ctx); // OpenSSL ^~~~~~~~~~~~~ HMAC_CTX_new test.cpp:987:2: error: ‘HMAC_CTX_cleanup’ was not declared in this scope HMAC_CTX_cleanup(&ctx); ^~~~~~~~~~~~~~~~ test.cpp:987:2: note: suggested alternative: ‘HMAC_CTX_get_md’ HMAC_CTX_cleanup(&ctx); ^~~~~~~~~~~~~~~~ HMAC_CTX_get_md test.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____36()’: test.cpp:1096:11: error: aggregate ‘HMAC_CTX ctx’ has incomplete type and cannot be defined HMAC_CTX ctx; ^~~ test.cpp:1166:2: error: ‘HMAC_CTX_init’ was not declared in this scope HMAC_CTX_init(&ctx); // OpenSSL ^~~~~~~~~~~~~ test.cpp:1166:2: note: suggested alternative: ‘HMAC_CTX_new’ HMAC_CTX_init(&ctx); // OpenSSL ^~~~~~~~~~~~~ HMAC_CTX_new test.cpp:1192:2: error: ‘HMAC_CTX_cleanup’ was not declared in this scope HMAC_CTX_cleanup(&ctx); ^~~~~~~~~~~~~~~~

fredericoahb avatar Jun 26 '19 17:06 fredericoahb

Same here, really unsure but i think the program cannot find ccxt module.

ghost avatar Dec 24 '19 12:12 ghost

i also just ran into this on debian

venatiodecorus avatar Feb 28 '20 03:02 venatiodecorus

Please checkout https://github.com/webpolis/blackbird

It has the required fixes plus it fixes issues while building with more recent HMAC libraries.

webpolis avatar Jul 16 '20 20:07 webpolis

This is a duplicate issue and is already fixed but yet to be merged to master.

satoshi75nakamoto avatar Oct 21 '20 20:10 satoshi75nakamoto