{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/502","labels_url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/502/comments","events_url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/502/events","html_url":"https://github.com/mapbox/node-sqlite3/issues/502","id":105099668,"number":502,"title":"Error building sqlite3 on ubuntu 14.04 with io.js 3.3","user":{"login":"sergey-aleshin","id":521110,"avatar_url":"https://avatars.githubusercontent.com/u/521110?v=3","gravatar_id":"","url":"https://api.github.com/users/sergey-aleshin","html_url":"https://github.com/sergey-aleshin","followers_url":"https://api.github.com/users/sergey-aleshin/followers","following_url":"https://api.github.com/users/sergey-aleshin/following{/other_user}","gists_url":"https://api.github.com/users/sergey-aleshin/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey-aleshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey-aleshin/subscriptions","organizations_url":"https://api.github.com/users/sergey-aleshin/orgs","repos_url":"https://api.github.com/users/sergey-aleshin/repos","events_url":"https://api.github.com/users/sergey-aleshin/events{/privacy}","received_events_url":"https://api.github.com/users/sergey-aleshin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-06T15:22:04Z","updated_at":"2015-09-09T22:57:24Z","closed_at":"2015-09-09T22:57:24Z","body":"Hi!\r\nI have an issue while building module for io.js 3.3 on ubuntu 14.04:\r\n\r\n> sqlite3@3.0.10 install /home/ubuntu/node_modules/sqlite3\r\n> node-pre-gyp install --fallback-to-build\r\n\r\nmake: Entering directory `/home/ubuntu/node_modules/sqlite3/build'\r\n  ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3081101/sqlite3.c\r\n  TOUCH Release/obj.target/deps/action_before_build.stamp\r\n  CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3081101/sqlite3.o\r\n  AR(target) Release/obj.target/deps/sqlite3.a\r\n  COPY Release/sqlite3.a\r\n  CXX(target) Release/obj.target/node_sqlite3/src/database.o\r\nIn file included from ../src/database.h:11:0,\r\n                 from ../src/database.cc:5:\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: error: ‘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/database.h:11,\r\n                 from ../src/database.cc:5:\r\n/home/ubuntu/.node-gyp/3.3.0/include/node/node_buffer.h:31:40: note: 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/ubuntu/.node-gyp/3.3.0/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/home/ubuntu/.node-gyp/3.3.0/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/home/ubuntu/.node-gyp/3.3.0/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/database.h:11:0,\r\n                 from ../src/database.cc:5:\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_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: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\n../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginOpen(node_sqlite3::Database::Baton*)’:\r\n../src/database.cc:145:9: warning: unused variable ‘status’ [-Wunused-variable]\r\n     int status = uv_queue_work(uv_default_loop(),\r\n         ^\r\n../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginClose(node_sqlite3::Database::Baton*)’:\r\n../src/database.cc:230:9: warning: unused variable ‘status’ [-Wunused-variable]\r\n     int status = uv_queue_work(uv_default_loop(),\r\n         ^\r\n../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginExec(node_sqlite3::Database::Baton*)’:\r\n../src/database.cc:509:9: warning: unused variable ‘status’ [-Wunused-variable]\r\n     int status = uv_queue_work(uv_default_loop(),\r\n         ^\r\n../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginLoadExtension(node_sqlite3::Database::Baton*)’:\r\n../src/database.cc:610:9: warning: unused variable ‘status’ [-Wunused-variable]\r\n     int status = uv_queue_work(uv_default_loop(),\r\n         ^\r\nmake: *** [Release/obj.target/node_sqlite3/src/database.o] Error 1\r\nmake: Leaving directory `/home/ubuntu/node_modules/sqlite3/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/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 3.13.0-48-generic\r\ngyp ERR! command \"/usr/bin/iojs\" \"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/home/ubuntu/node_modules/sqlite3/lib/binding/node-v45-linux-x64/node_sqlite3.node\" \"--module_name=node_sqlite3\" \"--module_path=/home/ubuntu/node_modules/sqlite3/lib/binding/node-v45-linux-x64\"\r\ngyp ERR! cwd /home/ubuntu/node_modules/sqlite3\r\ngyp ERR! node -v v3.3.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 '/usr/bin/iojs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/ubuntu/node_modules/sqlite3/lib/binding/node-v45-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/ubuntu/node_modules/sqlite3/lib/binding/node-v45-linux-x64' (1)\r\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/ubuntu/node_modules/sqlite3/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 3.13.0-48-generic\r\nnode-pre-gyp ERR! command \"/usr/bin/iojs\" \"/home/ubuntu/node_modules/sqlite3/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\r\nnode-pre-gyp ERR! cwd /home/ubuntu/node_modules/sqlite3\r\nnode-pre-gyp ERR! node -v v3.3.0\r\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.9\r\nnode-pre-gyp ERR! not ok \r\nFailed to execute '/usr/bin/iojs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/ubuntu/node_modules/sqlite3/lib/binding/node-v45-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/ubuntu/node_modules/sqlite3/lib/binding/node-v45-linux-x64' (1)\r\nnpm ERR! Linux 3.13.0-48-generic\r\nnpm ERR! argv \"/usr/bin/iojs\" \"/usr/bin/npm\" \"install\" \"sqlite3\"\r\nnpm ERR! node v3.3.0\r\nnpm ERR! npm  v2.13.3\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! sqlite3@3.0.10 install: `node-pre-gyp install --fallback-to-build`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the sqlite3@3.0.10 install script 'node-pre-gyp install --fallback-to-build'.\r\nnpm ERR! This is most likely a problem with the sqlite3 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 sqlite3\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/ubuntu/npm-debug.log\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/comments/139067125","html_url":"https://github.com/mapbox/node-sqlite3/issues/502#issuecomment-139067125","issue_url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/502","id":139067125,"user":{"login":"springmeyer","id":20300,"avatar_url":"https://avatars.githubusercontent.com/u/20300?v=3","gravatar_id":"","url":"https://api.github.com/users/springmeyer","html_url":"https://github.com/springmeyer","followers_url":"https://api.github.com/users/springmeyer/followers","following_url":"https://api.github.com/users/springmeyer/following{/other_user}","gists_url":"https://api.github.com/users/springmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/springmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springmeyer/subscriptions","organizations_url":"https://api.github.com/users/springmeyer/orgs","repos_url":"https://api.github.com/users/springmeyer/repos","events_url":"https://api.github.com/users/springmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/springmeyer/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T22:57:24Z","updated_at":"2015-09-09T22:57:24Z","body":"Please upgrade to sqlite3@3.1.0 which now has io.js 3.x and nodejs 4.x support."}}