{"action":"opened","issue":{"url":"https://api.github.com/repos/jiangmiao/node-curl/issues/49","labels_url":"https://api.github.com/repos/jiangmiao/node-curl/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/jiangmiao/node-curl/issues/49/comments","events_url":"https://api.github.com/repos/jiangmiao/node-curl/issues/49/events","html_url":"https://github.com/jiangmiao/node-curl/issues/49","id":116921970,"number":49,"title":"node-curl istall error","user":{"login":"dibyendu12340","id":15846247,"avatar_url":"https://avatars.githubusercontent.com/u/15846247?v=3","gravatar_id":"","url":"https://api.github.com/users/dibyendu12340","html_url":"https://github.com/dibyendu12340","followers_url":"https://api.github.com/users/dibyendu12340/followers","following_url":"https://api.github.com/users/dibyendu12340/following{/other_user}","gists_url":"https://api.github.com/users/dibyendu12340/gists{/gist_id}","starred_url":"https://api.github.com/users/dibyendu12340/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dibyendu12340/subscriptions","organizations_url":"https://api.github.com/users/dibyendu12340/orgs","repos_url":"https://api.github.com/users/dibyendu12340/repos","events_url":"https://api.github.com/users/dibyendu12340/events{/privacy}","received_events_url":"https://api.github.com/users/dibyendu12340/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-14T12:25:38Z","updated_at":"2015-11-14T12:25:38Z","closed_at":null,"body":"Got following error when trying to run sudo npm install node-curl --save in AWS ubuntu 14.04\r\n\r\nsudo npm install node-curl --save\r\nnpm WARN package.json lattoApp@0.0.1 No repository field.\r\nnpm WARN package.json lattoApp@0.0.1 No README data\r\nnpm WARN package.json lattoApp@0.0.1 license should be a valid SPDX license expression\r\n/\r\n> node-curl@0.3.3 install /home/ubuntu/node12/node_modules/node-curl\r\n> sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)\r\n\r\nextract constants from /usr/include/curl/curl.h\r\ngenerate src/integer_options.h\r\ngenerate src/string_options.h\r\ngenerate src/integer_infos.h\r\ngenerate src/string_infos.h\r\ngenerate src/double_infos.h\r\nmake: Entering directory `/home/ubuntu/node12/node_modules/node-curl/build'\r\n  CXX(target) Release/obj.target/node-curl/src/node-curl.o\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:178:43: error: ‘Arguments’ in namespace ‘v8’ does not name a type\r\n  static v8::Handle<v8::Value> close(const v8::Arguments & args)\r\n                                           ^\r\n../src/node-curl.h:178:59: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n  static v8::Handle<v8::Value> close(const v8::Arguments & args)\r\n                                                           ^\r\n../src/node-curl.h:265:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type\r\n  static v8::Handle<v8::Value> getinfo(const v8::Arguments &args)\r\n                                             ^\r\n../src/node-curl.h:265:60: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n  static v8::Handle<v8::Value> getinfo(const v8::Arguments &args)\r\n                                                            ^\r\n../src/node-curl.h:278:49: error: ‘Arguments’ in namespace ‘v8’ does not name a type\r\n  static v8::Handle<v8::Value> getinfo_int(const v8::Arguments & args)\r\n                                                 ^\r\n../src/node-curl.h:278:65: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n  static v8::Handle<v8::Value> getinfo_int(const v8::Arguments & args)\r\n                                                                 ^\r\n../src/node-curl.h:283:49: error: ‘Arguments’ in namespace ‘v8’ does not name a type\r\n  static v8::Handle<v8::Value> getinfo_str(const v8::Arguments & args)\r\n                                                 ^\r\n../src/node-curl.h:283:65: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n  static v8::Handle<v8::Value> getinfo_str(const v8::Arguments & args)\r\n                                                                 ^\r\n../src/node-curl.h:288:52: error: ‘Arguments’ in namespace ‘v8’ does not name a type\r\n  static v8::Handle<v8::Value> getinfo_double(const v8::Arguments & args)\r\n                                                    ^\r\n../src/node-curl.h:288:68: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n  static v8::Handle<v8::Value> getinfo_double(const v8::Arguments & args)\r\n                                                                    ^\r\n../src/node-curl.h:293:51: error: ‘Arguments’ in namespace ‘v8’ does not name a type\r\n  static v8::Handle<v8::Value> getinfo_slist(const v8::Arguments & args)\r\n                                                   ^\r\n../src/node-curl.h:293:67: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n  static v8::Handle<v8::Value> getinfo_slist(const v8::Arguments & args)\r\n                                                                   ^\r\n../src/node-curl.h:330:48: error: ‘Arguments’ in namespace ‘v8’ does not name a type\r\n  static v8::Handle<v8::Value> setopt_int(const v8::Arguments & args)\r\n                                                ^\r\n../src/node-curl.h:330:64: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n  static v8::Handle<v8::Value> setopt_int(const v8::Arguments & args)\r\n                                                                ^\r\n../src/node-curl.h:335:48: error: ‘Arguments’ in namespace ‘v8’ does not name a type\r\n  static v8::Handle<v8::Value> setopt_str(const v8::Arguments & args)\r\n                                                ^\r\n../src/node-curl.h:335:64: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n  static v8::Handle<v8::Value> setopt_str(const v8::Arguments & args)\r\n                                                                ^\r\n../src/node-curl.h:347:50: error: ‘Arguments’ in namespace ‘v8’ does not name a type\r\n  static v8::Handle<v8::Value> setopt_slist(const v8::Arguments & args)\r\n                                                  ^\r\n../src/node-curl.h:347:66: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n  static v8::Handle<v8::Value> setopt_slist(const v8::Arguments & args)\r\n                                                                  ^\r\n../src/node-curl.h:355:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type\r\n  static v8::Handle<v8::Value> setopt_httppost(const v8::Arguments & args)\r\n                                                     ^\r\n../src/node-curl.h:355:69: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n  static v8::Handle<v8::Value> setopt_httppost(const v8::Arguments & args)\r\n                                                                     ^\r\n../src/node-curl.h:426:41: error: ‘Arguments’ in namespace ‘v8’ does not name a type\r\n  static v8::Handle<v8::Value> New(const v8::Arguments & args)\r\n                                         ^\r\n../src/node-curl.h:426:57: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n  static v8::Handle<v8::Value> New(const v8::Arguments & args)\r\n                                                         ^\r\n../src/node-curl.h:433:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type\r\n  static v8::Handle<v8::Value> process(const v8::Arguments & args)\r\n                                             ^\r\n../src/node-curl.h:433:61: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n  static v8::Handle<v8::Value> process(const v8::Arguments & args)\r\n                                                             ^\r\n../src/node-curl.h:476:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type\r\n  static v8::Handle<v8::Value> perform(const v8::Arguments & args)\r\n                                             ^\r\n../src/node-curl.h:476:61: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n  static v8::Handle<v8::Value> perform(const v8::Arguments & args)\r\n                                                             ^\r\n../src/node-curl.h:496:47: error: ‘Arguments’ in namespace ‘v8’ does not name a type\r\n  static v8::Handle<v8::Value> get_count(const v8::Arguments & args )\r\n                                               ^\r\n../src/node-curl.h:496:63: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]\r\n  static v8::Handle<v8::Value> get_count(const v8::Arguments & args )\r\n                                                               ^\r\n../src/node-curl.h: In constructor ‘NodeCurl::NodeCurl(v8::Handle<v8::Object>)’:\r\n../src/node-curl.h:124:3: error: ‘AdjustAmountOfExternalAllocatedMemory’ is not a member of ‘v8::V8’\r\n   v8::V8::AdjustAmountOfExternalAllocatedMemory(2*4096);\r\n   ^\r\n../src/node-curl.h:125:11: error: ‘class v8::Object’ has no member named ‘SetPointerInInternalField’\r\n   object->SetPointerInInternalField(0, this);\r\n           ^\r\n../src/node-curl.h:126:50: error: no matching function for call to ‘v8::Persistent<v8::Object>::New(v8::Handle<v8::Object>&)’\r\n   handle = v8::Persistent<v8::Object>::New(object);\r\n                                                  ^\r\n../src/node-curl.h:126:50: note: candidate is:\r\nIn file included from ../src/node-curl.h:4:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:7181:4: note: static T* v8::PersistentBase<T>::New(v8::Isolate*, T*) [with T = v8::Object]\r\n T* PersistentBase<T>::New(Isolate* isolate, T* that) {\r\n    ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:7181:4: note:   candidate expects 2 arguments, 1 provided\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:127:10: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘MakeWeak’\r\n   handle.MakeWeak(this, destructor);\r\n          ^\r\n../src/node-curl.h: In destructor ‘NodeCurl::~NodeCurl()’:\r\n../src/node-curl.h:145:3: error: ‘AdjustAmountOfExternalAllocatedMemory’ is not a member of ‘v8::V8’\r\n   v8::V8::AdjustAmountOfExternalAllocatedMemory(-2*4096);\r\n   ^\r\n../src/node-curl.h: In static member function ‘static void NodeCurl::destructor(v8::Persistent<v8::Value>, void*)’:\r\n../src/node-curl.h:166:40: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Value>’\r\n   v8::Handle<v8::Object> object = value->ToObject();\r\n                                        ^\r\n../src/node-curl.h:167:40: error: ‘class v8::Object’ has no member named ‘GetPointerFromInternalField’\r\n   NodeCurl * curl = (NodeCurl*)object->GetPointerFromInternalField(0);\r\n                                        ^\r\n../src/node-curl.h: In member function ‘void NodeCurl::close()’:\r\n../src/node-curl.h:173:9: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Object>’\r\n   handle->SetPointerInInternalField(0, NULL);\r\n         ^\r\n../src/node-curl.h:174:10: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Dispose’\r\n   handle.Dispose();\r\n          ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::close(const int&)’:\r\n../src/node-curl.h:180:38: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n   NodeCurl * node_curl = unwrap(args.This());\r\n                                      ^\r\n../src/node-curl.h:183:15: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n   return args.This();\r\n               ^\r\n../src/node-curl.h: In static member function ‘static NodeCurl* NodeCurl::unwrap(v8::Handle<v8::Object>)’:\r\n../src/node-curl.h:189:28: error: ‘class v8::Object’ has no member named ‘GetPointerFromInternalField’\r\n   return (NodeCurl*)value->GetPointerFromInternalField(0);\r\n                            ^\r\n../src/node-curl.h: In member function ‘size_t NodeCurl::on_write(char*, size_t)’:\r\n../src/node-curl.h:209:84: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n   static v8::Persistent<v8::String> SYM_ON_WRITE = v8::Persistent<v8::String>::New(v8::String::NewSymbol(\"on_write\"));\r\n                                                                                    ^\r\n../src/node-curl.h:210:36: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Object>’\r\n   v8::Handle<v8::Value> cb = handle->Get(SYM_ON_WRITE);\r\n                                    ^\r\n../src/node-curl.h:213:17: error: expected primary-expression before ‘*’ token\r\n    node::Buffer * buffer = node::Buffer::New(data, n);\r\n                 ^\r\n../src/node-curl.h:213:19: error: ‘buffer’ was not declared in this scope\r\n    node::Buffer * buffer = node::Buffer::New(data, n);\r\n                   ^\r\n../src/node-curl.h:213:53: error: no matching function for call to ‘New(char*&, size_t&)’\r\n    node::Buffer * buffer = node::Buffer::New(data, n);\r\n                                                     ^\r\n../src/node-curl.h:213:53: note: candidates are:\r\nIn file included from ../src/node-curl.h:6:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:28:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, size_t)\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);\r\n                                        ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:28:40: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding)\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                        ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:31:40: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:36:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                        ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:36:40: note:   candidate expects 5 arguments, 2 provided\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                        ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note:   candidate expects 3 arguments, 2 provided\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:215:77: error: no matching function for call to ‘v8::Object::CallAsFunction(v8::Persistent<v8::Object>&, int, v8::Handle<v8::Value> [1])’\r\n    v8::Handle<v8::Value> rt = cb->ToObject()->CallAsFunction(handle, 1, argv);\r\n                                                                             ^\r\n../src/node-curl.h:215:77: note: candidates are:\r\nIn file included from /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:23:0,\r\n                 from ../src/node-curl.h:4,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: v8::Local<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Value>, int, v8::Local<v8::Value>*)\r\n                     Local<Value> CallAsFunction(Local<Value> recv, int argc,\r\n                                  ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’\r\n #define V8_DEPRECATE_SOON(message, declarator) declarator\r\n                                                ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note:   no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘v8::Local<v8::Value>’\r\n                     Local<Value> CallAsFunction(Local<Value> recv, int argc,\r\n                                  ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’\r\n #define V8_DEPRECATE_SOON(message, declarator) declarator\r\n                                                ^\r\nIn file included from ../src/node-curl.h:4:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: v8::MaybeLocal<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)\r\n   V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context,\r\n                                           ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note:   candidate expects 4 arguments, 3 provided\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h: In member function ‘size_t NodeCurl::on_header(char*, size_t)’:\r\n../src/node-curl.h:226:85: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n   static v8::Persistent<v8::String> SYM_ON_HEADER = v8::Persistent<v8::String>::New(v8::String::NewSymbol(\"on_header\"));\r\n                                                                                     ^\r\n../src/node-curl.h:227:36: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Object>’\r\n   v8::Handle<v8::Value> cb = handle->Get(SYM_ON_HEADER);\r\n                                    ^\r\n../src/node-curl.h:230:17: error: expected primary-expression before ‘*’ token\r\n    node::Buffer * buffer = node::Buffer::New(data, n);\r\n                 ^\r\n../src/node-curl.h:230:19: error: ‘buffer’ was not declared in this scope\r\n    node::Buffer * buffer = node::Buffer::New(data, n);\r\n                   ^\r\n../src/node-curl.h:230:53: error: no matching function for call to ‘New(char*&, size_t&)’\r\n    node::Buffer * buffer = node::Buffer::New(data, n);\r\n                                                     ^\r\n../src/node-curl.h:230:53: note: candidates are:\r\nIn file included from ../src/node-curl.h:6:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:28:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, size_t)\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);\r\n                                        ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:28:40: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding)\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                        ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:31:40: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:36:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                        ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:36:40: note:   candidate expects 5 arguments, 2 provided\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                        ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note:   candidate expects 3 arguments, 2 provided\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:232:77: error: no matching function for call to ‘v8::Object::CallAsFunction(v8::Persistent<v8::Object>&, int, v8::Handle<v8::Value> [1])’\r\n    v8::Handle<v8::Value> rt = cb->ToObject()->CallAsFunction(handle, 1, argv);\r\n                                                                             ^\r\n../src/node-curl.h:232:77: note: candidates are:\r\nIn file included from /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:23:0,\r\n                 from ../src/node-curl.h:4,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: v8::Local<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Value>, int, v8::Local<v8::Value>*)\r\n                     Local<Value> CallAsFunction(Local<Value> recv, int argc,\r\n                                  ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’\r\n #define V8_DEPRECATE_SOON(message, declarator) declarator\r\n                                                ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note:   no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘v8::Local<v8::Value>’\r\n                     Local<Value> CallAsFunction(Local<Value> recv, int argc,\r\n                                  ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’\r\n #define V8_DEPRECATE_SOON(message, declarator) declarator\r\n                                                ^\r\nIn file included from ../src/node-curl.h:4:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: v8::MaybeLocal<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)\r\n   V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context,\r\n                                           ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note:   candidate expects 4 arguments, 3 provided\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h: In member function ‘void NodeCurl::on_end(CURLMsg*)’:\r\n../src/node-curl.h:243:82: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n   static v8::Persistent<v8::String> SYM_ON_END = v8::Persistent<v8::String>::New(v8::String::NewSymbol(\"on_end\"));\r\n                                                                                  ^\r\n../src/node-curl.h:244:36: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Object>’\r\n   v8::Handle<v8::Value> cb = handle->Get(SYM_ON_END);\r\n                                    ^\r\n../src/node-curl.h:248:50: error: no matching function for call to ‘v8::Object::CallAsFunction(v8::Persistent<v8::Object>&, int, v8::Handle<v8::Value> [0])’\r\n    cb->ToObject()->CallAsFunction(handle, 0, argv);\r\n                                                  ^\r\n../src/node-curl.h:248:50: note: candidates are:\r\nIn file included from /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:23:0,\r\n                 from ../src/node-curl.h:4,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: v8::Local<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Value>, int, v8::Local<v8::Value>*)\r\n                     Local<Value> CallAsFunction(Local<Value> recv, int argc,\r\n                                  ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’\r\n #define V8_DEPRECATE_SOON(message, declarator) declarator\r\n                                                ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note:   no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘v8::Local<v8::Value>’\r\n                     Local<Value> CallAsFunction(Local<Value> recv, int argc,\r\n                                  ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’\r\n #define V8_DEPRECATE_SOON(message, declarator) declarator\r\n                                                ^\r\nIn file included from ../src/node-curl.h:4:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: v8::MaybeLocal<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)\r\n   V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context,\r\n                                           ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note:   candidate expects 4 arguments, 3 provided\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h: In member function ‘void NodeCurl::on_error(CURLMsg*)’:\r\n../src/node-curl.h:254:84: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n   static v8::Persistent<v8::String> SYM_ON_ERROR = v8::Persistent<v8::String>::New(v8::String::NewSymbol(\"on_error\"));\r\n                                                                                    ^\r\n../src/node-curl.h:255:36: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Object>’\r\n   v8::Handle<v8::Value> cb = handle->Get(SYM_ON_ERROR);\r\n                                    ^\r\n../src/node-curl.h:258:57: error: ‘New’ is not a member of ‘v8::String’\r\n    v8::Handle<v8::Value> argv[] = {v8::Exception::Error(v8::String::New(curl_easy_strerror(msg->data.result)))};\r\n                                                         ^\r\n../src/node-curl.h:259:50: error: no matching function for call to ‘v8::Object::CallAsFunction(v8::Persistent<v8::Object>&, int, v8::Handle<v8::Value> [1])’\r\n    cb->ToObject()->CallAsFunction(handle, 1, argv);\r\n                                                  ^\r\n../src/node-curl.h:259:50: note: candidates are:\r\nIn file included from /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:23:0,\r\n                 from ../src/node-curl.h:4,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: v8::Local<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Value>, int, v8::Local<v8::Value>*)\r\n                     Local<Value> CallAsFunction(Local<Value> recv, int argc,\r\n                                  ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’\r\n #define V8_DEPRECATE_SOON(message, declarator) declarator\r\n                                                ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note:   no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘v8::Local<v8::Value>’\r\n                     Local<Value> CallAsFunction(Local<Value> recv, int argc,\r\n                                  ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’\r\n #define V8_DEPRECATE_SOON(message, declarator) declarator\r\n                                                ^\r\nIn file included from ../src/node-curl.h:4:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: v8::MaybeLocal<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)\r\n   V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context,\r\n                                           ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note:   candidate expects 4 arguments, 3 provided\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::getinfo(const int&)’:\r\n../src/node-curl.h:268:38: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n   NodeCurl * node_curl = unwrap(args.This());\r\n                                      ^\r\n../src/node-curl.h:269:35: error: invalid types ‘const int[int]’ for array subscript\r\n   CURLINFO info = (CURLINFO)args[0]->Int32Value();\r\n                                   ^\r\n../src/node-curl.h:275:51: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Null(v8::Isolate*)’\r\n   return result ? JsClass::New(result) : v8::Null();\r\n                                                   ^\r\nIn file included from ../src/node-curl.h:4:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:8130:18: note: declared here\r\n Local<Primitive> Null(Isolate* isolate) {\r\n                  ^\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::getinfo_slist(const int&)’:\r\n../src/node-curl.h:296:37: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n   NodeCurl* node_curl = unwrap(args.This());\r\n                                     ^\r\n../src/node-curl.h:297:35: error: invalid types ‘const int[int]’ for array subscript\r\n   CURLINFO info = (CURLINFO)args[0]->Int32Value();\r\n                                   ^\r\n../src/node-curl.h:303:48: error: no matching function for call to ‘v8::Array::New()’\r\n   v8::Handle<v8::Array> array = v8::Array::New();\r\n                                                ^\r\n../src/node-curl.h:303:48: note: candidate is:\r\nIn file included from ../src/node-curl.h:4:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2965:23: note: static v8::Local<v8::Array> v8::Array::New(v8::Isolate*, int)\r\n   static Local<Array> New(Isolate* isolate, int length = 0);\r\n                       ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2965:23: note:   candidate expects 2 arguments, 0 provided\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:309:33: error: ‘New’ is not a member of ‘v8::String’\r\n     array->Set(array->Length(), v8::String::New(cur->data));\r\n                                 ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_int(const int&)’:\r\n../src/node-curl.h:332:22: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n   return unwrap(args.This())->setopt(args[0], args[1]->Int32Value());\r\n                      ^\r\n../src/node-curl.h:332:44: error: invalid types ‘const int[int]’ for array subscript\r\n   return unwrap(args.This())->setopt(args[0], args[1]->Int32Value());\r\n                                            ^\r\n../src/node-curl.h:332:53: error: invalid types ‘const int[int]’ for array subscript\r\n   return unwrap(args.This())->setopt(args[0], args[1]->Int32Value());\r\n                                                     ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_str(const int&)’:\r\n../src/node-curl.h:339:40: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n   NodeCurl   * node_curl = unwrap(args.This());\r\n                                        ^\r\n../src/node-curl.h:340:19: error: invalid types ‘const int[int]’ for array subscript\r\n   int key = args[0]->Int32Value();\r\n                   ^\r\n../src/node-curl.h:341:37: error: invalid types ‘const int[int]’ for array subscript\r\n   v8::String::Utf8Value value(args[1]);\r\n                                     ^\r\n../src/node-curl.h:344:22: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n   return unwrap(args.This())->setopt(args[0], node_curl->strings[key].c_str() );\r\n                      ^\r\n../src/node-curl.h:344:44: error: invalid types ‘const int[int]’ for array subscript\r\n   return unwrap(args.This())->setopt(args[0], node_curl->strings[key].c_str() );\r\n                                            ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_slist(const int&)’:\r\n../src/node-curl.h:349:40: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n   NodeCurl   * node_curl = unwrap(args.This());\r\n                                        ^\r\n../src/node-curl.h:350:49: error: invalid types ‘const int[int]’ for array subscript\r\n   curl_slist * slist     = value_to_slist(args[1]);\r\n                                                 ^\r\n../src/node-curl.h:352:34: error: invalid types ‘const int[int]’ for array subscript\r\n   return node_curl->setopt(args[0], slist);\r\n                                  ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_httppost(const int&)’:\r\n../src/node-curl.h:357:38: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n   NodeCurl * node_curl = unwrap(args.This());\r\n                                      ^\r\n../src/node-curl.h:359:66: error: invalid types ‘const int[int]’ for array subscript\r\n   v8::Handle<v8::Array> rows = v8::Handle<v8::Array>::Cast(args[0]);\r\n                                                                  ^\r\n../src/node-curl.h:376:15: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n   return args.This();\r\n               ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::raise(const char*, const char*)’:\r\n../src/node-curl.h:407:10: error: ‘ThrowException’ is not a member of ‘v8’\r\n   return v8::ThrowException(v8::Exception::Error(v8::String::New(what)));\r\n          ^\r\n../src/node-curl.h:407:50: error: ‘New’ is not a member of ‘v8::String’\r\n   return v8::ThrowException(v8::Exception::Error(v8::String::New(what)));\r\n                                                  ^\r\n../src/node-curl.h: In static member function ‘static void NodeCurl::export_curl_options(T, const char*, NodeCurl::CurlOption*, int)’:\r\n../src/node-curl.h:413:57: error: no matching function for call to ‘v8::Object::New()’\r\n   v8::Handle<v8::Object> node_options = v8::Object::New();\r\n                                                         ^\r\n../src/node-curl.h:413:57: note: candidate is:\r\nIn file included from ../src/node-curl.h:4:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2933:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)\r\n   static Local<Object> New(Isolate* isolate);\r\n                        ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2933:24: note:   candidate expects 1 argument, 0 provided\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:418:5: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n     v8::String::NewSymbol(option.name),\r\n     ^\r\n../src/node-curl.h:419:34: error: no matching function for call to ‘v8::Integer::New(const int&)’\r\n     v8::Integer::New(option.value)\r\n                                  ^\r\n../src/node-curl.h:419:34: note: candidate is:\r\nIn file included from ../src/node-curl.h:4:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)\r\n   static Local<Integer> New(Isolate* isolate, int32_t value);\r\n                         ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note:   candidate expects 2 arguments, 1 provided\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:422:10: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n   t->Set(v8::String::NewSymbol(group_name), node_options);\r\n          ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::New(const int&)’:\r\n../src/node-curl.h:428:21: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n   new NodeCurl(args.This());\r\n                     ^\r\n../src/node-curl.h:429:15: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n   return args.This();\r\n               ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::process(const int&)’:\r\n../src/node-curl.h:472:66: error: no matching function for call to ‘v8::Integer::New(int)’\r\n   return v8::Integer::New(transfered + (int)(running_handles > 0));\r\n                                                                  ^\r\n../src/node-curl.h:472:66: note: candidate is:\r\nIn file included from ../src/node-curl.h:4:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)\r\n   static Local<Integer> New(Isolate* isolate, int32_t value);\r\n                         ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note:   candidate expects 2 arguments, 1 provided\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::perform(const int&)’:\r\n../src/node-curl.h:478:32: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n   NodeCurl *curl = unwrap(args.This());\r\n                                ^\r\n../src/node-curl.h:493:15: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’\r\n   return args.This();\r\n               ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::get_count(const int&)’:\r\n../src/node-curl.h:498:32: error: no matching function for call to ‘v8::Integer::New(int&)’\r\n   return v8::Integer::New(count);\r\n                                ^\r\n../src/node-curl.h:498:32: note: candidate is:\r\nIn file included from ../src/node-curl.h:4:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)\r\n   static Local<Integer> New(Isolate* isolate, int32_t value);\r\n                         ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note:   candidate expects 2 arguments, 1 provided\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::Initialize(v8::Handle<v8::Object>)’:\r\n../src/node-curl.h:518:69: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’\r\n   v8::Handle<v8::FunctionTemplate> t = v8::FunctionTemplate::New(New);\r\n                                                                     ^\r\n../src/node-curl.h:518:69: note: candidate is:\r\nIn file included from ../src/node-curl.h:4:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:4349:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int)\r\n   static Local<FunctionTemplate> New(\r\n                                  ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:4349:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:522:58: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive]\r\n   NODE_SET_PROTOTYPE_METHOD(t , \"perform_\"      , perform);\r\n                                                          ^\r\nIn file included from ../src/node-curl.h:5:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error:   initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive]\r\n inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv,\r\n             ^\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:523:61: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive]\r\n   NODE_SET_PROTOTYPE_METHOD(t , \"setopt_int_\"   , setopt_int);\r\n                                                             ^\r\nIn file included from ../src/node-curl.h:5:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error:   initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive]\r\n inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv,\r\n             ^\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:524:61: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive]\r\n   NODE_SET_PROTOTYPE_METHOD(t , \"setopt_str_\"   , setopt_str);\r\n                                                             ^\r\nIn file included from ../src/node-curl.h:5:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error:   initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive]\r\n inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv,\r\n             ^\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:525:63: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive]\r\n   NODE_SET_PROTOTYPE_METHOD(t , \"setopt_slist_\" , setopt_slist);\r\n                                                               ^\r\nIn file included from ../src/node-curl.h:5:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error:   initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive]\r\n inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv,\r\n             ^\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:526:69: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive]\r\n   NODE_SET_PROTOTYPE_METHOD(t , \"setopt_httppost_\" , setopt_httppost);\r\n                                                                     ^\r\nIn file included from ../src/node-curl.h:5:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error:   initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive]\r\n inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv,\r\n             ^\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:528:64: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive]\r\n   NODE_SET_PROTOTYPE_METHOD(t , \"getinfo_int_\"    , getinfo_int);\r\n                                                                ^\r\nIn file included from ../src/node-curl.h:5:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error:   initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive]\r\n inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv,\r\n             ^\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:529:64: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive]\r\n   NODE_SET_PROTOTYPE_METHOD(t , \"getinfo_str_\"    , getinfo_str);\r\n                                                                ^\r\nIn file included from ../src/node-curl.h:5:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error:   initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive]\r\n inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv,\r\n             ^\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:530:67: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive]\r\n   NODE_SET_PROTOTYPE_METHOD(t , \"getinfo_double_\" , getinfo_double);\r\n                                                                   ^\r\nIn file included from ../src/node-curl.h:5:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error:   initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive]\r\n inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv,\r\n             ^\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:531:66: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive]\r\n   NODE_SET_PROTOTYPE_METHOD(t , \"getinfo_slist_\"  , getinfo_slist);\r\n                                                                  ^\r\nIn file included from ../src/node-curl.h:5:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error:   initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive]\r\n inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv,\r\n             ^\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:533:47: error: no matches converting function ‘close’ to type ‘v8::FunctionCallback {aka void (*)(const class v8::FunctionCallbackInfo<v8::Value>&)}’\r\n   NODE_SET_PROTOTYPE_METHOD(t, \"close_\", close);\r\n                                               ^\r\n../src/node-curl.h:178:31: note: candidates are: static v8::Handle<v8::Value> NodeCurl::close(const int&)\r\n  static v8::Handle<v8::Value> close(const v8::Arguments & args)\r\n                               ^\r\n../src/node-curl.h:171:7: note:                 void NodeCurl::close()\r\n  void close()\r\n       ^\r\n../src/node-curl.h:535:44: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::FunctionTemplate>&, const char [9], v8::Handle<v8::Value> (&)(const int&))’\r\n   NODE_SET_METHOD(t , \"process_\"  , process);\r\n                                            ^\r\n../src/node-curl.h:535:44: note: candidate is:\r\nIn file included from ../src/node-curl.h:5:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node.h:236:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)\r\n inline void NODE_SET_METHOD(const TypeName& recv,\r\n             ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node.h:236:13: note:   template argument deduction/substitution failed:\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:535:44: note:   cannot convert ‘NodeCurl::process’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’\r\n   NODE_SET_METHOD(t , \"process_\"  , process);\r\n                                            ^\r\n../src/node-curl.h:536:46: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::FunctionTemplate>&, const char [10], v8::Handle<v8::Value> (&)(const int&))’\r\n   NODE_SET_METHOD(t , \"get_count\" , get_count);\r\n                                              ^\r\n../src/node-curl.h:536:46: note: candidate is:\r\nIn file included from ../src/node-curl.h:5:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node.h:236:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)\r\n inline void NODE_SET_METHOD(const TypeName& recv,\r\n             ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/node.h:236:13: note:   template argument deduction/substitution failed:\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:536:46: note:   cannot convert ‘NodeCurl::get_count’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’\r\n   NODE_SET_METHOD(t , \"get_count\" , get_count);\r\n                                              ^\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h:594:15: error: ‘NewSymbol’ is not a member of ‘v8::String’\r\n   target->Set(v8::String::NewSymbol(\"Curl\"), t->GetFunction());\r\n               ^\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h: In instantiation of ‘static v8::Handle<v8::Value> NodeCurl::getinfo(const int&) [with CType = long int; JsClass = v8::Integer; v8::Handle<v8::Value> = v8::Local<v8::Value>]’:\r\n../src/node-curl.h:280:41:   required from here\r\n../src/node-curl.h:275:38: error: no matching function for call to ‘v8::Integer::New(long int&)’\r\n   return result ? JsClass::New(result) : v8::Null();\r\n                                      ^\r\n../src/node-curl.h:275:38: note: candidate is:\r\nIn file included from ../src/node-curl.h:4:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)\r\n   static Local<Integer> New(Isolate* isolate, int32_t value);\r\n                         ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note:   candidate expects 2 arguments, 1 provided\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h: In instantiation of ‘static v8::Handle<v8::Value> NodeCurl::getinfo(const int&) [with CType = char*; JsClass = v8::String; v8::Handle<v8::Value> = v8::Local<v8::Value>]’:\r\n../src/node-curl.h:285:40:   required from here\r\n../src/node-curl.h:275:38: error: ‘New’ is not a member of ‘v8::String’\r\n   return result ? JsClass::New(result) : v8::Null();\r\n                                      ^\r\n../src/node-curl.h: In instantiation of ‘static v8::Handle<v8::Value> NodeCurl::getinfo(const int&) [with CType = double; JsClass = v8::Number; v8::Handle<v8::Value> = v8::Local<v8::Value>]’:\r\n../src/node-curl.h:290:42:   required from here\r\n../src/node-curl.h:275:38: error: no matching function for call to ‘v8::Number::New(double&)’\r\n../src/node-curl.h:275:38: note: candidate is:\r\nIn file included from ../src/node-curl.h:4:0,\r\n                 from ../src/node-curl.cc:1:\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2486:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)\r\n   static Local<Number> New(Isolate* isolate, double value);\r\n                        ^\r\n/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2486:24: note:   candidate expects 2 arguments, 1 provided\r\nIn file included from ../src/node-curl.cc:1:0:\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::getinfo(const int&) [with CType = double; JsClass = v8::Number; v8::Handle<v8::Value> = v8::Local<v8::Value>]’:\r\n../src/node-curl.h:276:2: warning: control reaches end of non-void function [-Wreturn-type]\r\n  }\r\n  ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::getinfo(const int&) [with CType = char*; JsClass = v8::String; v8::Handle<v8::Value> = v8::Local<v8::Value>]’:\r\n../src/node-curl.h:276:2: warning: control reaches end of non-void function [-Wreturn-type]\r\n  }\r\n  ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::getinfo(const int&) [with CType = long int; JsClass = v8::Integer; v8::Handle<v8::Value> = v8::Local<v8::Value>]’:\r\n../src/node-curl.h:276:2: warning: control reaches end of non-void function [-Wreturn-type]\r\n  }\r\n  ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_httppost(const int&)’:\r\n../src/node-curl.h:377:2: warning: control reaches end of non-void function [-Wreturn-type]\r\n  }\r\n  ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_slist(const int&)’:\r\n../src/node-curl.h:353:2: warning: control reaches end of non-void function [-Wreturn-type]\r\n  }\r\n  ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_str(const int&)’:\r\n../src/node-curl.h:345:2: warning: control reaches end of non-void function [-Wreturn-type]\r\n  }\r\n  ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_int(const int&)’:\r\n../src/node-curl.h:333:2: warning: control reaches end of non-void function [-Wreturn-type]\r\n  }\r\n  ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::perform(const int&)’:\r\n../src/node-curl.h:494:2: warning: control reaches end of non-void function [-Wreturn-type]\r\n  }\r\n  ^\r\n../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::raise(const char*, const char*)’:\r\n../src/node-curl.h:408:2: warning: control reaches end of non-void function [-Wreturn-type]\r\n  }\r\n  ^\r\nmake: *** [Release/obj.target/node-curl/src/node-curl.o] Error 1\r\nmake: Leaving directory `/home/ubuntu/node12/node_modules/node-curl/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:270: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/nodejs\" \"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /home/ubuntu/node12/node_modules/node-curl\r\ngyp ERR! node -v v4.2.2\r\ngyp ERR! node-gyp -v v3.0.3\r\ngyp ERR! not ok\r\nsh: 1: node-waf: not found\r\nnpm ERR! Linux 3.13.0-48-generic\r\nnpm ERR! argv \"/usr/bin/nodejs\" \"/usr/bin/npm\" \"install\" \"node-curl\" \"--save\"\r\nnpm ERR! node v4.2.2\r\nnpm ERR! npm  v2.14.7\r\nnpm ERR! file sh\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno ENOENT\r\nnpm ERR! syscall spawn\r\n\r\nnpm ERR! node-curl@0.3.3 install: `sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)`\r\nnpm ERR! spawn ENOENT\r\nnpm ERR!\r\nnpm ERR! Failed at the node-curl@0.3.3 install script 'sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)'.\r\nnpm ERR! This is most likely a problem with the node-curl package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls node-curl\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/node12/npm-debug.log\r\n\r\n"}}