{"action":"created","issue":{"url":"https://api.github.com/repos/tuxnsk/nodejs_libmodbus/issues/22","labels_url":"https://api.github.com/repos/tuxnsk/nodejs_libmodbus/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/tuxnsk/nodejs_libmodbus/issues/22/comments","events_url":"https://api.github.com/repos/tuxnsk/nodejs_libmodbus/issues/22/events","html_url":"https://github.com/tuxnsk/nodejs_libmodbus/issues/22","id":97913079,"number":22,"title":"Node 0.12 compatibility","user":{"login":"iMarvinS","id":7142039,"avatar_url":"https://avatars.githubusercontent.com/u/7142039?v=3","gravatar_id":"","url":"https://api.github.com/users/iMarvinS","html_url":"https://github.com/iMarvinS","followers_url":"https://api.github.com/users/iMarvinS/followers","following_url":"https://api.github.com/users/iMarvinS/following{/other_user}","gists_url":"https://api.github.com/users/iMarvinS/gists{/gist_id}","starred_url":"https://api.github.com/users/iMarvinS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iMarvinS/subscriptions","organizations_url":"https://api.github.com/users/iMarvinS/orgs","repos_url":"https://api.github.com/users/iMarvinS/repos","events_url":"https://api.github.com/users/iMarvinS/events{/privacy}","received_events_url":"https://api.github.com/users/iMarvinS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-29T11:06:20Z","updated_at":"2015-08-19T15:00:30Z","closed_at":null,"body":"Could it be that this awesome module is not comptabile with node v0.12.x ?\r\nI cannot compile it properly."},"comment":{"url":"https://api.github.com/repos/tuxnsk/nodejs_libmodbus/issues/comments/132630386","html_url":"https://github.com/tuxnsk/nodejs_libmodbus/issues/22#issuecomment-132630386","issue_url":"https://api.github.com/repos/tuxnsk/nodejs_libmodbus/issues/22","id":132630386,"user":{"login":"jkeiter","id":6931294,"avatar_url":"https://avatars.githubusercontent.com/u/6931294?v=3","gravatar_id":"","url":"https://api.github.com/users/jkeiter","html_url":"https://github.com/jkeiter","followers_url":"https://api.github.com/users/jkeiter/followers","following_url":"https://api.github.com/users/jkeiter/following{/other_user}","gists_url":"https://api.github.com/users/jkeiter/gists{/gist_id}","starred_url":"https://api.github.com/users/jkeiter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkeiter/subscriptions","organizations_url":"https://api.github.com/users/jkeiter/orgs","repos_url":"https://api.github.com/users/jkeiter/repos","events_url":"https://api.github.com/users/jkeiter/events{/privacy}","received_events_url":"https://api.github.com/users/jkeiter/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T15:00:30Z","updated_at":"2015-08-19T15:00:30Z","body":"I have the following using armhf and compiling on a RPI 1 with latest updated raspbian for the first function in main.cpp\r\nHandle<Value> js_new_rtu(const Arguments& args) { ..\r\n\r\ngyp info it worked if it ends with ok\r\ngyp info using node-gyp@2.0.2\r\ngyp info using node@0.12.6 | linux | arm\r\ngyp info spawn make\r\ngyp info make: Entering directory '/home/pi/nodeLibmodbus-master/build'\r\nspawn args [ 'BUILDTYPE=Release', '-C', 'build' ]\r\n  CXX(target) Release/obj.target/modbus_binding/src/main.o\r\n../src/main.cpp:24:32: error: ‘Arguments’ does not name a type\r\n../src/main.cpp:24:43: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n../src/main.cpp: In function ‘v8::Handle<v8::Value> js_new_rtu(const int&)’:\r\n../src/main.cpp:25:33: error: invalid types ‘const int[int]’ for array subscript\r\n../src/main.cpp:26:40: error: invalid types ‘const int[int]’ for array subscript\r\n../src/main.cpp:27:37: error: invalid types ‘const int[int]’ for array subscript\r\n../src/main.cpp:28:44: error: invalid types ‘const int[int]’ for array subscript\r\n../src/main.cpp:29:44: error: invalid types ‘const int[int]’ for array subscript\r\n../src/main.cpp:35:31: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Null(v8::Isolate*)’\r\n/home/pi/.node-gyp/0.12.6/deps/v8/include/v8.h:306:28: note: declared here\r\n../src/main.cpp:37:9: error: ‘Wrap’ is not a member of ‘v8::External’\r\n../src/main.cpp: At global scope:\r\n../src/main.cpp:42:44: error: ‘Arguments’ does not name a type // and so on ..\r\n\r\nI dont have a lot of experience in c++ debug but the Arguments type error seems to be the first issue..\r\nmaybe a compiler switch? Perhaps the compiler update is the issue and not V8.\r\nThanks \r\n\r\n"}}