Open waseeld opened 3 years ago
OS : Linux minit 21 node -v : v16.13.0 node-gyp -v v8.2.0
Error output :
node/WAScoin/src via v16.13.0 ❯ npm install ursa npm ERR! code 1 npm ERR! path /home/waseel/was/dev/JavaScript/node/WAScoin/node_modules/ursa npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/home/waseel/was/dev/JavaScript/node/WAScoin/node_modules/ursa/build' npm ERR! CXX(target) Release/obj.target/ursaNative/src/ursaNative.o npm ERR! make: Leaving directory '/home/waseel/was/dev/JavaScript/node/WAScoin/node_modules/ursa/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.2.0 npm ERR! gyp info using node@16.13.0 | linux | x64 npm ERR! gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/home/waseel/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/waseel/was/dev/JavaScript/node/WAScoin/node_modules/ursa/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/waseel/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/waseel/.cache/node-gyp/16.13.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/home/waseel/.cache/node-gyp/16.13.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/waseel/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/waseel/.cache/node-gyp/16.13.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/waseel/was/dev/JavaScript/node/WAScoin/node_modules/ursa', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! In file included from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:821:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type] npm ERR! 821 | (node::addon_register_func) (regfunc), \ npm ERR! | ^ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:855:3: note: in expansion of macro ‘NODE_MODULE_X’ npm ERR! 855 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) npm ERR! | ^~~~~~~~~~~~~ npm ERR! ../src/ursaNative.cc:70:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! 70 | NODE_MODULE(ursaNative, init) npm ERR! | ^~~~~~~~~~~ npm ERR! ../src/ursaNative.cc: In function ‘char* copyBufferToUtf8String(v8::Local<v8::String>)’: npm ERR! ../src/ursaNative.cc:208:34: error: no matching function for call to ‘v8::String::Utf8Length()’ npm ERR! 208 | int length = str->Utf8Length(); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3217:7: note: candidate: ‘int v8::String::Utf8Length(v8::Isolate*) const’ npm ERR! 3217 | int Utf8Length(Isolate* isolate) const; npm ERR! | ^~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3217:7: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc:217:20: error: cannot convert ‘char*’ to ‘v8::Isolate*’ npm ERR! 217 | str->WriteUtf8(result, length + 1); npm ERR! | ^~~~~~ npm ERR! | | npm ERR! | char* npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3277:26: note: initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ npm ERR! 3277 | int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, npm ERR! | ~~~~~~~~~^~~~~~~ npm ERR! ../src/ursaNative.cc: In static member function ‘static void RsaWrap::InitClass(v8::Local<v8::Object>)’: npm ERR! ../src/ursaNative.cc:342:70: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ npm ERR! 342 | target->Set(NanNew("RsaWrap").ToLocalChecked(), tpl->GetFunction()); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:6802:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’ npm ERR! 6802 | V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:6802:46: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc:343:40: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ npm ERR! 343 | constructor.Reset(tpl->GetFunction()); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:6802:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’ npm ERR! 6802 | V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:6802:46: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc:345:106: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ npm ERR! 345 | target->Set(NanNew("textToNid").ToLocalChecked(), Nan::New<FunctionTemplate>(TextToNid)->GetFunction()); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:6802:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’ npm ERR! 6802 | V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:6802:46: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::OpenPublicSshKey(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:389:13: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 389 | obj->rsa->n = BN_bin2bn(data_n, n_length, NULL); npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc:390:13: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 390 | obj->rsa->e = BN_bin2bn(data_e, e_length, NULL); npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc: In static member function ‘static RsaWrap* RsaWrap::expectPrivateKey(RsaWrap*)’: npm ERR! ../src/ursaNative.cc:407:35: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 407 | if ((obj == NULL) || (obj->rsa->d != NULL)) { npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::GeneratePrivateKey(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:488:44: error: no matching function for call to ‘v8::Value::Uint32Value()’ npm ERR! 488 | int modulusBits = args[0]->Uint32Value(); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ npm ERR! 3104 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc:489:41: error: no matching function for call to ‘v8::Value::Uint32Value()’ npm ERR! 489 | int exponent = args[1]->Uint32Value(); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ npm ERR! 3104 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::GetExponent(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:536:34: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 536 | bignumToBuffer(args, obj->rsa->e); npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::GetPrivateExponent(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:552:34: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 552 | bignumToBuffer(args, obj->rsa->d); npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::GetModulus(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:567:34: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 567 | bignumToBuffer(args, obj->rsa->n); npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::PrivateDecrypt(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:683:40: error: no matching function for call to ‘v8::Value::Uint32Value()’ npm ERR! 683 | int padding = args[1]->Uint32Value(); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ npm ERR! 3104 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::PrivateEncrypt(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:730:40: error: no matching function for call to ‘v8::Value::Uint32Value()’ npm ERR! 730 | int padding = args[1]->Uint32Value(); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ npm ERR! 3104 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::PublicDecrypt(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:776:40: error: no matching function for call to ‘v8::Value::Uint32Value()’ npm ERR! 776 | int padding = args[1]->Uint32Value(); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ npm ERR! 3104 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::PublicEncrypt(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:822:40: error: no matching function for call to ‘v8::Value::Uint32Value()’ npm ERR! 822 | int padding = args[1]->Uint32Value(); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ npm ERR! 3104 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::Sign(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:928:36: error: no matching function for call to ‘v8::Value::Uint32Value()’ npm ERR! 928 | int nid = args[0]->Uint32Value(); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ npm ERR! 3104 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::Verify(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:982:36: error: no matching function for call to ‘v8::Value::Uint32Value()’ npm ERR! 982 | int nid = args[0]->Uint32Value(); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ npm ERR! 3104 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::AddPSSPadding(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:1044:36: error: no matching function for call to ‘v8::Value::Uint32Value()’ npm ERR! 1044 | int nid = args[0]->Uint32Value(); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ npm ERR! 3104 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc:1065:37: error: no matching function for call to ‘v8::Value::Uint32Value()’ npm ERR! 1065 | int sLen = args[2]->Uint32Value(); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ npm ERR! 3104 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::VerifyPSSPadding(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:1102:36: error: no matching function for call to ‘v8::Value::Uint32Value()’ npm ERR! 1102 | int nid = args[0]->Uint32Value(); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ npm ERR! 3104 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc:1135:37: error: no matching function for call to ‘v8::Value::Uint32Value()’ npm ERR! 1135 | int sLen = args[3]->Uint32Value(); npm ERR! | ^ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/node.h:63, npm ERR! from ../src/ursaNative.h:9, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ npm ERR! 3104 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/v8.h:3104:41: note: candidate expects 1 argument, 0 provided npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::CreatePrivateKeyFromComponents(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:1218:17: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 1218 | obj->rsa->n = modulus; npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc:1219:17: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 1219 | obj->rsa->e = exponent; npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc:1220:17: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 1220 | obj->rsa->p = p; npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc:1221:17: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 1221 | obj->rsa->q = q; npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc:1222:17: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 1222 | obj->rsa->dmp1 = dp; npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc:1223:17: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 1223 | obj->rsa->dmq1 = dq; npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc:1224:17: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 1224 | obj->rsa->iqmp = inverseQ; npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc:1225:17: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 1225 | obj->rsa->d = d; npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE RsaWrap::CreatePublicKeyFromComponents(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/ursaNative.cc:1270:17: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 1270 | obj->rsa->n = modulus; npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc:1271:17: error: invalid use of incomplete type ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 1271 | obj->rsa->e = exponent; npm ERR! | ^~ npm ERR! In file included from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/crypto.h:25, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/bio.h:20, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/asn1.h:16, npm ERR! from /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/rsa.h:16, npm ERR! from ../src/ursaNative.h:13, npm ERR! from ../src/ursaNative.cc:3: npm ERR! /home/waseel/.cache/node-gyp/16.13.0/include/node/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA’ {aka ‘struct rsa_st’} npm ERR! 110 | typedef struct rsa_st RSA; npm ERR! | ^~~~~~ npm ERR! ../src/ursaNative.cc: At global scope: npm ERR! ../src/ursaNative.cc:100:36: warning: ‘Nan::NAN_METHOD_RETURN_TYPE bignumToBuffer(Nan::NAN_METHOD_ARGS_TYPE, BIGNUM*)’ defined but not used [-Wunused-function] npm ERR! 100 | static Nan::NAN_METHOD_RETURN_TYPE bignumToBuffer(Nan::NAN_METHOD_ARGS_TYPE args, npm ERR! | ^~~~~~~~~~~~~~ npm ERR! make: *** [ursaNative.target.mk:113: Release/obj.target/ursaNative/src/ursaNative.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/waseel/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) npm ERR! gyp ERR! System Linux 5.4.0-77-generic npm ERR! gyp ERR! command "/home/waseel/.nvm/versions/node/v16.13.0/bin/node" "/home/waseel/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /home/waseel/was/dev/JavaScript/node/WAScoin/node_modules/ursa npm ERR! gyp ERR! node -v v16.13.0 npm ERR! gyp ERR! node-gyp -v v8.2.0 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! /home/waseel/.npm/_logs/2021-11-13T11_00_08_707Z-debug.log
OS : Linux minit 21 node -v : v16.13.0 node-gyp -v v8.2.0
Error output :