{"action":"created","issue":{"url":"https://api.github.com/repos/leei/node-dbstore/issues/1","labels_url":"https://api.github.com/repos/leei/node-dbstore/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/leei/node-dbstore/issues/1/comments","events_url":"https://api.github.com/repos/leei/node-dbstore/issues/1/events","html_url":"https://github.com/leei/node-dbstore/issues/1","id":93605461,"number":1,"title":"Cannot build","user":{"login":"roncemer","id":5806658,"avatar_url":"https://avatars.githubusercontent.com/u/5806658?v=3","gravatar_id":"","url":"https://api.github.com/users/roncemer","html_url":"https://github.com/roncemer","followers_url":"https://api.github.com/users/roncemer/followers","following_url":"https://api.github.com/users/roncemer/following{/other_user}","gists_url":"https://api.github.com/users/roncemer/gists{/gist_id}","starred_url":"https://api.github.com/users/roncemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roncemer/subscriptions","organizations_url":"https://api.github.com/users/roncemer/orgs","repos_url":"https://api.github.com/users/roncemer/repos","events_url":"https://api.github.com/users/roncemer/events{/privacy}","received_events_url":"https://api.github.com/users/roncemer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-07T19:07:59Z","updated_at":"2015-07-23T15:14:33Z","closed_at":null,"body":"Does this thing really work, or not?\r\n\r\nI'm on Ubuntu 15.04 64-bit.\r\n\r\nI run: npm install dbstore\r\n\r\nI get these errors:\r\n\r\nmake[1]: Entering directory '/var/lib/lxc/obdev/rootfs/home/rcemer/obm/php/node_projects/node_modules/dbstore/build'\r\n  CXX(target) Release/obj.target/addon/src/addon.o\r\n  CXX(target) Release/obj.target/addon/src/dbstore.o\r\n../src/dbstore.cc: In function ‘void dbt_set(DBT*, void*, u_int32_t, u_int32_t)’:\r\n../src/dbstore.cc:67:30: error: ‘memset’ was not declared in this scope\r\n   memset(dbt, 0, sizeof(*dbt));\r\n                              ^\r\n../src/dbstore.cc: In static member function ‘static v8::Handle<v8::Value> DbStore::Open(const v8::Arguments&)’:\r\n../src/dbstore.cc:205:33: error: ‘strdup’ was not declared in this scope\r\n   baton->str_arg = strdup(*fname);\r\n                                 ^\r\n../src/dbstore.cc: In function ‘void PutWork(uv_work_t*)’:\r\n../src/dbstore.cc:266:58: error: ‘strlen’ was not declared in this scope\r\n   dbt_set(&key_dbt, baton->str_arg, strlen(baton->str_arg));\r\n                                                          ^\r\n../src/dbstore.cc:267:8: warning: unused variable ‘data_dbt’ [-Wunused-variable]\r\n   DBT &data_dbt = baton->inbuf;\r\n        ^\r\n../src/dbstore.cc: In static member function ‘static v8::Handle<v8::Value> DbStore::Put(const v8::Arguments&)’:\r\n../src/dbstore.cc:318:31: error: ‘strdup’ was not declared in this scope\r\n   baton->str_arg = strdup(*key);\r\n                               ^\r\n../src/dbstore.cc: In function ‘void GetWork(uv_work_t*)’:\r\n../src/dbstore.cc:339:58: error: ‘strlen’ was not declared in this scope\r\n   dbt_set(&key_dbt, baton->str_arg, strlen(baton->str_arg));\r\n                                                          ^\r\n../src/dbstore.cc: In static member function ‘static v8::Handle<v8::Value> DbStore::Get(const v8::Arguments&)’:\r\n../src/dbstore.cc:396:31: error: ‘strdup’ was not declared in this scope\r\n   baton->str_arg = strdup(*key);\r\n                               ^\r\n../src/dbstore.cc: In function ‘void DelWork(uv_work_t*)’:\r\n../src/dbstore.cc:411:58: error: ‘strlen’ was not declared in this scope\r\n   dbt_set(&key_dbt, baton->str_arg, strlen(baton->str_arg));\r\n                                                          ^\r\n../src/dbstore.cc: In static member function ‘static v8::Handle<v8::Value> DbStore::Del(const v8::Arguments&)’:\r\n../src/dbstore.cc:441:31: error: ‘strdup’ was not declared in this scope\r\n   baton->str_arg = strdup(*key);\r\n"},"comment":{"url":"https://api.github.com/repos/leei/node-dbstore/issues/comments/124136415","html_url":"https://github.com/leei/node-dbstore/issues/1#issuecomment-124136415","issue_url":"https://api.github.com/repos/leei/node-dbstore/issues/1","id":124136415,"user":{"login":"miopa","id":701875,"avatar_url":"https://avatars.githubusercontent.com/u/701875?v=3","gravatar_id":"","url":"https://api.github.com/users/miopa","html_url":"https://github.com/miopa","followers_url":"https://api.github.com/users/miopa/followers","following_url":"https://api.github.com/users/miopa/following{/other_user}","gists_url":"https://api.github.com/users/miopa/gists{/gist_id}","starred_url":"https://api.github.com/users/miopa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miopa/subscriptions","organizations_url":"https://api.github.com/users/miopa/orgs","repos_url":"https://api.github.com/users/miopa/repos","events_url":"https://api.github.com/users/miopa/events{/privacy}","received_events_url":"https://api.github.com/users/miopa/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T15:14:33Z","updated_at":"2015-07-23T15:14:33Z","body":"Not building also on CentOs 6.5 32bit\r\n\r\n```\r\nmake[1]: Entering directory `/var/www/node.js/node_modules/dbstore/build'\r\n  CXX(target) Release/obj.target/addon/src/addon.o\r\nIn file included from ../src/addon.cc:4:\r\n../src/dbstore.h:8: error: expected class-name before ‘{’ token\r\n../src/dbstore.h:29: error: expected unqualified-id before ‘&’ token\r\n../src/dbstore.h:29: error: expected ‘)’ before ‘&’ token\r\n../src/dbstore.h:29: error: expected ‘;’ before ‘&’ token\r\n../src/dbstore.h:31: error: expected unqualified-id before ‘&’ token\r\n../src/dbstore.h:31: error: expected ‘)’ before ‘&’ token\r\n../src/dbstore.h:31: error: expected ‘;’ before ‘&’ token\r\n../src/dbstore.h:32: error: expected unqualified-id before ‘&’ token\r\n../src/dbstore.h:32: error: expected ‘)’ before ‘&’ token\r\n../src/dbstore.h:32: error: expected ‘;’ before ‘&’ token\r\n../src/dbstore.h:34: error: expected unqualified-id before ‘&’ token\r\n../src/dbstore.h:34: error: expected ‘)’ before ‘&’ token\r\n../src/dbstore.h:34: error: expected ‘;’ before ‘&’ token\r\n../src/dbstore.h:35: error: expected unqualified-id before ‘&’ token\r\n../src/dbstore.h:35: error: expected ‘)’ before ‘&’ token\r\n../src/dbstore.h:35: error: expected ‘;’ before ‘&’ token\r\n../src/dbstore.h:36: error: expected unqualified-id before ‘&’ token\r\n../src/dbstore.h:36: error: expected ‘)’ before ‘&’ token\r\n../src/dbstore.h:36: error: expected ‘;’ before ‘&’ token\r\n../src/dbstore.h:38: error: expected unqualified-id before ‘&’ token\r\n../src/dbstore.h:38: error: expected ‘)’ before ‘&’ token\r\n../src/dbstore.h:38: error: expected ‘;’ before ‘&’ token\r\nIn file included from ../src/addon.cc:5:\r\n../src/dbenv.h:6: error: expected class-name before ‘{’ token\r\n../src/dbenv.h:14: error: expected unqualified-id before ‘&’ token\r\n../src/dbenv.h:14: error: expected ‘)’ before ‘&’ token\r\n../src/dbenv.h:14: error: expected ‘;’ before ‘&’ token\r\n../src/dbenv.h:15: error: expected unqualified-id before ‘&’ token\r\n../src/dbenv.h:15: error: expected ‘)’ before ‘&’ token\r\n../src/dbenv.h:15: error: expected ‘;’ before ‘&’ token\r\nmake[1]: *** [Release/obj.target/addon/src/addon.o] Error 1\r\nmake[1]: Leaving directory `/var/www/node.js/node_modules/dbstore/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:269:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:110:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)\r\ngyp ERR! System Linux 2.6.32-431.1.2.0.1.el6.i686\r\ngyp ERR! command \"node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\"\r\ngyp ERR! cwd /var/www/node.js/node_modules/dbstore\r\ngyp ERR! node -v v0.12.7\r\ngyp ERR! node-gyp -v v2.0.1\r\ngyp ERR! not ok\r\nmake: *** [all] Error 1\r\n```\r\n"}}