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

Install Failed #61

Open
japita-se opened this issue Aug 10, 2016 · 2 comments
Open

Install Failed #61

japita-se opened this issue Aug 10, 2016 · 2 comments

Comments

@japita-se
Copy link

A fresh install with "npm install openzwave -g"

CXX(target) Release/obj.target/openzwave/src/openzwave.o
../src/openzwave.cc:36:24: error: expected class-name before ‘{’ token
 struct OZW: ObjectWrap {
                        ^
../src/openzwave.cc:37:33: error: ‘Arguments’ does not name a type
  static Handle<Value> New(const Arguments& args);
                                 ^
../src/openzwave.cc:37:44: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
  static Handle<Value> New(const Arguments& args);
                                            ^
../src/openzwave.cc:38:37: error: ‘Arguments’ does not name a type
  static Handle<Value> Connect(const Arguments& args);
                                     ^
../src/openzwave.cc:38:48: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
  static Handle<Value> Connect(const Arguments& args);
                                                ^
../src/openzwave.cc:39:40: error: ‘Arguments’ does not name a type
  static Handle<Value> Disconnect(const Arguments& args);
                                        ^
../src/openzwave.cc:39:51: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
  static Handle<Value> Disconnect(const Arguments& args);
                                                   ^
../src/openzwave.cc:40:38: error: ‘Arguments’ does not name a type
  static Handle<Value> SetValue(const Arguments& args);
                                      ^
../src/openzwave.cc:40:49: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
  static Handle<Value> SetValue(const Arguments& args);
                                                 ^
../src/openzwave.cc:41:38: error: ‘Arguments’ does not name a type
  static Handle<Value> SetLevel(const Arguments& args);
                                      ^
../src/openzwave.cc:41:49: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
  static Handle<Value> SetLevel(const Arguments& args);
                                                 ^
../src/openzwave.cc:42:41: error: ‘Arguments’ does not name a type
  static Handle<Value> SetLocation(const Arguments& args);
                                         ^
../src/openzwave.cc:42:52: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
  static Handle<Value> SetLocation(const Arguments& args);
                                                    ^
../src/openzwave.cc:43:37: error: ‘Arguments’ does not name a type
  static Handle<Value> SetName(const Arguments& args);
                                     ^
../src/openzwave.cc:43:48: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
  static Handle<Value> SetName(const Arguments& args);
                                                ^
../src/openzwave.cc:44:38: error: ‘Arguments’ does not name a type
  static Handle<Value> SwitchOn(const Arguments& args);
                                      ^
../src/openzwave.cc:44:49: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
  static Handle<Value> SwitchOn(const Arguments& args);
                                                 ^
../src/openzwave.cc:45:39: error: ‘Arguments’ does not name a type
  static Handle<Value> SwitchOff(const Arguments& args);
                                       ^
../src/openzwave.cc:45:50: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
  static Handle<Value> SwitchOff(const Arguments& args);
                                                  ^
../src/openzwave.cc:46:40: error: ‘Arguments’ does not name a type
  static Handle<Value> EnablePoll(const Arguments& args);
                                        ^
../src/openzwave.cc:46:51: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
  static Handle<Value> EnablePoll(const Arguments& args);
                                                   ^
../src/openzwave.cc:47:41: error: ‘Arguments’ does not name a type
  static Handle<Value> DisablePoll(const Arguments& args);
                                         ^
../src/openzwave.cc:47:52: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
  static Handle<Value> DisablePoll(const Arguments& args);
                                                    ^
../src/openzwave.cc:48:39: error: ‘Arguments’ does not name a type
  static Handle<Value> HardReset(const Arguments& args);
                                       ^
../src/openzwave.cc:48:50: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
  static Handle<Value> HardReset(const Arguments& args);
                                                  ^
../src/openzwave.cc:49:39: error: ‘Arguments’ does not name a type
  static Handle<Value> SoftReset(const Arguments& args);
                                       ^
../src/openzwave.cc:49:50: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
  static Handle<Value> SoftReset(const Arguments& args);
                                                  ^
../src/openzwave.cc:54:1: error: ‘uv_async_t’ does not name a type
 uv_async_t async;
 ^
../src/openzwave.cc: In function ‘void {anonymous}::cb(const OpenZWave::Notification*, void*)’:
../src/openzwave.cc:149:17: error: ‘async’ was not declared in this scope
  uv_async_send(&async);
                 ^
../src/openzwave.cc:149:22: error: ‘uv_async_send’ was not declared in this scope
  uv_async_send(&async);
                      ^
../src/openzwave.cc: At global scope:
../src/openzwave.cc:155:23: error: variable or field ‘async_cb_handler’ declared void
 void async_cb_handler(uv_async_t *handle, int status)
                       ^
../src/openzwave.cc:155:23: error: ‘uv_async_t’ was not declared in this scope
../src/openzwave.cc:155:35: error: ‘handle’ was not declared in this scope
 void async_cb_handler(uv_async_t *handle, int status)
                                   ^
../src/openzwave.cc:155:43: error: expected primary-expression before ‘int’
 void async_cb_handler(uv_async_t *handle, int status)
                                           ^
In file included from ../src/openzwave.cc:22:0:
/usr/local/lib/node_modules/openzwave/.node-gyp/6.3.0/include/node/node.h:454:3: error: expected ‘}’ at end of input
   }
   ^
