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

Unable to build #6

Open
nilzen opened this issue Apr 16, 2013 · 3 comments
Open

Unable to build #6

nilzen opened this issue Apr 16, 2013 · 3 comments

Comments

@nilzen
Copy link

nilzen commented Apr 16, 2013

I'm unable to build using node v0.10.3, not sure if I'm missing something or if it isn't compatible with my node version...?

npm http GET https://registry.npmjs.org/telldus-core-js
npm http 304 https://registry.npmjs.org/telldus-core-js

[email protected] install /***/node_modules/telldus-core-js
node-gyp configure build

CXX(target) Release/obj.target/telldus-core-js/telldus.o
../telldus.cc:1:9: warning: 'BUILDING_NODE_EXTENSION' macro redefined

define BUILDING_NODE_EXTENSION

    ^

:4:9: note: previous definition is here

define BUILDING_NODE_EXTENSION 1

    ^

../telldus.cc:205:34: error: unknown type name 'eio_req'
int DeviceEventCallbackAfter(eio_req req) {
^
../telldus.cc:225:17: error: use of undeclared identifier 'EIO_PRI_DEFAULT'
eio_nop(EIO_PRI_DEFAULT, DeviceEventCallbackAfter, batton);
^
../telldus.cc:239:34: error: unknown type name 'eio_req'
int SensorEventCallbackAfter(eio_req *req) {
^
../telldus.cc:271:17: error: use of undeclared identifier 'EIO_PRI_DEFAULT'
eio_nop(EIO_PRI_DEFAULT, SensorEventCallbackAfter, batton);
^
../telldus.cc:285:35: error: unknown type name 'eio_req'
int RawDataEventCallbackAfter(eio_req *req) {
^
../telldus.cc:306:17: error: use of undeclared identifier 'EIO_PRI_DEFAULT'
eio_nop(EIO_PRI_DEFAULT, RawDataEventCallbackAfter, batton);
^
1 warning and 6 errors generated.
make: *
* [Release/obj.target/telldus-core-js/telldus.o] Error 1

@LeonFedotov
Copy link

👍

@michaelsund
Copy link

Im also unable to build, although on raspbian wheezy.

npm http GET https://registry.npmjs.org/telldus-core-js
npm http 304 https://registry.npmjs.org/telldus-core-js

[email protected] install /usr/local/lib/node_modules/telldus-core-js
node-gyp configure build

make: Entering directory /usr/local/lib/node_modules/telldus-core-js/build' CXX(target) Release/obj.target/telldus-core-js/telldus.o ../telldus.cc:1:0: warning: "BUILDING_NODE_EXTENSION" redefined [enabled by default] <command-line>:0:0: note: this is the location of the previous definition ../telldus.cc:205:34: error: ‘eio_req’ was not declared in this scope ../telldus.cc:205:43: error: ‘req’ was not declared in this scope ../telldus.cc:205:48: error: expected ‘,’ or ‘;’ before ‘{’ token ../telldus.cc:357:1: error: expected ‘}’ at end of input make: *** [Release/obj.target/telldus-core-js/telldus.o] Error 1 make: Leaving directory/usr/local/lib/node_modules/telldus-core-js/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:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:100:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.6.11+
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /usr/local/lib/node_modules/telldus-core-js
gyp ERR! node -v v0.11.2
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0

@Hexagon
Copy link

Hexagon commented Nov 24, 2013

The current version of telldus-core-js is not compatible with node.js >= 0.10.x. I made a quick adaption ( Pull request #8 ) currently available at https://github.com/hexagon/telldus-core-js

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

4 participants