{"action":"closed","issue":{"url":"https://api.github.com/repos/aerospike/aerospike-client-nodejs/issues/131","repository_url":"https://api.github.com/repos/aerospike/aerospike-client-nodejs","labels_url":"https://api.github.com/repos/aerospike/aerospike-client-nodejs/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/aerospike/aerospike-client-nodejs/issues/131/comments","events_url":"https://api.github.com/repos/aerospike/aerospike-client-nodejs/issues/131/events","html_url":"https://github.com/aerospike/aerospike-client-nodejs/issues/131","id":156463001,"number":131,"title":"node-gyp rebuild fails using gcc 4.4 with Node 0.12: ISO C++ forbids in-class initialization of non-const static member","user":{"login":"jhecking","id":1900876,"avatar_url":"https://avatars.githubusercontent.com/u/1900876?v=3","gravatar_id":"","url":"https://api.github.com/users/jhecking","html_url":"https://github.com/jhecking","followers_url":"https://api.github.com/users/jhecking/followers","following_url":"https://api.github.com/users/jhecking/following{/other_user}","gists_url":"https://api.github.com/users/jhecking/gists{/gist_id}","starred_url":"https://api.github.com/users/jhecking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhecking/subscriptions","organizations_url":"https://api.github.com/users/jhecking/orgs","repos_url":"https://api.github.com/users/jhecking/repos","events_url":"https://api.github.com/users/jhecking/events{/privacy}","received_events_url":"https://api.github.com/users/jhecking/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aerospike/aerospike-client-nodejs/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"jhecking","id":1900876,"avatar_url":"https://avatars.githubusercontent.com/u/1900876?v=3","gravatar_id":"","url":"https://api.github.com/users/jhecking","html_url":"https://github.com/jhecking","followers_url":"https://api.github.com/users/jhecking/followers","following_url":"https://api.github.com/users/jhecking/following{/other_user}","gists_url":"https://api.github.com/users/jhecking/gists{/gist_id}","starred_url":"https://api.github.com/users/jhecking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhecking/subscriptions","organizations_url":"https://api.github.com/users/jhecking/orgs","repos_url":"https://api.github.com/users/jhecking/repos","events_url":"https://api.github.com/users/jhecking/events{/privacy}","received_events_url":"https://api.github.com/users/jhecking/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-05-24T09:38:52Z","updated_at":"2016-05-24T09:45:19Z","closed_at":"2016-05-24T09:45:19Z","body":"Node 4.x and later requires at least GCC 4.8 to build native add-ons. But with Node 0.12 the module should still compile using GCC 4.4. However some recent changes introduced an incompatibility that results in a compile time error:\r\n\r\n```\r\n../src/main/client/job_info.cc:38: warning: ISO C++ forbids initialization of member ‘param_err’\r\n../src/main/client/job_info.cc:38: warning: making ‘param_err’ static\r\n../src/main/client/job_info.cc:38: error: ISO C++ forbids in-class initialization of non-const static member ‘param_err’\r\n```\r\n\r\nThis should be fixed.\r\n\r\nFull npm install log:\r\n\r\n```\r\n[vagrant@localhost aerospike]$ npm install aerospike\r\n-\r\n> aerospike@2.0.4 install /home/vagrant/aerospike/node_modules/aerospike\r\n> node-gyp rebuild\r\n\r\ngyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR\r\ngyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR\r\ngyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR\r\nmake: Entering directory `/home/vagrant/aerospike/node_modules/aerospike/build'\r\n  TOUCH binding_gyp_aerospike_client_c_target_run_scripts_aerospike_client_c_sh.intermediate\r\n  ACTION binding_gyp_aerospike_client_c_target_run_scripts_aerospike_client_c_sh binding_gyp_aerospike_client_c_target_run_scripts_aerospike_client_c_sh.intermediate\r\nwhich: no lsb_release in (/home/vagrant/.nvm/versions/node/v0.12.14/lib/node_modules/npm/bin/node-gyp-bin:/home/vagrant/aerospike/node_modules/aerospike/node_modules/.bin:/home/vagrant/aerospike/node_modules/.bin:/home/vagrant/.nvm/versions/node/v0.12.14/bin:/home/vagrant/.nvm/versions/node/v0.12.14/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/vagrant/bin)\r\ninfo: downloading 'http://www.aerospike.com/download/client/c/4.0.4/artifact/el6' to '/home/vagrant/aerospike/node_modules/aerospike/aerospike-client-c/package/aerospike-client-c.tgz'\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100 30.7M  100 30.7M    0     0  2486k      0  0:00:12  0:00:12 --:--:-- 3371k\r\ninfo: extracting 'aerospike-client-c-4.0.4.el6.x86_64/aerospike-client-c-libuv-devel-4.0.4-1.el6.x86_64.rpm' from 'aerospike-client-c.tgz'\r\ninfo: extracting files from 'aerospike-client-c-4.0.4.el6.x86_64/aerospike-client-c-libuv-devel-4.0.4-1.el6.x86_64.rpm'\r\n16040 blocks\r\n\r\nCHECK\r\n   [✓] /home/vagrant/aerospike/node_modules/aerospike/aerospike-client-c/package/usr/lib/libaerospike.a\r\n   [✓] /home/vagrant/aerospike/node_modules/aerospike/aerospike-client-c/package/usr/include/aerospike/aerospike.h\r\n   [✓] /home/vagrant/aerospike/node_modules/aerospike/aerospike-client-c/package/opt/aerospike/client/sys/udf/lua/aerospike.lua\r\n\r\n  TOUCH Release/obj.target/aerospike-client-c.stamp\r\n  CXX(target) Release/obj.target/aerospike/src/main/aerospike.o\r\n  CXX(target) Release/obj.target/aerospike/src/main/client.o\r\n  CXX(target) Release/obj.target/aerospike/src/main/query.o\r\n  CXX(target) Release/obj.target/aerospike/src/main/scan.o\r\n  CXX(target) Release/obj.target/aerospike/src/main/async.o\r\n  CXX(target) Release/obj.target/aerospike/src/main/client/apply_async.o\r\n  CXX(target) Release/obj.target/aerospike/src/main/client/batch_exists.o\r\n  CXX(target) Release/obj.target/aerospike/src/main/client/batch_get.o\r\n  CXX(target) Release/obj.target/aerospike/src/main/client/batch_select.o\r\n  CXX(target) Release/obj.target/aerospike/src/main/client/batch_read_async.o\r\n  CXX(target) Release/obj.target/aerospike/src/main/client/cluster.o\r\n  CXX(target) Release/obj.target/aerospike/src/main/client/exists_async.o\r\n  CXX(target) Release/obj.target/aerospike/src/main/client/get_async.o\r\n  CXX(target) Release/obj.target/aerospike/src/main/client/info.o\r\n  CXX(target) Release/obj.target/aerospike/src/main/client/job_info.o\r\n../src/main/client/job_info.cc:38: warning: ISO C++ forbids initialization of member ‘param_err’\r\n../src/main/client/job_info.cc:38: warning: making ‘param_err’ static\r\n../src/main/client/job_info.cc:38: error: ISO C++ forbids in-class initialization of non-const static member ‘param_err’\r\nmake: *** [Release/obj.target/aerospike/src/main/client/job_info.o] Error 1\r\nrm binding_gyp_aerospike_client_c_target_run_scripts_aerospike_client_c_sh.intermediate\r\nmake: Leaving directory `/home/vagrant/aerospike/node_modules/aerospike/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/vagrant/.nvm/versions/node/v0.12.14/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:110:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1078:12)\r\ngyp ERR! System Linux 2.6.32-573.el6.x86_64\r\ngyp ERR! command \"node\" \"/home/vagrant/.nvm/versions/node/v0.12.14/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /home/vagrant/aerospike/node_modules/aerospike\r\ngyp ERR! node -v v0.12.14\r\ngyp ERR! node-gyp -v v3.3.1\r\ngyp ERR! not ok\r\nnpm ERR! Linux 2.6.32-573.el6.x86_64\r\nnpm ERR! argv \"/home/vagrant/.nvm/versions/node/v0.12.14/bin/node\" \"/home/vagrant/.nvm/versions/node/v0.12.14/bin/npm\" \"install\" \"aerospike\"\r\nnpm ERR! node v0.12.14\r\nnpm ERR! npm  v2.15.1\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! aerospike@2.0.4 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the aerospike@2.0.4 install script 'node-gyp rebuild'.\r\nnpm ERR! This is most likely a problem with the aerospike 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 information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs aerospike\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!\r\nnpm ERR!     npm owner ls aerospike\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/vagrant/aerospike/npm-debug.log\r\n```"}}
{"actor":{"display_login":"jhecking"}}