/usr/local/lib/node_modules/openzwave/.node-gyp/6.3.0/include/node/node.h:476:3: note: in expansion of macro ‘NODE_MODULE_X’
   NODE_MODULE_X(modname, regfunc, NULL, 0)
   ^
../src/openzwave.cc:728:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(openzwave, init)
 ^
../src/openzwave.cc:84:24: warning: ‘{anonymous}::znodes_mutex’ defined but not used [-Wunused-variable]
 static pthread_mutex_t znodes_mutex = PTHREAD_MUTEX_INITIALIZER;
                        ^
../src/openzwave.cc:87:17: warning: ‘{anonymous}::homeid’ defined but not used [-Wunused-variable]
 static uint32_t homeid;
                 ^
make: *** [Release/obj.target/openzwave/src/openzwave.o] Error 1
make: Leaving directory `/usr/local/lib/node_modules/openzwave/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:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 3.19.8-100.fc20.x86_64
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 /usr/local/lib/node_modules/openzwave
gyp ERR! node -v v6.3.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok 
npm ERR! Linux 3.19.8-100.fc20.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "openzwave" "-g"
npm ERR! node v6.3.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE

npm ERR! openzwave@0.0.33 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the openzwave@0.0.33 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the openzwave package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs openzwave
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls openzwave
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

@bones-pc
Copy link

bones-pc commented Sep 9, 2016

same here

@mayankc7h7
Copy link

I am getting:

                             ^

/Users//.node-gyp/7.1.0/include/node/Node.h:146:34: note: candidate function not viable: requires 5
arguments, but 4 were provided
NODE_EXTERN v8::Localv8::Value MakeCallback(
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
make: *** [Release/obj.target/openzwave/src/openzwave.o] Error 1
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:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 16.5.0
gyp ERR! command "/usr/local/Cellar/node/7.1.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users//myWorkSpace/myHome/Web/client/node_modules/openzwave
gyp ERR! node -v v7.1.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN webhook-myHome-client@1.0.0 No repository field.
npm WARN webhook-myHome-client@1.0.0 No license field.
npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/Cellar/node/7.1.0/bin/node" "/usr/local/bin/npm" "install" "--save" "openzwave"
npm ERR! node v7.1.0
npm ERR! npm v4.1.1
npm ERR! code ELIFECYCLE

npm ERR! openzwave@0.0.33 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openzwave@0.0.33 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the openzwave package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs openzwave
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls openzwave
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

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

No branches or pull requests

3 participants