Error installing krb5 on node 10 and 12
toryas opened this issue · 6 comments
I have a error trying to installing krb5 on nodejs 10 and 12 versions.
this is the log in nodejs 10 :
> krb5@0.1.0 install /mnt/c/workspace/bff/ahorrobff/node_modules/arquitecturaDigital/node_modules/krb5
> node-gyp rebuild
make: Entering directory '/mnt/c/workspace/bff/ahorrobff/node_modules/arquitecturaDigital/node_modules/krb5/build'
CXX(target) Release/obj.target/krb5/src/base64.o
../src/base64.cc: In function ‘int decode64(char*)’:
../src/base64.cc:89:44: warning: ‘valcar[3]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
buffer[posdest++]=(valcar[2] << 6) | (valcar[3]);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../src/base64.cc:87:53: warning: ‘valcar[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
buffer[posdest++]=(valcar[1] << 4) | (valcar[2] >> 2);
~~~~~~~~^
../src/base64.cc:63:8: warning: ‘valcar[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
char valcar [4]; // valeur après conversion des caractères
^~~~~~
../src/base64.cc:63:8: warning: ‘valcar[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
CXX(target) Release/obj.target/krb5/src/krb5.o
../src/krb5.cc: In member function ‘krb5_error_code Krb5::cleanup(int)’:
../src/krb5.cc:80:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
krb5_cc_close(this->context, this->cache);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/krb5.cc:81:3: note: here
case 3:
^~~~
../src/krb5.cc:82:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
krb5_free_principal(this->context,this->client_principal);
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/krb5.cc:83:3: note: here
case 2:
^~~~
CXX(target) Release/obj.target/krb5/src/bind.o
../src/bind.cc: In static member function ‘static void Krb5Wrap::New(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/bind.cc:69:59: error: no matching function for call to ‘v8::Function::NewInstance(const int&, v8::Local<v8::Value> [0])’
info.GetReturnValue().Set(cons->NewInstance(argc, argv));
^
In file included from /home/toryas/.node-gyp/10.16.0/include/node/node.h:63:0,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/10.16.0/include/node/v8.h:3993:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^~~~~~~~~~~
/home/toryas/.node-gyp/10.16.0/include/node/v8.h:3993:44: note: candidate expects 3 arguments, 2 provided
/home/toryas/.node-gyp/10.16.0/include/node/v8.h:3996:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^~~~~~~~~~~
/home/toryas/.node-gyp/10.16.0/include/node/v8.h:3996:44: note: candidate expects 1 argument, 2 provided
../src/bind.cc: In static member function ‘static void Krb5Wrap::InitSync(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/bind.cc:145:41: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value v8user(info[0]);
^
In file included from /home/toryas/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/toryas/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/10.16.0/include/node/v8.h:2892:28: note: declared here
explicit Utf8Value(Local<v8::Value> obj));
^
/home/toryas/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/bind.cc:146:42: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value v8realm(info[1]);
^
In file included from /home/toryas/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/toryas/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/10.16.0/include/node/v8.h:2892:28: note: declared here
explicit Utf8Value(Local<v8::Value> obj));
^
/home/toryas/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/bind.cc: In static member function ‘static void Krb5Wrap::ByPasswordSync(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/bind.cc:155:41: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value v8pass(info[0]);
^
In file included from /home/toryas/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/toryas/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/10.16.0/include/node/v8.h:2892:28: note: declared here
explicit Utf8Value(Local<v8::Value> obj));
^
/home/toryas/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/bind.cc: In static member function ‘static void Krb5Wrap::ByKeyTabSync(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/bind.cc:171:39: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value v8kt(info[0]);
^
In file included from /home/toryas/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/toryas/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/10.16.0/include/node/v8.h:2892:28: note: declared here
explicit Utf8Value(Local<v8::Value> obj));
^
/home/toryas/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/bind.cc: In static member function ‘static void Krb5Wrap::GenTokenSync(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/bind.cc:186:48: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value v8server_name(info[0]);
^
In file included from /home/toryas/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/toryas/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/10.16.0/include/node/v8.h:2892:28: note: declared here
explicit Utf8Value(Local<v8::Value> obj));
^
/home/toryas/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/bind.cc: In static member function ‘static void Krb5Wrap::DestroySync(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/bind.cc:205:47: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
v8::String::Utf8Value v8cache_name(info[0]);
^
In file included from /home/toryas/.node-gyp/10.16.0/include/node/v8.h:26:0,
from /home/toryas/.node-gyp/10.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/10.16.0/include/node/v8.h:2892:28: note: declared here
explicit Utf8Value(Local<v8::Value> obj));
^
/home/toryas/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
krb5.target.mk:105: recipe for target 'Release/obj.target/krb5/src/bind.o' failed
make: *** [Release/obj.target/krb5/src/bind.o] Error 1
make: Leaving directory '/mnt/c/workspace/bff/ahorrobff/node_modules/arquitecturaDigital/node_modules/krb5/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.4.0-18362-Microsoft
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /mnt/c/workspace/bff/ahorrobff/node_modules/arquitecturaDigital/node_modules/krb5
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN The package sinon is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! krb5@0.1.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the krb5@0.1.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/toryas/.npm/_logs/2019-06-28T14_50_17_738Z-debug.log
and this is in nodejs 12:
> krb5@0.1.0 install /mnt/c/workspace/bff/ahorrobff/node_modules/arquitecturaDigital/node_modules/krb5
> node-gyp rebuild
make: Entering directory '/mnt/c/workspace/bff/ahorrobff/node_modules/arquitecturaDigital/node_modules/krb5/build'
CXX(target) Release/obj.target/krb5/src/base64.o
../src/base64.cc: In function ‘int decode64(char*)’:
../src/base64.cc:89:44: warning: ‘valcar[3]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
buffer[posdest++]=(valcar[2] << 6) | (valcar[3]);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../src/base64.cc:87:53: warning: ‘valcar[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
buffer[posdest++]=(valcar[1] << 4) | (valcar[2] >> 2);
~~~~~~~~^
../src/base64.cc:63:8: warning: ‘valcar[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
char valcar [4]; // valeur après conversion des caractères
^~~~~~
../src/base64.cc:63:8: warning: ‘valcar[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
CXX(target) Release/obj.target/krb5/src/krb5.o
../src/krb5.cc: In member function ‘krb5_error_code Krb5::cleanup(int)’:
../src/krb5.cc:80:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
krb5_cc_close(this->context, this->cache);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/krb5.cc:81:3: note: here
case 3:
^~~~
../src/krb5.cc:82:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
krb5_free_principal(this->context,this->client_principal);
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/krb5.cc:83:3: note: here
case 2:
^~~~
CXX(target) Release/obj.target/krb5/src/bind.o
../src/bind.cc: In static member function ‘static void Krb5Wrap::Initialize(v8::Local<v8::Object>)’:
../src/bind.cc:52:38: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
constructor.Reset(tpl->GetFunction());
^
In file included from /home/toryas/.node-gyp/12.4.0/include/node/node.h:63:0,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:5947:46: note: candidate: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^~~~~~~~~~~
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:5947:46: note: candidate expects 1 argument, 0 provided
../src/bind.cc:53:68: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
exports->Set(Nan::New("Krb5").ToLocalChecked(), tpl->GetFunction());
^
In file included from /home/toryas/.node-gyp/12.4.0/include/node/node.h:63:0,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:5947:46: note: candidate: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^~~~~~~~~~~
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:5947:46: note: candidate expects 1 argument, 0 provided
../src/bind.cc: In static member function ‘static void Krb5Wrap::New(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/bind.cc:69:59: error: no matching function for call to ‘v8::Function::NewInstance(const int&, v8::Local<v8::Value> [0])’
info.GetReturnValue().Set(cons->NewInstance(argc, argv));
^
In file included from /home/toryas/.node-gyp/12.4.0/include/node/node.h:63:0,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:4131:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^~~~~~~~~~~
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:4131:44: note: candidate expects 3 arguments, 2 provided
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:4134:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^~~~~~~~~~~
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:4134:44: note: candidate expects 1 argument, 2 provided
../src/bind.cc: In static member function ‘static void Krb5Wrap::InitSync(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/bind.cc:145:41: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
v8::String::Utf8Value v8user(info[0]);
^
In file included from /home/toryas/.node-gyp/12.4.0/include/node/node.h:63:0,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
Utf8Value(Isolate* isolate, Local<v8::Value> obj);
^~~~~~~~~
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate expects 2 arguments, 1 provided
../src/bind.cc:146:42: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
v8::String::Utf8Value v8realm(info[1]);
^
In file included from /home/toryas/.node-gyp/12.4.0/include/node/node.h:63:0,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
Utf8Value(Isolate* isolate, Local<v8::Value> obj);
^~~~~~~~~
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate expects 2 arguments, 1 provided
../src/bind.cc: In static member function ‘static void Krb5Wrap::ByPasswordSync(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/bind.cc:155:41: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
v8::String::Utf8Value v8pass(info[0]);
^
In file included from /home/toryas/.node-gyp/12.4.0/include/node/node.h:63:0,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
Utf8Value(Isolate* isolate, Local<v8::Value> obj);
^~~~~~~~~
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate expects 2 arguments, 1 provided
../src/bind.cc: In static member function ‘static void Krb5Wrap::ByKeyTabSync(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/bind.cc:171:39: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
v8::String::Utf8Value v8kt(info[0]);
^
In file included from /home/toryas/.node-gyp/12.4.0/include/node/node.h:63:0,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
Utf8Value(Isolate* isolate, Local<v8::Value> obj);
^~~~~~~~~
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate expects 2 arguments, 1 provided
../src/bind.cc: In static member function ‘static void Krb5Wrap::GenTokenSync(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/bind.cc:186:48: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
v8::String::Utf8Value v8server_name(info[0]);
^
In file included from /home/toryas/.node-gyp/12.4.0/include/node/node.h:63:0,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
Utf8Value(Isolate* isolate, Local<v8::Value> obj);
^~~~~~~~~
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate expects 2 arguments, 1 provided
../src/bind.cc: In static member function ‘static void Krb5Wrap::DestroySync(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/bind.cc:205:47: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
v8::String::Utf8Value v8cache_name(info[0]);
^
In file included from /home/toryas/.node-gyp/12.4.0/include/node/node.h:63:0,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
Utf8Value(Isolate* isolate, Local<v8::Value> obj);
^~~~~~~~~
/home/toryas/.node-gyp/12.4.0/include/node/v8.h:2995:5: note: candidate expects 2 arguments, 1 provided
krb5.target.mk:111: recipe for target 'Release/obj.target/krb5/src/bind.o' failed
make: *** [Release/obj.target/krb5/src/bind.o] Error 1
make: Leaving directory '/mnt/c/workspace/bff/ahorrobff/node_modules/arquitecturaDigital/node_modules/krb5/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:200:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.4.0-18362-Microsoft
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /mnt/c/workspace/bff/ahorrobff/node_modules/arquitecturaDigital/node_modules/krb5
gyp ERR! node -v v12.4.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN rollback Rolling back krb5@0.1.0 failed (this is probably harmless): EINVAL: invalid argument, lstat '/mnt/c/workspace/bff/ahorrobff/node_modules/arquitecturaDigital/node_modules'
npm WARN The package sinon is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! krb5@0.1.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the krb5@0.1.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/toryas/.npm/_logs/2019-06-28T14_54_42_766Z-debug.log
but when install in nodejs 8 works fine:
> krb5@0.1.0 install /mnt/c/workspace/bff/ahorrobff/node_modules/arquitecturaDigital/node_modules/krb5
> node-gyp rebuild
make: Entering directory '/mnt/c/workspace/bff/ahorrobff/node_modules/arquitecturaDigital/node_modules/krb5/build'
CXX(target) Release/obj.target/krb5/src/base64.o
../src/base64.cc: In function ‘int decode64(char*)’:
../src/base64.cc:89:44: warning: ‘valcar[3]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
buffer[posdest++]=(valcar[2] << 6) | (valcar[3]);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../src/base64.cc:87:53: warning: ‘valcar[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
buffer[posdest++]=(valcar[1] << 4) | (valcar[2] >> 2);
~~~~~~~~^
../src/base64.cc:63:8: warning: ‘valcar[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
char valcar [4]; // valeur après conversion des caractères
^~~~~~
../src/base64.cc:63:8: warning: ‘valcar[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
CXX(target) Release/obj.target/krb5/src/krb5.o
../src/krb5.cc: In member function ‘krb5_error_code Krb5::cleanup(int)’:
../src/krb5.cc:80:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
krb5_cc_close(this->context, this->cache);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/krb5.cc:81:3: note: here
case 3:
^~~~
../src/krb5.cc:82:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
krb5_free_principal(this->context,this->client_principal);
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/krb5.cc:83:3: note: here
case 2:
^~~~
CXX(target) Release/obj.target/krb5/src/bind.o
../src/bind.cc: In static member function ‘static void Krb5Wrap::New(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/bind.cc:69:59: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance(int, v8::Local<v8::Value>*) const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
info.GetReturnValue().Set(cons->NewInstance(argc, argv));
^
In file included from /home/toryas/.node-gyp/8.16.0/include/node/v8.h:26:0,
from /home/toryas/.node-gyp/8.16.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/bind.h:4,
from ../src/bind.cc:1:
/home/toryas/.node-gyp/8.16.0/include/node/v8.h:3897:31: note: declared here
Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
^
/home/toryas/.node-gyp/8.16.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
CXX(target) Release/obj.target/krb5/src/worker.o
../src/worker.cc: In member function ‘virtual void Worker::HandleOKCallback()’:
../src/worker.cc:42:34: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
this->callback->Call(2,argv);
^
In file included from ../src/worker.h:4:0,
from ../src/worker.cc:1:
../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/worker.cc:46:34: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
this->callback->Call(2,argv);
^
In file included from ../src/worker.h:4:0,
from ../src/worker.cc:1:
../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/worker.cc:52:34: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
this->callback->Call(1,argv);
^
In file included from ../src/worker.h:4:0,
from ../src/worker.cc:1:
../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/worker.cc:56:34: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
this->callback->Call(1,argv);
^
In file included from ../src/worker.h:4:0,
from ../src/worker.cc:1:
../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
CXX(target) Release/obj.target/krb5/src/addon.o
SOLINK_MODULE(target) Release/obj.target/krb5.node
COPY Release/krb5.node
make: Leaving directory '/mnt/c/workspace/bff/ahorrobff/node_modules/arquitecturaDigital/node_modules/krb5/build'
> krb5@0.5.0 install /mnt/c/workspace/bff/ahorrobff/node_modules/krb5
> node-gyp rebuild
make: Entering directory '/mnt/c/workspace/bff/ahorrobff/node_modules/krb5/build'
CC(target) Release/obj.target/nothing/../node-addon-api/src/nothing.o
AR(target) Release/obj.target/../node-addon-api/src/nothing.a
COPY Release/nothing.a
CXX(target) Release/obj.target/krb5/src/module.o
CXX(target) Release/obj.target/krb5/src/krb5_bind.o
CXX(target) Release/obj.target/krb5/src/gss_bind.o
../src/gss_bind.cc: In member function ‘virtual void Worker_generate_spnego_token::Execute()’:
../src/gss_bind.cc:77:16: warning: variable ‘token_buffer’ set but not used [-Wunused-but-set-variable]
char token_buffer[2048];
^~~~~~~~~~~~
CXX(target) Release/obj.target/krb5/src/base64.o
../src/base64.cc: In function ‘int decode64(char*)’:
../src/base64.cc:89:44: warning: ‘valcar[3]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
buffer[posdest++]=(valcar[2] << 6) | (valcar[3]);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../src/base64.cc:87:53: warning: ‘valcar[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
buffer[posdest++]=(valcar[1] << 4) | (valcar[2] >> 2);
~~~~~~~~^
../src/base64.cc:63:8: warning: ‘valcar[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
char valcar [4]; // valeur après conversion des caractères
^~~~~~
../src/base64.cc:63:8: warning: ‘valcar[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
SOLINK_MODULE(target) Release/obj.target/krb5.node
COPY Release/krb5.node
make: Leaving directory '/mnt/c/workspace/bff/ahorrobff/node_modules/krb5/build'
npm WARN rollback Rolling back node-pre-gyp@0.10.3 failed (this is probably harmless): EINVAL: invalid argument, scandir '/mnt/c/workspace/bff/ahorrobff/node_modules/fsevents/node_modules'
npm WARN rollback Rolling back readable-stream@2.3.6 failed (this is probably harmless): EINVAL: invalid argument, lstat '/mnt/c/workspace/bff/ahorrobff/node_modules/fsevents/node_modules'
npm WARN The package sinon is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ krb5@0.5.0
added 39 packages from 37 contributors, updated 1 package and audited 12028 packages in 29.475s
found 61 vulnerabilities (20 low, 28 moderate, 13 high)
run `npm audit fix` to fix them, or `npm audit` for details
8+ also failed, node hbase is not available therefore.
also try node 6, still not working, maybe related to something else
Note:
I was using Centos, and do yum install -y krb5-devel as required.
This module is an optional dependency of node-hbase
so you should still be able to use node-hbase
even if the krb5
build fails. You can also tell npm
not to install optional dependencies with the --no-optional
tag:
npm install --no-optional node-hbase
I will try to figure out why your build is not working in the meantime.
@RReivax Yeah, I just wanna update my comment, I did try and node-hbase works greatly even without krb5 built in. Thanks for your suggestion.
Are you using the latest (0.6.0
) node-hbase
(edit: now called hbase
) ? It looks like you are trying to build an old version of the krb5
module (I'd say 0.2
) instead of the 0.5
version. I reran the build for 0.5
and everything looks fine.
@flyinghawker Actually the node-hbase
module is now called hbase
. You should use:
npm install hbase