Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin homebridge-zigbee is Failing to Install, Node GYP Error #263

Closed
jonnycastaway opened this issue Nov 27, 2019 · 10 comments
Closed

Plugin homebridge-zigbee is Failing to Install, Node GYP Error #263

jonnycastaway opened this issue Nov 27, 2019 · 10 comments
Labels
plugins Issues related to plugins

Comments

@jonnycastaway
Copy link

Hello,
after updating my working Hoobs v2 installation to v3 with the homebridge-to-hobbs plugin all my accessories are gone.
My plugins are there and i can see tha the hue plugin loads and initialize bulbs but there is nothing in the accessories area.

Any idea?

@jonnycastaway
Copy link
Author

Puh, things going strange.
I saw that the zigbee plugin was not installed after the upgrade.
After installing it all other plugins are away. Thats not good :-(

@mkellsy
Copy link
Contributor

mkellsy commented Nov 27, 2019

What plugins are you running? I need to test there are many out there.

homebridge-hue?
homebridge-zigbee?

@mkellsy mkellsy added 3.0.0 discovery Issues reported without enough information labels Nov 27, 2019
@jonnycastaway
Copy link
Author

jonnycastaway commented Nov 27, 2019

Thanks for your reply.
In v2 i run tge following plugins.

homebridge-automation-switches
homebridge-http-switch
homebridge-mqttthing
homebridge-sonoff-tasmota-http
homebridge-hue
homebridge-onkyo
homebridge-zigbee

now i'm installing all the plugins new in v3 step by step :-/
but i can't install the homebridge-zigbee plugin...

@mkellsy
Copy link
Contributor

mkellsy commented Nov 27, 2019

Can you give me a log output?

@jonnycastaway
Copy link
Author

jonnycastaway commented Nov 27, 2019

Yes, now i have a error in the log.
It's from homebridge-zigbee installation

`

[email protected] install /home/hoobs/.hoobs/node_modules/serialport
prebuild-install || node-gyp rebuild
prebuild-install
WARN install No prebuilt binaries found (target=12.13.1 runtime=node arch=arm platform=linux)
make: Entering directory '/home/hoobs/.hoobs/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:41:48: error: no matching function for call to ‘v8::Value::ToString()’
v8::String::Utf8Value path(info[0]->ToString());
^
In file included from /home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2572:44: note: candidate: ‘v8::MaybeLocalv8::String v8::Value::ToString(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2572:44: note: candidate expects 1 argument, 0 provided
In file included from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:25,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2588:31: note: candidate: ‘v8::Localv8::String v8::Value::ToString(v8::Isolate*) const’
Local ToString(Isolate* isolate) const);
^~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2588:31: note: candidate expects 1 argument, 0 provided
Local ToString(Isolate* isolate) const);
^~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp:48:53: error: no matching function for call to ‘v8::Value::ToObject()’
v8::Localv8::Object options = info[1]->ToObject();
^
In file included from /home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2576:44: note: candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2576:44: note: candidate expects 1 argument, 0 provided
In file included from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:25,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2590:31: note: candidate: ‘v8::Localv8::Object v8::Value::ToObject(v8::Isolate*) const’
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2590:31: note: candidate expects 1 argument, 0 provided
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp:78:69: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
^~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
../src/serialport.cpp:95:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:113:53: error: no matching function for call to ‘v8::Value::ToObject()’
v8::Localv8::Object options = info[1]->ToObject();
^
In file included from /home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2576:44: note: candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2576:44: note: candidate expects 1 argument, 0 provided
In file included from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:25,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2590:31: note: candidate: ‘v8::Localv8::Object v8::Value::ToObject(v8::Isolate) const’
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2590:31: note: candidate expects 1 argument, 0 provided
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp:135:71: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
^~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
../src/serialport.cpp:150:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:175:70: warning: cast between incompatible function types from ‘void (
)(uv_work_t*)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
../src/serialport.cpp:188:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:215:70: warning: cast between incompatible function types from ‘void (
)(uv_work_t*)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:
../src/serialport.cpp:231:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:250:53: error: no matching function for call to ‘v8::Value::ToObject()’
v8::Localv8::Object options = info[1]->ToObject();
^
In file included from /home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2576:44: note: candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2576:44: note: candidate expects 1 argument, 0 provided
In file included from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:25,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2590:31: note: candidate: ‘v8::Localv8::Object v8::Value::ToObject(v8::Isolate) const’
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:2590:31: note: candidate expects 1 argument, 0 provided
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp:270:68: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
^~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:
../src/serialport.cpp:285:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:314:68: warning: cast between incompatible function types from ‘void (
)(uv_work_t*)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet);
^~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t*)’:
../src/serialport.cpp:329:96: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
results->Set(Nan::Newv8::String("cts").ToLocalChecked(), Nan::Newv8::Boolean(data->cts));
^
In file included from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:25,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:3403:22: note: declared here
bool Set(Local key, Local value));
^~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp:330:96: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
results->Set(Nan::Newv8::String("dsr").ToLocalChecked(), Nan::Newv8::Boolean(data->dsr));
^
In file included from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:25,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:3403:22: note: declared here
bool Set(Local key, Local value));
^~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp:331:96: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
results->Set(Nan::Newv8::String("dcd").ToLocalChecked(), Nan::Newv8::Boolean(data->dcd));
^
In file included from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:25,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:3403:22: note: declared here
bool Set(Local key, Local value));
^~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp:336:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:363:76: warning: cast between incompatible function types from ‘void (
)(uv_work_t*)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate);
^~~~~~~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterGetBaudRate(uv_work_t*)’:
../src/serialport.cpp:378:106: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
results->Set(Nan::Newv8::String("baudRate").ToLocalChecked(), Nan::Newv8::Integer(data->baudRate));
^
In file included from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:25,
from /home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:3403:22: note: declared here
bool Set(Local key, Local value));
^~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp:383:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:409:70: warning: cast between incompatible function types from ‘void (
)(uv_work_t*)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:
../src/serialport.cpp:424:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/serialport.cpp: At global scope:
../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses]
SerialPortParity NAN_INLINE(ToParityEnum(const v8::Localv8::String& v8str)) {
^
../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses]
SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
^
../src/serialport.cpp:460:17: error: variable or field ‘init’ declared void
void init(v8::Handlev8::Object target) {
^~~~~~
../src/serialport.cpp:460:17: error: ‘Handle’ is not a member of ‘v8’
../src/serialport.cpp:460:34: error: expected primary-expression before ‘>’ token
void init(v8::Handlev8::Object target) {
^
../src/serialport.cpp:460:36: error: ‘target’ was not declared in this scope
void init(v8::Handlev8::Object target) {
^~~~~~
../src/serialport.cpp:460:36: note: suggested alternative: ‘tzset’
void init(v8::Handlev8::Object target) {
^~~~~~
tzset
In file included from ../../nan/nan.h:54,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../src/serialport.cpp:485:25: error: ‘init’ was not declared in this scope
NODE_MODULE(serialport, init);
^~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:566:36: note: in definition of macro ‘NODE_MODULE_X’
(node::addon_register_func) (regfunc),
^~~~~~~
../src/serialport.cpp:485:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(serialport, init);
^~~~~~~~~~~
../src/serialport.cpp:485:25: note: suggested alternative: ‘int’
NODE_MODULE(serialport, init);
^~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:566:36: note: in definition of macro ‘NODE_MODULE_X’
(node::addon_register_func) (regfunc),
^~~~~~~
../src/serialport.cpp:485:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(serialport, init);
^~~~~~~~~~~
In file included from /home/hoobs/.cache/node-gyp/12.13.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P
, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/home/hoobs/.cache/node-gyp/12.13.1/include/node/node_object_wrap.h:84:78: required from here
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:10004:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
reinterpret_cast(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P
, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../../nan/nan_object_wrap.h:65:61: required from here
/home/hoobs/.cache/node-gyp/12.13.1/include/node/v8.h:10004:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
make: *** [serialport.target.mk:110: Release/obj.target/serialport/src/serialport.o] Error 1
make: Leaving directory '/home/hoobs/.hoobs/node_modules/serialport/build'
gyp
ERR! build error
gyp
ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.19.58-v7+
gyp ERR!
command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/hoobs/.hoobs/node_modules/serialport
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm
WARN notsup Unsupported engine for [email protected]: wanted: {"node":"~0.10.0"} (current: {"node":"12.13.1","npm":"6.13.1"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN
notsup Unsupported engine for [email protected]: wanted: {"node":"~0.10.0"} (current: {"node":"12.13.1","npm":"6.13.1"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm ERR!
code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: prebuild-install || node-gyp rebuild
npm ERR!
Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[11/27/2019, 18:06:51] Installed "homebridge-zigbee" package.
`

@mkellsy
Copy link
Contributor

mkellsy commented Nov 27, 2019

I tried to install it on my dev environment too. It looks like the plugin is not updated for the new Node LTS version. There is an open issue on the homebridge-zigbee repo.

itsmepetrov/homebridge-zigbee#52

@jonnycastaway
Copy link
Author

ok, i remove the homebridge-zigbee part from my config and testing

@mkellsy
Copy link
Contributor

mkellsy commented Nov 27, 2019

I am updating the issue and giving the dev some detailed info. You can chime in too.

@mkellsy mkellsy added plugins Issues related to plugins and removed 3.0.0 discovery Issues reported without enough information labels Nov 27, 2019
@mkellsy
Copy link
Contributor

mkellsy commented Nov 27, 2019

It looks like the homebridge-zigbee is using an old version of "serialport", they need to upgrade the dependency to version 8.0.5.

@mkellsy mkellsy closed this as completed Nov 27, 2019
@mkellsy mkellsy changed the title No Accessories shown Plugin homebridge-zigbee is Failing to Install, Node GYP Error Nov 27, 2019
@jonnycastaway
Copy link
Author

For information.
Removed the homebridge-zigbee part from my config and install all other plugins
except homebridge-zigbee. All went well. Now i hope the homebridge-zigbee plugin would be updated in the near future :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugins Issues related to plugins
Projects
None yet
Development

No branches or pull requests

2 participants