{"action":"created","issue":{"url":"https://api.github.com/repos/nickdesaulniers/node-nanomsg/issues/40","labels_url":"https://api.github.com/repos/nickdesaulniers/node-nanomsg/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/nickdesaulniers/node-nanomsg/issues/40/comments","events_url":"https://api.github.com/repos/nickdesaulniers/node-nanomsg/issues/40/events","html_url":"https://github.com/nickdesaulniers/node-nanomsg/issues/40","id":54896372,"number":40,"title":"Fail to compile with io.js","user":{"login":"trygve-lie","id":173003,"avatar_url":"https://avatars.githubusercontent.com/u/173003?v=3","gravatar_id":"","url":"https://api.github.com/users/trygve-lie","html_url":"https://github.com/trygve-lie","followers_url":"https://api.github.com/users/trygve-lie/followers","following_url":"https://api.github.com/users/trygve-lie/following{/other_user}","gists_url":"https://api.github.com/users/trygve-lie/gists{/gist_id}","starred_url":"https://api.github.com/users/trygve-lie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trygve-lie/subscriptions","organizations_url":"https://api.github.com/users/trygve-lie/orgs","repos_url":"https://api.github.com/users/trygve-lie/repos","events_url":"https://api.github.com/users/trygve-lie/events{/privacy}","received_events_url":"https://api.github.com/users/trygve-lie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-20T15:29:57Z","updated_at":"2015-01-20T15:30:12Z","closed_at":null,"body":"This module currently fail to compile with io.js 1.0.x:\r\n\r\n```sh\r\n  CC(target) Release/obj.target/nanomsg/deps/nanomsg/src/utils/wire.o\r\n  AR(target) Release/obj.target/nanomsg.a\r\n  COPY Release/nanomsg.a\r\n  CXX(target) Release/obj.target/node_nanomsg/src/node_nanomsg.o\r\nIn file included from ../src/node_pointer.h:6:0,\r\n                 from ../src/node_nanomsg.cc:3:\r\n../node_modules/nan/nan.h:481:19: error: ‘NanNew’ declared as an ‘inline’ variable\r\n       v8::String::ExternalAsciiStringResource *resource) {\r\n                   ^\r\n../node_modules/nan/nan.h:481:19: error: ‘always_inline’ attribute ignored [-Werror=attributes]\r\n../node_modules/nan/nan.h:481:19: error: ‘v8::Local<v8::String> NanNew’ redeclared as different kind of symbol\r\n../node_modules/nan/nan.h:475:36: error: previous declaration of ‘v8::Local<v8::String> NanNew(v8::String::ExternalStringResource*)’\r\n   NAN_INLINE v8::Local<v8::String> NanNew(\r\n                                    ^\r\n../node_modules/nan/nan.h:481:7: error: ‘ExternalAsciiStringResource’ is not a member of ‘v8::String’\r\n       v8::String::ExternalAsciiStringResource *resource) {\r\n       ^\r\n../node_modules/nan/nan.h:481:48: error: ‘resource’ was not declared in this scope\r\n       v8::String::ExternalAsciiStringResource *resource) {\r\n                                                ^\r\n../node_modules/nan/nan.h: In function ‘bool _NanGetExternalParts(v8::Handle<v8::Value>, const char**, size_t*)’:\r\n../node_modules/nan/nan.h:2103:12: error: ‘class v8::String’ has no member named ‘IsExternalAscii’\r\n   if (str->IsExternalAscii()) {\r\n            ^\r\n../node_modules/nan/nan.h:2104:11: error: ‘ExternalAsciiStringResource’ in ‘class v8::String’ does not name a type\r\n     const v8::String::ExternalAsciiStringResource* ext;\r\n           ^\r\n../node_modules/nan/nan.h:2105:5: error: ‘ext’ was not declared in this scope\r\n     ext = str->GetExternalAsciiStringResource();\r\n     ^\r\n../node_modules/nan/nan.h:2105:16: error: ‘class v8::String’ has no member named ‘GetExternalAsciiStringResource’\r\n     ext = str->GetExternalAsciiStringResource();\r\n                ^\r\ncc1plus: all warnings being treated as errors\r\nmake: *** [Release/obj.target/node_nanomsg/src/node_nanomsg.o] Error 1\r\nmake: Leaving directory `/home/trygve/Dev/node-nanomsg/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:267:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:98:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1038:12)\r\ngyp ERR! System Linux 3.13.0-44-generic\r\ngyp ERR! command \"node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /home/trygve/Dev/node-nanomsg\r\ngyp ERR! node -v v1.0.3\r\ngyp ERR! node-gyp -v v1.0.2\r\ngyp ERR! not ok \r\n\r\nnpm ERR! Linux 3.13.0-44-generic\r\nnpm ERR! argv \"/usr/local/bin/iojs\" \"/usr/local/bin/npm\" \"install\"\r\nnpm ERR! node v1.0.3\r\nnpm ERR! npm  v2.2.0\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! nanomsg@0.2.9 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the nanomsg@0.2.9 install script 'node-gyp rebuild'.\r\nnpm ERR! This is most likely a problem with the nanomsg package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls nanomsg\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!     /home/trygve/Dev/node-nanomsg/npm-debug.log\r\n```"},"comment":{"url":"https://api.github.com/repos/nickdesaulniers/node-nanomsg/issues/comments/70671695","html_url":"https://github.com/nickdesaulniers/node-nanomsg/issues/40#issuecomment-70671695","issue_url":"https://api.github.com/repos/nickdesaulniers/node-nanomsg/issues/40","id":70671695,"user":{"login":"trygve-lie","id":173003,"avatar_url":"https://avatars.githubusercontent.com/u/173003?v=3","gravatar_id":"","url":"https://api.github.com/users/trygve-lie","html_url":"https://github.com/trygve-lie","followers_url":"https://api.github.com/users/trygve-lie/followers","following_url":"https://api.github.com/users/trygve-lie/following{/other_user}","gists_url":"https://api.github.com/users/trygve-lie/gists{/gist_id}","starred_url":"https://api.github.com/users/trygve-lie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trygve-lie/subscriptions","organizations_url":"https://api.github.com/users/trygve-lie/orgs","repos_url":"https://api.github.com/users/trygve-lie/repos","events_url":"https://api.github.com/users/trygve-lie/events{/privacy}","received_events_url":"https://api.github.com/users/trygve-lie/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T15:30:12Z","updated_at":"2015-01-20T15:30:12Z","body":"Ref: https://github.com/iojs/io.js/issues/456"}}