NEWS
gyp ERR! build error
-
Hallo,
bei jedem Adapterupdate bekomme ich eine ähnliche Fehlermeldung wie diese:
$ ./iobroker upgrade daswetter Update daswetter from @3.0.5 to @3.0.6 host.raspberrypi Adapter "system.adapter.daswetter.0" is stopped. NPM version: 6.14.12 npm install iobroker.daswetter@3.0.6 --loglevel error --prefix "/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:../../nan/nan.h:1026:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~../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:../../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(Nan::NAN_METHOD_ARGS_TYPE)’:../authenticate_pam.cc:147:83: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] Local<Value> res = options->Get(Nan::New<String>("serviceName").ToLocalChecked()); ^In file included from /home/iobroker/.cache/node-gyp/12.22.1/include/node/v8-internal.h:14, from /home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:27, from /home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key)); ^~~/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~../authenticate_pam.cc:150:69: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ serviceName->WriteUtf8(m->serviceName, sizeof(m->serviceName) - 1); ^In file included from /home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:2878: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/12.22.1/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:152:69: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] res = options->Get(Nan::New<String>("remoteHost").ToLocalChecked()); ^In file included from /home/iobroker/.cache/node-gyp/12.22.1/include/node/v8-internal.h:14, from /home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:27, from /home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key)); ^~~/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~../authenticate_pam.cc:155:66: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ remoteHost->WriteUtf8(m->remoteHost, sizeof(m->remoteHost) - 1); ^In file included from /home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:2878: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/12.22.1/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:160:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ username->WriteUtf8(m->username, sizeof(m->username) - 1); ^In file included from /home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:2878: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/12.22.1/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:161:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ password->WriteUtf8(m->password, sizeof(m->password) - 1); ^In file included from /home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.1/include/node/v8.h:2878: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/12.22.1/include/node/v8.h:2878:7: note: no known 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:11: note: suggested alternative: ‘rand_r’ void init(Handle<Object> exports) { ^~~~~~ rand_r../authenticate_pam.cc:170:24: error: expected primary-expression before ‘>’ token 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, 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/12.22.1/include/node/node.h:736:36: note: in definition 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); ^~~~~~~~~~~../authenticate_pam.cc:175:31: note: suggested alternative: ‘int’ NODE_MODULE(authenticate_pam, init); ^~~~/home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:736:36: note: in definition 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: *** [authenticate_pam.target.mk:109: Release/obj.target/authenticate_pam/authenticate_pam.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)gyp ERR! stack at ChildProcess.emit (events.js:314:20)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) gyp ERR! System Linux 5.10.17-v7l+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pamgyp ERR! node -v v12.22.1gyp ERR! node-gyp -v v5.1.0gyp ERR! not ok Update "system.adapter.daswetter.0" upload [450] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/viento-wind/galeria2-Beaufort/75.png icons/viento-wind/galeria2-Beaufort/75.png image/png upload [400] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/viento-wind/galeria2-Beaufort/3.png icons/viento-wind/galeria2-Beaufort/3.png image/png upload [350] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/viento-wind/galeria1/16.png icons/viento-wind/galeria1/16.png image/png upload [300] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/viento-wind/Beaufort-White/60.png icons/viento-wind/Beaufort-White/60.png image/png upload [250] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/viento-wind/Beaufort-White/15.png icons/viento-wind/Beaufort-White/15.png image/png upload [200] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria6/11.svg icons/tiempo-weather/galeria6/11.svg image/svg+xml upload [150] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria5/PNG/White/9.png icons/tiempo-weather/galeria5/PNG/White/9.png image/png upload [100] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria4/3.png icons/tiempo-weather/galeria4/3.png image/png upload [90] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria4/11.png icons/tiempo-weather/galeria4/11.png image/png upload [80] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria3/2.png icons/tiempo-weather/galeria3/2.png image/png upload [70] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria3/10.png icons/tiempo-weather/galeria3/10.png image/png upload [60] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria2/19.png icons/tiempo-weather/galeria2/19.png image/png upload [50] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria2/1.png icons/tiempo-weather/galeria2/1.png image/png upload [40] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/tiempo-weather/galeria1/18.png icons/tiempo-weather/galeria1/18.png image/png upload [30] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/9.png icons/luna-moon/9.png image/png upload [20] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/26.png icons/luna-moon/26.png image/png upload [19] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/25.png icons/luna-moon/25.png image/png upload [18] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/24.png icons/luna-moon/24.png image/png upload [17] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/23.png icons/luna-moon/23.png image/png upload [16] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/22.png icons/luna-moon/22.png image/png upload [15] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/21.png icons/luna-moon/21.png image/png upload [14] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/20.png icons/luna-moon/20.png image/png upload [13] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/2.png icons/luna-moon/2.png image/png upload [12] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/19.png icons/luna-moon/19.png image/png upload [11] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/18.png icons/luna-moon/18.png image/png upload [10] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/17.png icons/luna-moon/17.png image/png upload [9] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/16.png icons/luna-moon/16.png image/png upload [8] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/15.png icons/luna-moon/15.png image/png upload [7] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/14.png icons/luna-moon/14.png image/png upload [6] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/13.png icons/luna-moon/13.png image/png upload [5] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/12.png icons/luna-moon/12.png image/png upload [4] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/11.png icons/luna-moon/11.png image/png upload [3] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/10.png icons/luna-moon/10.png image/png upload [2] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/1.png icons/luna-moon/1.png image/png upload [1] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/icons/luna-moon/0.png icons/luna-moon/0.png image/png upload [0] daswetter.admin /opt/iobroker/node_modules/iobroker.daswetter/admin/daswettercom.png daswettercom.png image/png Adapter "daswetter" updated host.raspberrypi Adapter "system.adapter.daswetter.0" is started process exited with code 0
Die Updates laufen zwar durch, was gut ist.
Was muss ich tun, um diesen Fehler zu beheben?
Wie kann ich diesen zuküftig vermeiden?Danke für eure Hilfe.
Gruß
Thomas -
Hast du zufällig den terminal-Adapter installiert?
Schubs den mal aus dem System raus. Ist ohnehin meist entbehrlich, ein Terminal hast du auf deinem Pi ja eh laufen, da braucht es nicht auch noch einen Adapter. -
@thomas-braun sagte in gyp ERR! build error:
Hast du zufällig den terminal-Adapter installiert?
Schubs den mal aus dem System raus. Ist ohnehin meist entbehrlich, ein Terminal hast du auf deinem Pi ja eh laufen, da braucht es nicht auch noch einen Adapter.Hallo Thomas,
dank deines Tipps ist der Fehler jetzt weg.
Vielen Dank dafür.
Kurze Frage: Wie bist du darauf gekommen.Gruß
Thomas -
Ich hab schon den ein oder anderen "Fall" hier im Forum verarztet. Da kommt man auch schon mal auf sowas.
Das
authenticate_pam
kam mir bekannt vor.
Und darüber hinaus bin ich der Meinung, das nicht genutzte Adapter auch nicht installiert sein sollten. Was nicht da ist kann auch keinen Ärger machen.
-
@thomas-braun Bei mir ist es genau das Gleiche gewesen. Vielen Dank für den Tipp
-
Hallo,
mich hat es jetzt auch erwischt. Ich bekomme bei jedem Adapterupdate folgendes Log:
Es wird immer das Paket cpu-features bemängelt. Ich kann dieses Paket aber auch nicht installieren, da bekomme ich Errors. Es funktioniert eigentlich alles, aber bei jedem Adapterupdate bekomme ich diese Fehlermeldung, das ist schon nervig.
-
-
danke Dir, werde ich mal nachinstallieren.