{"action":"created","issue":{"url":"https://api.github.com/repos/indutny/node-netroute/issues/9","labels_url":"https://api.github.com/repos/indutny/node-netroute/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/indutny/node-netroute/issues/9/comments","events_url":"https://api.github.com/repos/indutny/node-netroute/issues/9/events","html_url":"https://github.com/indutny/node-netroute/issues/9","id":114503380,"number":9,"title":"Error: install / build fail on FreeBSD // incompatible nan dependenciy","user":{"login":"TomFreudenberg","id":410087,"avatar_url":"https://avatars.githubusercontent.com/u/410087?v=3","gravatar_id":"","url":"https://api.github.com/users/TomFreudenberg","html_url":"https://github.com/TomFreudenberg","followers_url":"https://api.github.com/users/TomFreudenberg/followers","following_url":"https://api.github.com/users/TomFreudenberg/following{/other_user}","gists_url":"https://api.github.com/users/TomFreudenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/TomFreudenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomFreudenberg/subscriptions","organizations_url":"https://api.github.com/users/TomFreudenberg/orgs","repos_url":"https://api.github.com/users/TomFreudenberg/repos","events_url":"https://api.github.com/users/TomFreudenberg/events{/privacy}","received_events_url":"https://api.github.com/users/TomFreudenberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-02T00:18:56Z","updated_at":"2015-11-02T02:06:04Z","closed_at":null,"body":"Hi, I am maintaining an unofficial fork for meteor to run it on not yet supported platforms. Currently try to get it run on FreeBSD but on of the last parts is `netroute`.\r\n\r\nMay you have a look on it?\r\n\r\nI guess, that the depended `nan` package is outdated / incompatible.\r\n\r\nSystem FreeBSD FreeBSD-10-2 10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666\r\n\r\nnode: v0.10.40\r\n\r\n`npm install netroute`\r\n\r\nError:\r\n\r\n```\r\n[root@FreeBSD-10-2 /tmp/node]# bin/npm install netroute\r\n|\r\n> netroute@0.2.5 install /tmp/node/node_modules/netroute\r\n> node-gyp rebuild\r\n\r\ngyp WARN EACCES user \"root\" does not have permission to access the dev dir \"/root/.node-gyp/0.10.40\"\r\ngyp WARN EACCES attempting to reinstall using temporary dev dir \"/tmp/node/node_modules/netroute/.node-gyp\"\r\ngmake: Entering directory '/tmp/node/node_modules/netroute/build'\r\n  CXX(target) Release/obj.target/netroute/src/netroute.o\r\n  CXX(target) Release/obj.target/netroute/src/platform-unix.o\r\nIn file included from ../src/platform-unix.cc:3:\r\nIn file included from ../node_modules/nan/nan.h:111:\r\n../node_modules/nan/nan_new.h:210:10: error: call to 'New' is ambiguous\r\n  return Nan::imp::Factory<T>::New(arg0);\r\n         ^~~~~~~~~~~~~~~~~~~~~~~~~\r\n../src/platform-unix.cc:99:38: note: in instantiation of function template specialization 'NanNew<v8::Int32, unsigned long>' requested here\r\n    info->Set(NanNew<String>(\"mtu\"), NanNew<Int32>(msg->rtm_rmx.rmx_mtu));\r\n                                     ^\r\n../node_modules/nan/nan_new.h:110:26: note: candidate function\r\n  static inline return_t New(int32_t value);\r\n                         ^\r\n../node_modules/nan/nan_new.h:111:26: note: candidate function\r\n  static inline return_t New(uint32_t value);\r\n                         ^\r\n1 error generated.\r\nnetroute.target.mk:86: recipe for target 'Release/obj.target/netroute/src/platform-unix.o' failed\r\ngmake: *** [Release/obj.target/netroute/src/platform-unix.o] Error 1\r\ngmake: Leaving directory '/tmp/node/node_modules/netroute/build'\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `gmake` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/tmp/node/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:820:12)\r\ngyp ERR! System FreeBSD 10.2-RELEASE\r\ngyp ERR! command \"node\" \"/tmp/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /tmp/node/node_modules/netroute\r\ngyp ERR! node -v v0.10.40\r\ngyp ERR! node-gyp -v v1.0.1\r\ngyp ERR! not ok\r\n\r\nnpm ERR! netroute@0.2.5 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the netroute@0.2.5 install script.\r\nnpm ERR! This is most likely a problem with the netroute 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 netroute\r\nnpm ERR! There is likely additional logging output above.\r\nnpm ERR! System FreeBSD 10.2-RELEASE\r\nnpm ERR! command \"/tmp/node/bin/node\" \"/tmp/node/bin/npm\" \"install\" \"netroute\"\r\nnpm ERR! cwd /tmp/node\r\nnpm ERR! node -v v0.10.40\r\nnpm ERR! npm -v 1.4.28\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! not ok code 0\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/indutny/node-netroute/issues/comments/152889144","html_url":"https://github.com/indutny/node-netroute/issues/9#issuecomment-152889144","issue_url":"https://api.github.com/repos/indutny/node-netroute/issues/9","id":152889144,"user":{"login":"TomFreudenberg","id":410087,"avatar_url":"https://avatars.githubusercontent.com/u/410087?v=3","gravatar_id":"","url":"https://api.github.com/users/TomFreudenberg","html_url":"https://github.com/TomFreudenberg","followers_url":"https://api.github.com/users/TomFreudenberg/followers","following_url":"https://api.github.com/users/TomFreudenberg/following{/other_user}","gists_url":"https://api.github.com/users/TomFreudenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/TomFreudenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomFreudenberg/subscriptions","organizations_url":"https://api.github.com/users/TomFreudenberg/orgs","repos_url":"https://api.github.com/users/TomFreudenberg/repos","events_url":"https://api.github.com/users/TomFreudenberg/events{/privacy}","received_events_url":"https://api.github.com/users/TomFreudenberg/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T02:06:04Z","updated_at":"2015-11-02T02:06:04Z","body":"Hey, I changed all occurencies of `<Int32>` to `<Number>` and that gets compiled. As `nan`release was taken automatically release `1.9.0` \r\n"}}