{"action":"created","issue":{"url":"https://api.github.com/repos/hobbyquaker/cul/issues/2","repository_url":"https://api.github.com/repos/hobbyquaker/cul","labels_url":"https://api.github.com/repos/hobbyquaker/cul/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/hobbyquaker/cul/issues/2/comments","events_url":"https://api.github.com/repos/hobbyquaker/cul/issues/2/events","html_url":"https://github.com/hobbyquaker/cul/issues/2","id":179896207,"number":2,"title":"problem with installing on debian jessie / RPi2","user":{"login":"jgantenberg","id":10530713,"avatar_url":"https://avatars.githubusercontent.com/u/10530713?v=3","gravatar_id":"","url":"https://api.github.com/users/jgantenberg","html_url":"https://github.com/jgantenberg","followers_url":"https://api.github.com/users/jgantenberg/followers","following_url":"https://api.github.com/users/jgantenberg/following{/other_user}","gists_url":"https://api.github.com/users/jgantenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/jgantenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgantenberg/subscriptions","organizations_url":"https://api.github.com/users/jgantenberg/orgs","repos_url":"https://api.github.com/users/jgantenberg/repos","events_url":"https://api.github.com/users/jgantenberg/events{/privacy}","received_events_url":"https://api.github.com/users/jgantenberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-28T21:33:10Z","updated_at":"2016-09-29T09:00:45Z","closed_at":null,"body":"when installing cul dependency the serialport lib will be translated. I get compile errors with serialport module 1.4.10:\r\n\r\n```\r\n`> serialport@1.7.4 install /usr/local/lib/node_modules/serialport\r\n> node-pre-gyp install --fallback-to-build\r\n\r\nmake: Entering directory '/usr/local/lib/node_modules/serialport/build'\r\n  CXX(target) Release/obj.target/serialport/src/serialport.o\r\nIn file included from ../src/serialport.h:5:0,\r\n                 from ../src/serialport.cpp:3:\r\n../node_modules/nan/nan.h:261:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’\r\n NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {\r\n                         ^\r\n../node_modules/nan/nan.h:256:25: note: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here\r\n NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {\r\n                         ^\r\n../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared\r\n     , node::smalloc::FreeCallback callback\r\n             ^\r\n../node_modules/nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’\r\n     , node::smalloc::FreeCallback callback\r\n                                   ^\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:\r\n../node_modules/nan/nan.h:665:50: error: ‘callback’ was not declared in this scope\r\n         v8::Isolate::GetCurrent(), data, length, callback, hint);\r\n                                                  ^\r\n../node_modules/nan/nan.h:665:60: error: ‘hint’ was not declared in this scope\r\n         v8::Isolate::GetCurrent(), data, length, callback, hint);\r\n                                                            ^\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:\r\n../node_modules/nan/nan.h:672:67: error: call of overloaded ‘New(v8::Isolate*, const char*&, uint32_t&)’ is ambiguous\r\n     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);\r\n                                                                   ^\r\n../node_modules/nan/nan.h:672:67: note: candidates are:\r\nIn file included from ../node_modules/nan/nan.h:25:0,\r\n                 from ../src/serialport.h:5,\r\n                 from ../src/serialport.cpp:3:\r\n/root/.node-gyp/4.2.1/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                        ^\r\n/root/.node-gyp/4.2.1/include/node/node_buffer.h:31:40: note:   no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’\r\n/root/.node-gyp/4.2.1/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match>\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                        ^\r\n/root/.node-gyp/4.2.1/include/node/node_buffer.h:43:40: note:   no known conversion for argument 2 from ‘const char*’ to ‘char*’\r\nIn file included from ../src/serialport.h:5:0,\r\n                 from ../src/serialport.cpp:3:\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:\r\n../node_modules/nan/nan.h:676:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), size)’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’\r\n     return node::Buffer::New(v8::Isolate::GetCurrent(), size);\r\n                                                             ^\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:\r\n../node_modules/nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’\r\n     return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);\r\n            ^\r\nserialport.target.mk:90: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed\r\nmake: *** [Release/obj.target/serialport/src/serialport.o] Error 1\r\nmake: Leaving directory '/usr/local/lib/node_modules/serialport/build'\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)\r\ngyp ERR! stack     at emitTwo (events.js:87:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:172:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)\r\ngyp ERR! System Linux 3.18.0-trunk-rpi2\r\ngyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/usr/local/lib/node_modules/serialport/build/serialport/v1.7.4/Release/node-v46-linux-arm/serialport.node\" \"--module_name=serialport\" \"--module_path=/usr/local/lib/node_modules/serialport/build/serialport/v1.7.4/Release/node-v46-linux-arm\"\r\ngyp ERR! cwd /usr/local/lib/node_modules/serialport\r\ngyp ERR! node -v v4.2.1\r\ngyp ERR! node-gyp -v v3.0.3\r\ngyp ERR! not ok\r\nnode-pre-gyp ERR! build error\r\nnode-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/serialport/build/serialport/v1.7.4/Release/node-v46-linux-arm/serialport.node --module_name=serialport --module_path=/usr/local/lib/node_modules/serialport/build/serialport/v1.7.4/Release/node-v46-linux-arm' (1)\r\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)\r\nnode-pre-gyp ERR! stack     at emitTwo (events.js:87:13)\r\nnode-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)\r\nnode-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:818:16)\r\nnode-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)\r\nnode-pre-gyp ERR! System Linux 3.18.0-trunk-rpi2\r\nnode-pre-gyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/serialport/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\r\nnode-pre-gyp ERR! cwd /usr/local/lib/node_modules/serialport\r\nnode-pre-gyp ERR! node -v v4.2.1\r\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.7\r\nnode-pre-gyp ERR! not ok\r\nFailed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/serialport/build/serialport/v1.7.4/Release/node-v46-linux-arm/serialport.node --module_name=serialport --module_path=/usr/local/lib/node_modules/serialport/build/serialport/v1.7.4/Release/node-v46-linux-arm' (1)\r\nnpm ERR! Linux 3.18.0-trunk-rpi2\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"-g\" \"--unsafe-perm\" \"serialport@1.7.4\"\r\nnpm ERR! node v4.2.1\r\nnpm ERR! npm  v2.14.7\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! serialport@1.7.4 install: `node-pre-gyp install --fallback-to-build`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the serialport@1.7.4 install script 'node-pre-gyp install --fallback-to-build'.\r\nnpm ERR! This is most likely a problem with the serialport package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-pre-gyp install --fallback-to-build\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls serialport\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /root/npm-debug.log\r\n`\r\n```"},"comment":{"url":"https://api.github.com/repos/hobbyquaker/cul/issues/comments/250410290","html_url":"https://github.com/hobbyquaker/cul/issues/2#issuecomment-250410290","issue_url":"https://api.github.com/repos/hobbyquaker/cul/issues/2","id":250410290,"user":{"login":"jgantenberg","id":10530713,"avatar_url":"https://avatars.githubusercontent.com/u/10530713?v=3","gravatar_id":"","url":"https://api.github.com/users/jgantenberg","html_url":"https://github.com/jgantenberg","followers_url":"https://api.github.com/users/jgantenberg/followers","following_url":"https://api.github.com/users/jgantenberg/following{/other_user}","gists_url":"https://api.github.com/users/jgantenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/jgantenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgantenberg/subscriptions","organizations_url":"https://api.github.com/users/jgantenberg/orgs","repos_url":"https://api.github.com/users/jgantenberg/repos","events_url":"https://api.github.com/users/jgantenberg/events{/privacy}","received_events_url":"https://api.github.com/users/jgantenberg/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T09:00:45Z","updated_at":"2016-09-29T09:00:45Z","body":"thanks, I will test soon, this evening hopefully.\r\nbtw, is it much work to also send messages to cul stick? As far as I understood at the moment only incoming messages will be treated."}}
{"actor":{"display_login":"jgantenberg"}}