NEWS
Linux Problem Gyp Error
-
Guten Morgen,
ich bin nicht so der Linux Crack, kann mir da jemand helfen??
root@IOBroker-Neu:/opt/iobroker# sudo iobroker upgrade self Update js-controller from @3.3.21 to @3.3.22 NPM version: 6.14.15 npm install iobroker.js-controller@3.3.22 --loglevel error --unsafe-perm --prefi x "/opt/iobroker" (System call) ../authenticate_pam.cc: In function ‘void after_doing_auth(uv_work_t*, int)’: ../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback( v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args); ^ In file included from ../authenticate_pam.cc:23:0: ../../nan/nan.h:1026:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ ../authenticate_pam.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Authenticate(Na n::NAN_METHOD_ARGS_TYPE)’: ../authenticate_pam.cc:147:83: error: no matching function for call to ‘v8::Arra y::Get(v8::Local<v8::String>)’ Local<Value> res = options->Get(Nan::New<String>("serviceName").ToLocalChecke d()); ^ In file included from /home/iobroker/.cache/node-gyp/14.18.3/include/node/node.h :67:0, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23: /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3717:43: note: candidat e: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v 8::Value>) V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^~~ /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3717:43: note: candid ate expects 2 arguments, 1 provided /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3720:43: note: candidat e: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^~~ /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3720:43: note: candid ate expects 2 arguments, 1 provided ../authenticate_pam.cc:150:69: error: no matching function for call to ‘v8::Stri ng::WriteUtf8(char [128], long unsigned int)’ serviceName->WriteUtf8(m->serviceName, sizeof(m->serviceName) - 1); ^ In file included from /home/iobroker/.cache/node-gyp/14.18.3/include/node/node.h :67:0, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23: /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3037:7: note: candidate : int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3037:7: note: no know n conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’ ../authenticate_pam.cc:152:69: error: no matching function for call to ‘v8::Arra y::Get(v8::Local<v8::String>)’ res = options->Get(Nan::New<String>("remoteHost").ToLocalChecked()); ^ In file included from /home/iobroker/.cache/node-gyp/14.18.3/include/node/node.h :67:0, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23: /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3717:43: note: candidat e: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v 8::Value>) V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^~~ /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3717:43: note: candid ate expects 2 arguments, 1 provided /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3720:43: note: candidat e: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^~~ /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3720:43: note: candid ate expects 2 arguments, 1 provided ../authenticate_pam.cc:155:66: error: no matching function for call to ‘v8::Stri ng::WriteUtf8(char [128], long unsigned int)’ remoteHost->WriteUtf8(m->remoteHost, sizeof(m->remoteHost) - 1); ^ In file included from /home/iobroker/.cache/node-gyp/14.18.3/include/node/node.h :67:0, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23: /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3037:7: note: candidate : int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3037:7: note: no know n conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’ ../authenticate_pam.cc:160:58: error: no matching function for call to ‘v8::Stri ng::WriteUtf8(char [128], long unsigned int)’ username->WriteUtf8(m->username, sizeof(m->username) - 1); ^ In file included from /home/iobroker/.cache/node-gyp/14.18.3/include/node/node.h :67:0, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23: /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3037:7: note: candidate : int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3037:7: note: no know n conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’ ../authenticate_pam.cc:161:58: error: no matching function for call to ‘v8::Stri ng::WriteUtf8(char [128], long unsigned int)’ password->WriteUtf8(m->password, sizeof(m->password) - 1); ^ In file included from /home/iobroker/.cache/node-gyp/14.18.3/include/node/node.h :67:0, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23: /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3037:7: note: candidate : int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/iobroker/.cache/node-gyp/14.18.3/include/node/v8.h:3037:7: note: no know n conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’ ../authenticate_pam.cc: At global scope: ../authenticate_pam.cc:170:11: error: variable or field ‘init’ declared void void init(Handle<Object> exports) { ^~~~~~ ../authenticate_pam.cc:170:11: error: ‘Handle’ was not declared in this scope ../authenticate_pam.cc:170:24: error: expected primary-expression before ‘>’ tok en void init(Handle<Object> exports) { ^ ../authenticate_pam.cc:170:26: error: ‘exports’ was not declared in this scope void init(Handle<Object> exports) { ^~~~~~~ In file included from ../../nan/nan.h:56:0, from ../authenticate_pam.cc:23: ../authenticate_pam.cc:175:31: error: ‘init’ was not declared in this scope NODE_MODULE(authenticate_pam, init); ^ /home/iobroker/.cache/node-gyp/14.18.3/include/node/node.h:787:36: note: in defi nition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~ ../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(authenticate_pam, init); ^~~~~~~~~~~ make: *** [Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1 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_module s/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:282:12) gyp ERR! System Linux 4.9.0-16-amd64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy p/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pam gyp ERR! node -v v14.18.3 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok
-
@rogni sagte in Linux Problem Gyp Error:
ich bin nicht so der Linux Crack, kann mir da jemand helfen??
Seh ich...
root@IOBroker-Neu:/opt/iobroker# sudo iobroker upgrade self
root login und sudo, der an der Stelle dann gleich doppelt falsch ist...
Als user:
iobroker stop iobroker del terminal iobroker update iobroker upgrade self iobroker upgrade iobroker start
-
@rogni sagte in Linux Problem Gyp Error:
root
@IOBroker-Neu:/opt/iobroker#sudo
iobroker upgrade selfErstmal ... bist du mit
root
angemeldet und dann gehört vor iobroker Befehlen keinsudo
-
Erstmal Dankeschön, scheint geklappt zu haben was macht der clean Terminal Befehl??
-
Der löscht den 'kaputten' Adapter Terminal. Falls du
iobroker del terminal
damit meintest. clear gibt es auch als shell-Kommando, macht aber was anderes.