blackbird
blackbird copied to clipboard
HMAC_CTX ctx’ has incomplete type and cannot be defined
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); ^~~~~~~~~~~~~~~~
Same here, really unsure but i think the program cannot find ccxt module.
i also just ran into this on debian
Please checkout https://github.com/webpolis/blackbird
It has the required fixes plus it fixes issues while building with more recent HMAC libraries.
This is a duplicate issue and is already fixed but yet to be merged to master.