{"action":"opened","issue":{"url":"https://api.github.com/repos/zeromq/czmq/issues/1507","repository_url":"https://api.github.com/repos/zeromq/czmq","labels_url":"https://api.github.com/repos/zeromq/czmq/issues/1507/labels{/name}","comments_url":"https://api.github.com/repos/zeromq/czmq/issues/1507/comments","events_url":"https://api.github.com/repos/zeromq/czmq/issues/1507/events","html_url":"https://github.com/zeromq/czmq/issues/1507","id":172251935,"number":1507,"title":"node.js binding windows build","user":{"login":"sualex","id":19490632,"avatar_url":"https://avatars.githubusercontent.com/u/19490632?v=3","gravatar_id":"","url":"https://api.github.com/users/sualex","html_url":"https://github.com/sualex","followers_url":"https://api.github.com/users/sualex/followers","following_url":"https://api.github.com/users/sualex/following{/other_user}","gists_url":"https://api.github.com/users/sualex/gists{/gist_id}","starred_url":"https://api.github.com/users/sualex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sualex/subscriptions","organizations_url":"https://api.github.com/users/sualex/orgs","repos_url":"https://api.github.com/users/sualex/repos","events_url":"https://api.github.com/users/sualex/events{/privacy}","received_events_url":"https://api.github.com/users/sualex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-20T04:02:41Z","updated_at":"2016-08-20T04:02:41Z","closed_at":null,"body":"**I do need node.js bindings built on windows platform. I have MS Visual Studio 2015 enterprise update 3 installed on build machine. Doing all the npm installations right and running npm install inside .../bindings/nodejs I get (after it correctly builds libzmq in upper dir) :** \r\n\r\nBuilding the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.\r\n  libczmq.vcxproj -> D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\Release\\\\libczmq.lib\r\n  libzmq.vcxproj -> D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\Release\\\\libzmq.lib\r\n  binding.cc\r\n  win_delay_load_hook.cc\r\nd:\\_work\\vendor\\_zeromq\\czmq\\bindings\\nodejs\\binding.h(606): error C2059: syntax error: '__leave' (compiling source file ..\\binding.cc) [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\nd:\\_work\\vendor\\_zeromq\\czmq\\bindings\\nodejs\\binding.h(606): error C2238: unexpected token(s) preceding ';' (compiling source file ..\\binding.cc) [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\n..\\binding.cc(716): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\n..\\binding.cc(1455): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\n..\\binding.cc(2060): warning C4244: '=': conversion from 'int64_t' to 'off_t', possible loss of data [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\n..\\binding.cc(2087): warning C4244: '=': conversion from 'int64_t' to 'off_t', possible loss of data [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\n..\\binding.cc(2224): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\n..\\binding.cc(4077): error C2059: syntax error: '__leave' [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\n..\\binding.cc(4502): error C2589: '__leave': illegal token on right side of '::' [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\n..\\binding.cc(4502): warning C4091: '': ignored on left of 'void' when no variable is declared [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\n..\\binding.cc(4502): error C2143: syntax error: missing ';' before '::' [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\n..\\binding.cc(4502): error C2059: syntax error: '::' [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\n..\\binding.cc(4502): error C2143: syntax error: missing ';' before '{' [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\n..\\binding.cc(4502): error C2447: '{': missing function header (old-style formal list?) [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\n..\\binding.cc(6084): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\build\\czmq.vcxproj]\r\nprebuild ERR! build error\r\nprebuild ERR! stack Error: `C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe` failed with exit code: 1\r\nprebuild ERR! stack     at ChildProcess.onExit (D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\node_modules\\node-gyp\\lib\\build.js:276:23)\r\nprebuild ERR! stack     at emitTwo (events.js:106:13)\r\nprebuild ERR! stack     at ChildProcess.emit (events.js:191:7)\r\nprebuild ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)\r\nprebuild ERR! not ok\r\nprebuild ERR! build Error: `C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe` failed with exit code: 1\r\nprebuild ERR! build     at ChildProcess.onExit (D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\node_modules\\node-gyp\\lib\\build.js:276:23)\r\nprebuild ERR! build     at emitTwo (events.js:106:13)\r\nprebuild ERR! build     at ChildProcess.emit (events.js:191:7)\r\nprebuild ERR! build     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)\r\n\r\nnpm ERR! Windows_NT 6.3.9600\r\nnpm ERR! argv \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\"\r\nnpm ERR! node v6.4.0\r\nnpm ERR! npm  v3.10.7\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! czmq@0.0.1 install: `prebuild --install`\r\nnpm ERR! Exit status 2\r\nnpm ERR!\r\nnpm ERR! Failed at the czmq@0.0.1 install script 'prebuild --install'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the czmq package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     prebuild --install\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs czmq\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!     npm owner ls czmq\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!     D:\\_WORK\\vendor\\_ZEROMQ\\czmq\\bindings\\nodejs\\npm-debug.log\r\n \r\n\r\n**VS2013 toolset shows the same result. I'm not a very skilled c++ man and have no time to figure out why it doesn't like that '_leave' statement :) . Can anyone help to get around of that? Or nodejs bindings are unbuildable on windows in current state? Did anyone try to do the same? Thanks a lot.**\r\n"}}
{"actor":{"display_login":"sualex"}}