{"action":"closed","issue":{"url":"https://api.github.com/repos/BYVoid/OpenCC/issues/101","repository_url":"https://api.github.com/repos/BYVoid/OpenCC","labels_url":"https://api.github.com/repos/BYVoid/OpenCC/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/BYVoid/OpenCC/issues/101/comments","events_url":"https://api.github.com/repos/BYVoid/OpenCC/issues/101/events","html_url":"https://github.com/BYVoid/OpenCC/issues/101","id":63889673,"number":101,"title":"Build failed on node 0.11.14 and below version","user":{"login":"godfreycgs","id":11553205,"avatar_url":"https://avatars.githubusercontent.com/u/11553205?v=3","gravatar_id":"","url":"https://api.github.com/users/godfreycgs","html_url":"https://github.com/godfreycgs","followers_url":"https://api.github.com/users/godfreycgs/followers","following_url":"https://api.github.com/users/godfreycgs/following{/other_user}","gists_url":"https://api.github.com/users/godfreycgs/gists{/gist_id}","starred_url":"https://api.github.com/users/godfreycgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godfreycgs/subscriptions","organizations_url":"https://api.github.com/users/godfreycgs/orgs","repos_url":"https://api.github.com/users/godfreycgs/repos","events_url":"https://api.github.com/users/godfreycgs/events{/privacy}","received_events_url":"https://api.github.com/users/godfreycgs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-24T02:50:33Z","updated_at":"2016-03-10T13:54:56Z","closed_at":"2016-03-10T13:54:56Z","body":"When I install the opencc using npm, it would produce the below error while using node 0.11.14 and 0.12.0. It has no error while using node 0.10.35, so I suspect opencc does not support node 0.11.14 and below.\r\n\r\nMy enviroment:\r\n```\r\n✗ uname -a\r\nLinux magichole 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux\r\n\r\n✗ gcc --version\r\ngcc (Debian 4.7.2-5) 4.7.2\r\n```\r\n\r\nThe install error message:\r\n```\r\n> opencc@1.0.2 install /home/godfrey/test/node_modules/opencc\r\n> node-gyp rebuild\r\n\r\nchild_process: customFds option is deprecated, use stdio instead.\r\nmake: Entering directory `/home/godfrey/test/node_modules/opencc/build'\r\n  CXX(target) Release/obj.target/binding/node/binding.o\r\n../node/binding.cc:16:47: error: expected class-name before ‘{’ token\r\n../node/binding.cc:43:34: error: ‘Arguments’ does not name a type\r\n../node/binding.cc:43:45: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n../node/binding.cc:64:38: error: ‘Arguments’ does not name a type\r\n../node/binding.cc:64:49: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n../node/binding.cc:83:25: error: ‘uv_work_t’ has not been declared\r\n../node/binding.cc:93:28: error: ‘uv_work_t’ has not been declared\r\n../node/binding.cc:112:42: error: ‘Arguments’ does not name a type\r\n../node/binding.cc:112:53: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> OpenccBinding::New(const int&)’:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected\r\n../node/binding.cc:44:17: error: within this context\r\n../node/binding.cc:48:16: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’\r\n../node/binding.cc:48:39: error: invalid types ‘const int[int]’ for array subscript\r\n../node/binding.cc:49:48: error: invalid types ‘const int[int]’ for array subscript\r\n../node/binding.cc:56:11: error: ‘New’ is not a member of ‘v8::String’\r\n../node/binding.cc:56:33: error: ‘ThrowException’ was not declared in this scope\r\n../node/binding.cc:57:20: error: ‘class v8::HandleScope’ has no member named ‘Close’\r\n../node/binding.cc:57:36: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here\r\n../node/binding.cc:60:15: error: ‘class OpenccBinding’ has no member named ‘Wrap’\r\n../node/binding.cc:60:25: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n../node/binding.cc:61:17: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> OpenccBinding::Convert(const int&)’:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected\r\n../node/binding.cc:65:17: error: within this context\r\n../node/binding.cc:66:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’\r\n../node/binding.cc:66:37: error: invalid types ‘const int[int]’ for array subscript\r\n../node/binding.cc:66:61: error: invalid types ‘const int[int]’ for array subscript\r\n../node/binding.cc:67:47: error: ‘New’ is not a member of ‘v8::String’\r\n../node/binding.cc:67:78: error: ‘ThrowException’ was not declared in this scope\r\n../node/binding.cc:68:20: error: ‘class v8::HandleScope’ has no member named ‘Close’\r\n../node/binding.cc:68:36: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here\r\n../node/binding.cc:72:27: error: ‘ObjectWrap’ has not been declared\r\n../node/binding.cc:72:59: error: expected primary-expression before ‘>’ token\r\n../node/binding.cc:72:66: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n../node/binding.cc:73:43: error: invalid types ‘const int[int]’ for array subscript\r\n../node/binding.cc:74:81: error: invalid types ‘const int[int]’ for array subscript\r\n../node/binding.cc:76:5: error: ‘uv_work_t’ was not declared in this scope\r\n../node/binding.cc:76:16: error: ‘req’ was not declared in this scope\r\n../node/binding.cc:76:26: error: expected type-specifier before ‘uv_work_t’\r\n../node/binding.cc:76:26: error: expected ‘;’ before ‘uv_work_t’\r\n../node/binding.cc:78:35: error: ‘uv_default_loop’ was not declared in this scope\r\n../node/binding.cc:78:55: error: ‘uv_after_work_cb’ was not declared in this scope\r\n../node/binding.cc:78:84: error: ‘uv_queue_work’ was not declared in this scope\r\n../node/binding.cc:80:22: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here\r\n../node/binding.cc: In static member function ‘static void OpenccBinding::DoConvert(int*)’:\r\n../node/binding.cc:84:67: error: request for member ‘data’ in ‘* req’, which is of non-class type ‘int’\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static void OpenccBinding::AfterConvert(int*)’:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected\r\n../node/binding.cc:94:17: error: within this context\r\n../node/binding.cc:95:67: error: request for member ‘data’ in ‘* req’, which is of non-class type ‘int’\r\n../node/binding.cc:96:52: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here\r\n../node/binding.cc:97:31: error: ‘New’ is not a member of ‘v8::String’\r\n../node/binding.cc:99:13: error: ‘New’ is not a member of ‘v8::String’\r\n../node/binding.cc:104:34: error: no matching function for call to ‘v8::Local<v8::Value>::New(v8::Local<v8::String>&)’\r\n../node/binding.cc:104:34: note: candidates are:\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:368:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, v8::Handle<T>) [with T = v8::Value]\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:368:29: note:   candidate expects 2 arguments, 1 provided\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:369:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, const v8::PersistentBase<T>&) [with T = v8::Value]\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:369:29: note:   candidate expects 2 arguments, 1 provided\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:391:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, T*) [with T = v8::Value]\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:391:29: note:   candidate expects 2 arguments, 1 provided\r\n../node/binding.cc:106:24: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Function>’\r\n../node/binding.cc:106:31: error: ‘GetCurrent’ is not a member of ‘v8::Context’\r\n../node/binding.cc:107:25: error: ‘class v8::Persistent<v8::Function>’ has no member named ‘Dispose’\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> OpenccBinding::ConvertSync(const int&)’:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected\r\n../node/binding.cc:113:17: error: within this context\r\n../node/binding.cc:114:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’\r\n../node/binding.cc:114:37: error: invalid types ‘const int[int]’ for array subscript\r\n../node/binding.cc:115:47: error: ‘New’ is not a member of ‘v8::String’\r\n../node/binding.cc:115:78: error: ‘ThrowException’ was not declared in this scope\r\n../node/binding.cc:116:20: error: ‘class v8::HandleScope’ has no member named ‘Close’\r\n../node/binding.cc:116:36: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here\r\n../node/binding.cc:119:31: error: ‘ObjectWrap’ has not been declared\r\n../node/binding.cc:119:63: error: expected primary-expression before ‘>’ token\r\n../node/binding.cc:119:70: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n../node/binding.cc:121:39: error: invalid types ‘const int[int]’ for array subscript\r\n../node/binding.cc:127:11: error: ‘New’ is not a member of ‘v8::String’\r\n../node/binding.cc:127:33: error: ‘ThrowException’ was not declared in this scope\r\n../node/binding.cc:128:20: error: ‘class v8::HandleScope’ has no member named ‘Close’\r\n../node/binding.cc:128:36: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here\r\n../node/binding.cc:131:31: error: ‘New’ is not a member of ‘v8::String’\r\n../node/binding.cc:132:18: error: ‘class v8::HandleScope’ has no member named ‘Close’\r\n../node/binding.cc: In static member function ‘static void OpenccBinding::init(v8::Handle<v8::Object>)’:\r\n../node/binding.cc:137:75: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’\r\n../node/binding.cc:137:75: note: candidate is:\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&)’ to ‘v8::Isolate*’\r\n../node/binding.cc:138:23: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n../node/binding.cc:141:35: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n../node/binding.cc:142:38: error: no matching function for call to ‘v8::FunctionTemplate::New(<unresolved overloaded function type>)’\r\n../node/binding.cc:142:38: note: candidate is:\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note:   no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘v8::Isolate*’\r\n../node/binding.cc:143:35: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n../node/binding.cc:144:42: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’\r\n../node/binding.cc:144:42: note: candidate is:\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&)’ to ‘v8::Isolate*’\r\n../node/binding.cc:147:27: error: no matching function for call to ‘v8::Persistent<v8::Function>::New(v8::Local<v8::Function>)’\r\n../node/binding.cc:147:27: note: candidate is:\r\nIn file included from /home/godfrey/.node-gyp/0.12.0/src/node.h:61:0,\r\n                 from ../node/binding.cc:2:\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:5809:4: note: static T* v8::PersistentBase<T>::New(v8::Isolate*, T*) [with T = v8::Function]\r\n/home/godfrey/.node-gyp/0.12.0/deps/v8/include/v8.h:5809:4: note:   candidate expects 2 arguments, 1 provided\r\n../node/binding.cc:148:17: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\nmake: *** [Release/obj.target/binding/node/binding.o] Error 1\r\nmake: Leaving directory `/home/godfrey/test/node_modules/opencc/build'\r\n```"}}