{"action":"opened","issue":{"url":"https://api.github.com/repos/pierreinglebert/node-zopfli/issues/59","labels_url":"https://api.github.com/repos/pierreinglebert/node-zopfli/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/pierreinglebert/node-zopfli/issues/59/comments","events_url":"https://api.github.com/repos/pierreinglebert/node-zopfli/issues/59/events","html_url":"https://github.com/pierreinglebert/node-zopfli/issues/59","id":102751399,"number":59,"title":"io.js 3.0 build failure","user":{"login":"ai","id":19343,"avatar_url":"https://avatars.githubusercontent.com/u/19343?v=3","gravatar_id":"","url":"https://api.github.com/users/ai","html_url":"https://github.com/ai","followers_url":"https://api.github.com/users/ai/followers","following_url":"https://api.github.com/users/ai/following{/other_user}","gists_url":"https://api.github.com/users/ai/gists{/gist_id}","starred_url":"https://api.github.com/users/ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ai/subscriptions","organizations_url":"https://api.github.com/users/ai/orgs","repos_url":"https://api.github.com/users/ai/repos","events_url":"https://api.github.com/users/ai/events{/privacy}","received_events_url":"https://api.github.com/users/ai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-24T09:46:04Z","updated_at":"2015-08-24T09:46:04Z","closed_at":null,"body":"```\r\n> node-zopfli@1.3.4 install /home/ai/Dev/amplifr/front/node_modules/gulp-zopfli/node_modules/node-zopfli\r\n> node-pre-gyp install --fallback-to-build\r\n\r\nmake: Entering directory '/home/ai/Dev/amplifr/front/node_modules/gulp-zopfli/node_modules/node-zopfli/build'\r\n  CXX(target) Release/obj.target/zopfli/src/zopfli-binding.o\r\nIn file included from ../src/zopfli-binding.h:5:0,\r\n                 from ../src/zopfli-binding.cc:3:\r\n../node_modules/nan/nan.h:324:27: error: redefinition of ‘template<class T> v8::Local<T> Nan::imp::NanEnsureHandleOrPersistent(const v8::Local<T>&)’\r\n   NAN_INLINE v8::Local<T> NanEnsureHandleOrPersistent(const v8::Local<T> &val) \r\n                           ^\r\n../node_modules/nan/nan.h:319:17: note: ‘template<class T> v8::Handle<T> Nan::imp::NanEnsureHandleOrPersistent(v8::Handle<T>&)’ previously declared here\r\n   v8::Handle<T> NanEnsureHandleOrPersistent(const v8::Handle<T> &val) {\r\n                 ^\r\n../node_modules/nan/nan.h:344:27: error: redefinition of ‘template<class T> v8::Local<T> Nan::imp::NanEnsureLocal(v8::Handle<T>&)’\r\n   NAN_INLINE v8::Local<T> NanEnsureLocal(const v8::Handle<T> &val) {\r\n                           ^\r\n../node_modules/nan/nan.h:334:27: note: ‘template<class T> v8::Local<T> Nan::imp::NanEnsureLocal(const v8::Local<T>&)’ previously declared here\r\n   NAN_INLINE v8::Local<T> NanEnsureLocal(const v8::Local<T> &val) {\r\n                           ^\r\n../node_modules/nan/nan.h:757:13: error: ‘node::smalloc’ has not been declared\r\n     , node::smalloc::FreeCallback callback\r\n             ^\r\n../node_modules/nan/nan.h:757: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:761: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:761: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:768:67: error: no matching function for call to ‘New(v8::Isolate*, const char*&, uint32_t&)’\r\n     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);\r\n                                                                   ^\r\nIn file included from ../node_modules/nan/nan.h:25:0,\r\n                 from ../src/zopfli-binding.h:5,\r\n                 from ../src/zopfli-binding.cc:3:\r\n/home/ai/.node-gyp/3.1.0/include/node/node_buffer.h:31:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Handle<v8::String>, node::encoding) <near match>\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                        ^\r\n/home/ai/.node-gyp/3.1.0/include/node/node_buffer.h:31:40: note:   conversion of argument 3 would be ill-formed:\r\nIn file included from ../src/zopfli-binding.h:5:0,\r\n                 from ../src/zopfli-binding.cc:3:\r\n../node_modules/nan/nan.h:768:67: error: invalid conversion from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’ [-fpermissive]\r\n     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);\r\n                                                                   ^\r\nIn file included from ../node_modules/nan/nan.h:25:0,\r\n                 from ../src/zopfli-binding.h:5,\r\n                 from ../src/zopfli-binding.cc:3:\r\n/home/ai/.node-gyp/3.1.0/include/node/node_buffer.h:43:40: note: candidate: 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/home/ai/.node-gyp/3.1.0/include/node/node_buffer.h:43:40: note:   conversion of argument 2 would be ill-formed:\r\nIn file included from ../src/zopfli-binding.h:5:0,\r\n                 from ../src/zopfli-binding.cc:3:\r\n../node_modules/nan/nan.h:768:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]\r\n     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);\r\n                                                                   ^\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:\r\n../node_modules/nan/nan.h:772:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)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:779:12: error: ‘Use’ is not a member of ‘node::Buffer’\r\n     return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);\r\n            ^\r\nzopfli.target.mk:122: recipe for target 'Release/obj.target/zopfli/src/zopfli-binding.o' failed\r\nmake: *** [Release/obj.target/zopfli/src/zopfli-binding.o] Error 1\r\nmake: Leaving directory '/home/ai/Dev/amplifr/front/node_modules/gulp-zopfli/node_modules/node-zopfli/build'\r\ngyp ERR! build error \r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/home/ai/.node/iojs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269: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 4.1.5-200.fc22.x86_64\r\ngyp ERR! command \"/home/ai/.node/iojs/bin/iojs\" \"/home/ai/.node/iojs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/home/ai/Dev/amplifr/front/node_modules/gulp-zopfli/node_modules/node-zopfli/lib/binding/node-v45-linux-x64/zopfli.node\" \"--module_name=zopfli\" \"--module_path=/home/ai/Dev/amplifr/front/node_modules/gulp-zopfli/node_modules/node-zopfli/lib/binding/node-v45-linux-x64\"\r\ngyp ERR! cwd /home/ai/Dev/amplifr/front/node_modules/gulp-zopfli/node_modules/node-zopfli\r\ngyp ERR! node -v v3.1.0\r\ngyp ERR! node-gyp -v v2.0.2\r\ngyp ERR! not ok \r\nnode-pre-gyp ERR! build error \r\nnode-pre-gyp ERR! stack Error: Failed to execute '/home/ai/.node/iojs/bin/iojs /home/ai/.node/iojs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/ai/Dev/amplifr/front/node_modules/gulp-zopfli/node_modules/node-zopfli/lib/binding/node-v45-linux-x64/zopfli.node --module_name=zopfli --module_path=/home/ai/Dev/amplifr/front/node_modules/gulp-zopfli/node_modules/node-zopfli/lib/binding/node-v45-linux-x64' (1)\r\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/ai/Dev/amplifr/front/node_modules/gulp-zopfli/node_modules/node-zopfli/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:764: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 4.1.5-200.fc22.x86_64\r\nnode-pre-gyp ERR! command \"/home/ai/.node/iojs/bin/iojs\" \"/home/ai/Dev/amplifr/front/node_modules/gulp-zopfli/node_modules/node-zopfli/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\r\nnode-pre-gyp ERR! cwd /home/ai/Dev/amplifr/front/node_modules/gulp-zopfli/node_modules/node-zopfli\r\nnode-pre-gyp ERR! node -v v3.1.0\r\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.9\r\nnode-pre-gyp ERR! not ok \r\nFailed to execute '/home/ai/.node/iojs/bin/iojs /home/ai/.node/iojs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/ai/Dev/amplifr/front/node_modules/gulp-zopfli/node_modules/node-zopfli/lib/binding/node-v45-linux-x64/zopfli.node --module_name=zopfli --module_path=/home/ai/Dev/amplifr/front/node_modules/gulp-zopfli/node_modules/node-zopfli/lib/binding/node-v45-linux-x64' (1)\r\n````\r\n\r\n/cc @pierreinglebert "}}