cheery / node-udev

Bindings to libudev
35 stars 31 forks source link

Update to nan 2 for Node.js 4.0.0 compatibility. #6

Closed ChALkeR closed 7 years ago

ChALkeR commented 9 years ago

Adding to the list: https://github.com/nodejs/node/issues/2798.

bradfol commented 8 years ago

Would also like to use node-udev with Node v4.

rexfm commented 8 years ago

here's the console output I'm seeing from an install test on node 4.2.4

$ npm install udev          

> udev@0.1.3 install /etc/...../node_modules/udev
> node-gyp rebuild

make: Entering directory `/etc/..../node_modules/udev/build'
  CXX(target) Release/obj.target/udev/udev.o
In file included from ../udev.cc:1:0:
/home/rex/.node-gyp/4.2.4/include/node/v8.h:336:1: error: expected unqualified-id before 'using'
/home/rex/.node-gyp/4.2.4/include/node/v8.h:469:1: error: expected unqualified-id before 'using'
/home/rex/.node-gyp/4.2.4/include/node/v8.h:852:1: error: expected unqualified-id before 'using'
In file included from ../node_modules/nan/nan.h:82:0,
                 from ../udev.cc:3:
../node_modules/nan/nan_new.h:24:43: error: template declaration of 'v8::Local<T> NanIntern::To'
../node_modules/nan/nan_new.h:24:39: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan_new.h:24:61: error: expected primary-expression before '>' token
../node_modules/nan/nan_new.h:24:63: error: 'i' was not declared in this scope
../node_modules/nan/nan_new.h:29:3: error: expected initializer before '<' token
../node_modules/nan/nan_new.h:34:3: error: expected initializer before '<' token
../node_modules/nan/nan_new.h:39:3: error: expected initializer before '<' token
../node_modules/nan/nan_new.h:66:12: error: 'v8::Handle' has not been declared
../node_modules/nan/nan_new.h:66:18: error: expected ',' or '...' before '<' token
../node_modules/nan/nan_new.h:65:3: error: default argument missing for parameter 2 of 'static NanIntern::FactoryBase<v8::Context>::return_t NanIntern::Factory<v8::Context>::New(v8::ExtensionConfiguration*, int)'
../node_modules/nan/nan_new.h:85:12: error: 'v8::Handle' has not been declared
../node_modules/nan/nan_new.h:85:18: error: expected ',' or '...' before '<' token
../node_modules/nan/nan_new.h:93:12: error: 'v8::Handle' has not been declared
../node_modules/nan/nan_new.h:93:18: error: expected ',' or '...' before '<' token
../node_modules/nan/nan_new.h:92:3: error: default argument missing for parameter 2 of 'static NanIntern::FactoryBase<v8::FunctionTemplate>::return_t NanIntern::Factory<v8::FunctionTemplate>::New(NanFunctionCallback, int)'
../node_modules/nan/nan_new.h:139:11: error: 'v8::Handle' has not been declared
../node_modules/nan/nan_new.h:139:17: error: expected ',' or '...' before '<' token
../node_modules/nan/nan_new.h:151:11: error: 'Handle' in namespace 'v8' does not name a type
../node_modules/nan/nan_new.h:152:30: error: 'FTH' has not been declared
../node_modules/nan/nan_new.h:152:49: error: 'FTH' was not declared in this scope
../node_modules/nan/nan_new.h:171:34: error: 'v8::Handle' has not been declared
../node_modules/nan/nan_new.h:171:40: error: expected ',' or '...' before '<' token
In file included from ../node_modules/nan/nan_new.h:189:0,
                 from ../node_modules/nan/nan.h:82,
                 from ../udev.cc:3:
../node_modules/nan/nan_implementation_12_inl.h:56:32: error: 'v8::Handle' has not been declared
../node_modules/nan/nan_implementation_12_inl.h:56:38: error: expected ',' or '...' before '<' token
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::FactoryBase<v8::Context>::return_t NanIntern::Factory<v8::Context>::New(v8::ExtensionConfiguration*, int)':
../node_modules/nan/nan_implementation_12_inl.h:58:66: error: 'tmpl' was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h:58:72: error: 'obj' was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h: At global scope:
../node_modules/nan/nan_implementation_12_inl.h:79:33: error: 'v8::Handle' has not been declared
../node_modules/nan/nan_implementation_12_inl.h:79:39: error: expected ',' or '...' before '<' token
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::FactoryBase<v8::Function>::return_t NanIntern::Factory<v8::Function>::New(NanFunctionCallback, int)':
../node_modules/nan/nan_implementation_12_inl.h:82:29: error: 'data' was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h: At global scope:
../node_modules/nan/nan_implementation_12_inl.h:89:41: error: 'v8::Handle' has not been declared
../node_modules/nan/nan_implementation_12_inl.h:89:47: error: expected ',' or '...' before '<' token
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::FactoryBase<v8::FunctionTemplate>::return_t NanIntern::Factory<v8::FunctionTemplate>::New(NanFunctionCallback, int)':
../node_modules/nan/nan_implementation_12_inl.h:93:37: error: 'data' was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h:94:37: error: 'signature' was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::IntegerFactory<T>::return_t NanIntern::IntegerFactory<T>::New(int32_t)':
../node_modules/nan/nan_implementation_12_inl.h:117:10: error: 'To' was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h:117:14: error: expected primary-expression before '>' token
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::IntegerFactory<T>::return_t NanIntern::IntegerFactory<T>::New(uint32_t)':
../node_modules/nan/nan_implementation_12_inl.h:123:10: error: 'To' was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h:123:14: error: expected primary-expression before '>' token
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::FactoryBase<v8::Uint32>::return_t NanIntern::Factory<v8::Uint32>::New(int32_t)':
../node_modules/nan/nan_implementation_12_inl.h:128:10: error: 'To' was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h:128:23: error: expected primary-expression before '>' token
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::FactoryBase<v8::Uint32>::return_t NanIntern::Factory<v8::Uint32>::New(uint32_t)':
../node_modules/nan/nan_implementation_12_inl.h:134:10: error: 'To' was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h:134:23: error: expected primary-expression before '>' token
../node_modules/nan/nan_implementation_12_inl.h: At global scope:
../node_modules/nan/nan_implementation_12_inl.h:156:9: error: 'NanIntern::FactoryBase<v8::RegExp>::return_t NanIntern::Factory<v8::RegExp>::New' is not a static member of 'struct NanIntern::Factory<v8::RegExp>'
../node_modules/nan/nan_implementation_12_inl.h:156:5: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan_implementation_12_inl.h:156:26: error: expected primary-expression before '>' token
../node_modules/nan/nan_implementation_12_inl.h:156:28: error: 'pattern' was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h:157:23: error: expected primary-expression before 'flags'
../node_modules/nan/nan_implementation_12_inl.h:157:30: error: expected ',' or ';' before '{' token
../node_modules/nan/nan_implementation_12_inl.h:179:53: error: 'NanIntern::FactoryBase<v8::Signature>::return_t NanIntern::Factory<v8::Signature>::New' is not a static member of 'struct NanIntern::Factory<v8::Signature>'
../node_modules/nan/nan_implementation_12_inl.h:179:29: error: 'FTH' is not a member of 'NanIntern::Factory<v8::Signature>'
../node_modules/nan/nan_implementation_12_inl.h:179:67: error: expected ',' or ';' before '{' token
../node_modules/nan/nan_implementation_12_inl.h:228:36: error: 'NanIntern::FactoryBase<v8::StringObject>::return_t NanIntern::Factory<v8::StringObject>::New' is not a static member of 'struct NanIntern::Factory<v8::StringObject>'
../node_modules/nan/nan_implementation_12_inl.h:228:32: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan_implementation_12_inl.h:228:53: error: expected primary-expression before '>' token
../node_modules/nan/nan_implementation_12_inl.h:228:55: error: 'value' was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h:228:62: error: expected ',' or ';' before '{' token
../node_modules/nan/nan_implementation_12_inl.h:252:32: error: 'NanNew' declared as an 'inline' variable
../node_modules/nan/nan_implementation_12_inl.h:252:32: error: template declaration of 'v8::Local<T> NanNew'
../node_modules/nan/nan_implementation_12_inl.h:252:28: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan_implementation_12_inl.h:252:40: error: expected primary-expression before '>' token
../node_modules/nan/nan_implementation_12_inl.h:252:42: error: 'h' was not declared in this scope
In file included from ../node_modules/nan/nan.h:82:0,
                 from ../udev.cc:3:
../node_modules/nan/nan_new.h:238:13: error: 'v8::Handle' has not been declared
../node_modules/nan/nan_new.h:238:19: error: expected ',' or '...' before '<' token
../node_modules/nan/nan_new.h: In function 'typename NanIntern::Factory<T>::return_t NanNew(NanFunctionCallback, int)':
../node_modules/nan/nan_new.h:239:49: error: 'data' was not declared in this scope
../node_modules/nan/nan_new.h: At global scope:
../node_modules/nan/nan_new.h:246:13: error: 'v8::Handle' has not been declared
../node_modules/nan/nan_new.h:246:19: error: expected ',' or '...' before '<' token
../node_modules/nan/nan_new.h: In function 'typename NanIntern::Factory<T>::return_t NanNew(NanFunctionCallback, int)':
../node_modules/nan/nan_new.h:248:49: error: 'data' was not declared in this scope
../node_modules/nan/nan_new.h:248:55: error: 'a2' was not declared in this scope
../node_modules/nan/nan_new.h: At global scope:
../node_modules/nan/nan_new.h:253:54: error: 'NanNew' declared as an 'inline' variable
../node_modules/nan/nan_new.h:253:54: error: template declaration of 'v8::Local<T> NanNew'
../node_modules/nan/nan_new.h:253:50: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan_new.h:253:62: error: expected primary-expression before '>' token
../node_modules/nan/nan_new.h:253:64: error: 'h' was not declared in this scope
../node_modules/nan/nan_new.h:324:12: error: 'NanNew' declared as an 'inline' variable
../node_modules/nan/nan_new.h:324:12: error: 'NanIntern::FactoryBase<v8::RegExp>::return_t NanNew' redeclared as different kind of symbol
../node_modules/nan/nan_new.h:318:1: error: previous declaration of 'NanIntern::FactoryBase<v8::String>::return_t NanNew(NanExternalOneByteStringResource*)'
../node_modules/nan/nan_new.h:324:8: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan_new.h:324:29: error: expected primary-expression before '>' token
../node_modules/nan/nan_new.h:324:31: error: 'pattern' was not declared in this scope
../node_modules/nan/nan_new.h:324:58: error: expected primary-expression before 'flags'
In file included from ../udev.cc:3:0:
../node_modules/nan/nan.h:220:9: error: 'v8::Handle' has not been declared
../node_modules/nan/nan.h:220:15: error: expected ',' or '...' before '<' token
../node_modules/nan/nan.h: In function 'bool NanBooleanOptionValue(v8::Local<v8::Object>, int)':
../node_modules/nan/nan.h:222:7: error: 'def' was not declared in this scope
../node_modules/nan/nan.h:224:27: error: 'opt' was not declared in this scope
../node_modules/nan/nan.h:228:26: error: 'opt' was not declared in this scope
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:235:9: error: 'v8::Handle' has not been declared
../node_modules/nan/nan.h:235:15: error: expected ',' or '...' before '<' token
../node_modules/nan/nan.h: In function 'bool NanBooleanOptionValue(v8::Local<v8::Object>, int)':
../node_modules/nan/nan.h:233:17: error: redefinition of 'bool NanBooleanOptionValue(v8::Local<v8::Object>, int)'
../node_modules/nan/nan.h:218:17: error: 'bool NanBooleanOptionValue(v8::Local<v8::Object>, int)' previously defined here
../node_modules/nan/nan.h:237:44: error: 'opt' was not declared in this scope
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:242:9: error: 'v8::Handle' has not been declared
../node_modules/nan/nan.h:242:15: error: expected ',' or '...' before '<' token
../node_modules/nan/nan.h: In function 'uint32_t NanUInt32OptionValue(v8::Local<v8::Object>, int)':
../node_modules/nan/nan.h:246:24: error: 'opt' was not declared in this scope
../node_modules/nan/nan.h:249:9: error: 'def' was not declared in this scope
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:253:25: error: template declaration of 'v8::Local<T> NanNew'
../node_modules/nan/nan.h:253:21: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:253:33: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:253:34: error: expected primary-expression before ')' token
../node_modules/nan/nan.h:256:45: error: '_NanEnsureLocal' declared as an 'inline' variable
../node_modules/nan/nan.h:256:45: warning: 'always_inline' attribute ignored [-Wattributes]
../node_modules/nan/nan.h:256:45: error: template declaration of 'v8::Local<T> _NanEnsureLocal'
../node_modules/nan/nan.h:256:41: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:256:53: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:256:55: error: 'val' was not declared in this scope
../node_modules/nan/nan.h: In function 'v8::Local<v8::Primitive> NanUndefined()':
../node_modules/nan/nan.h:414:12: error: no matching function for call to 'NanNew(v8::Local<v8::Primitive>)'
../node_modules/nan/nan.h:414:12: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:257:21: note: template<class T> v8::Local<T> NanNew(const v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename NanIntern::Factory::return_t NanNew()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename NanIntern::Factory<T>::return_t NanNew(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename NanIntern::Factory<T>::return_t NanNew(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename NanIntern::Factory<T>::return_t NanNew(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename NanIntern::Factory<T>::return_t NanNew(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename NanIntern::Factory::return_t NanNew(NanFunctionCallback, int)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename NanIntern::Factory<T>::return_t NanNew(NanFunctionCallback, int)
../node_modules/nan/nan_new.h:258:1: note: NanIntern::FactoryBase<v8::Boolean>::return_t NanNew(bool)
../node_modules/nan/nan_new.h:258:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'bool'
../node_modules/nan/nan_new.h:264:1: note: NanIntern::IntegerFactory<v8::Int32>::return_t NanNew(int32_t)
../node_modules/nan/nan_new.h:264:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'int32_t {aka int}'
../node_modules/nan/nan_new.h:270:1: note: NanIntern::FactoryBase<v8::Uint32>::return_t NanNew(uint32_t)
../node_modules/nan/nan_new.h:270:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'uint32_t {aka unsigned int}'
../node_modules/nan/nan_new.h:276:1: note: NanIntern::FactoryBase<v8::Number>::return_t NanNew(double)
../node_modules/nan/nan_new.h:276:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'double'
../node_modules/nan/nan_new.h:282:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const string&)
../node_modules/nan/nan_new.h:282:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'const string& {aka const std::basic_string<char>&}'
../node_modules/nan/nan_new.h:288:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const char*, int)
../node_modules/nan/nan_new.h:288:1: note:   candidate expects 2 arguments, 1 provided
../node_modules/nan/nan_new.h:294:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const char*)
../node_modules/nan/nan_new.h:294:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'const char*'
../node_modules/nan/nan_new.h:300:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const uint8_t*)
../node_modules/nan/nan_new.h:300:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'const uint8_t* {aka const unsigned char*}'
../node_modules/nan/nan_new.h:306:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const uint16_t*)
../node_modules/nan/nan_new.h:306:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'const uint16_t* {aka const short unsigned int*}'
../node_modules/nan/nan_new.h:312:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(v8::String::ExternalStringResource*)
../node_modules/nan/nan_new.h:312:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'v8::String::ExternalStringResource*'
../node_modules/nan/nan_new.h:318:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(NanExternalOneByteStringResource*)
../node_modules/nan/nan_new.h:318:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'NanExternalOneByteStringResource* {aka v8::String::ExternalOneByteStringResource*}'
../node_modules/nan/nan.h: In function 'v8::Local<v8::Primitive> NanNull()':
../node_modules/nan/nan.h:419:12: error: no matching function for call to 'NanNew(v8::Local<v8::Primitive>)'
../node_modules/nan/nan.h:419:12: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:257:21: note: template<class T> v8::Local<T> NanNew(const v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename NanIntern::Factory::return_t NanNew()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename NanIntern::Factory<T>::return_t NanNew(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename NanIntern::Factory<T>::return_t NanNew(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename NanIntern::Factory<T>::return_t NanNew(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename NanIntern::Factory<T>::return_t NanNew(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename NanIntern::Factory::return_t NanNew(NanFunctionCallback, int)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename NanIntern::Factory<T>::return_t NanNew(NanFunctionCallback, int)
../node_modules/nan/nan_new.h:258:1: note: NanIntern::FactoryBase<v8::Boolean>::return_t NanNew(bool)
../node_modules/nan/nan_new.h:258:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'bool'
../node_modules/nan/nan_new.h:264:1: note: NanIntern::IntegerFactory<v8::Int32>::return_t NanNew(int32_t)
../node_modules/nan/nan_new.h:264:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'int32_t {aka int}'
../node_modules/nan/nan_new.h:270:1: note: NanIntern::FactoryBase<v8::Uint32>::return_t NanNew(uint32_t)
../node_modules/nan/nan_new.h:270:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'uint32_t {aka unsigned int}'
../node_modules/nan/nan_new.h:276:1: note: NanIntern::FactoryBase<v8::Number>::return_t NanNew(double)
../node_modules/nan/nan_new.h:276:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'double'
../node_modules/nan/nan_new.h:282:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const string&)
../node_modules/nan/nan_new.h:282:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'const string& {aka const std::basic_string<char>&}'
../node_modules/nan/nan_new.h:288:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const char*, int)
../node_modules/nan/nan_new.h:288:1: note:   candidate expects 2 arguments, 1 provided
../node_modules/nan/nan_new.h:294:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const char*)
../node_modules/nan/nan_new.h:294:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'const char*'
../node_modules/nan/nan_new.h:300:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const uint8_t*)
../node_modules/nan/nan_new.h:300:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'const uint8_t* {aka const unsigned char*}'
../node_modules/nan/nan_new.h:306:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const uint16_t*)
../node_modules/nan/nan_new.h:306:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'const uint16_t* {aka const short unsigned int*}'
../node_modules/nan/nan_new.h:312:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(v8::String::ExternalStringResource*)
../node_modules/nan/nan_new.h:312:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'v8::String::ExternalStringResource*'
../node_modules/nan/nan_new.h:318:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(NanExternalOneByteStringResource*)
../node_modules/nan/nan_new.h:318:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Primitive>' to 'NanExternalOneByteStringResource* {aka v8::String::ExternalOneByteStringResource*}'
../node_modules/nan/nan.h: In function 'v8::Local<v8::Boolean> NanTrue()':
../node_modules/nan/nan.h:424:12: error: no matching function for call to 'NanNew(v8::Local<v8::Boolean>)'
../node_modules/nan/nan.h:424:12: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:257:21: note: template<class T> v8::Local<T> NanNew(const v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename NanIntern::Factory::return_t NanNew()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename NanIntern::Factory<T>::return_t NanNew(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename NanIntern::Factory<T>::return_t NanNew(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename NanIntern::Factory<T>::return_t NanNew(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename NanIntern::Factory<T>::return_t NanNew(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename NanIntern::Factory::return_t NanNew(NanFunctionCallback, int)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename NanIntern::Factory<T>::return_t NanNew(NanFunctionCallback, int)
../node_modules/nan/nan_new.h:258:1: note: NanIntern::FactoryBase<v8::Boolean>::return_t NanNew(bool)
../node_modules/nan/nan_new.h:258:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'bool'
../node_modules/nan/nan_new.h:264:1: note: NanIntern::IntegerFactory<v8::Int32>::return_t NanNew(int32_t)
../node_modules/nan/nan_new.h:264:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'int32_t {aka int}'
../node_modules/nan/nan_new.h:270:1: note: NanIntern::FactoryBase<v8::Uint32>::return_t NanNew(uint32_t)
../node_modules/nan/nan_new.h:270:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'uint32_t {aka unsigned int}'
../node_modules/nan/nan_new.h:276:1: note: NanIntern::FactoryBase<v8::Number>::return_t NanNew(double)
../node_modules/nan/nan_new.h:276:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'double'
../node_modules/nan/nan_new.h:282:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const string&)
../node_modules/nan/nan_new.h:282:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'const string& {aka const std::basic_string<char>&}'
../node_modules/nan/nan_new.h:288:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const char*, int)
../node_modules/nan/nan_new.h:288:1: note:   candidate expects 2 arguments, 1 provided
../node_modules/nan/nan_new.h:294:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const char*)
../node_modules/nan/nan_new.h:294:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'const char*'
../node_modules/nan/nan_new.h:300:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const uint8_t*)
../node_modules/nan/nan_new.h:300:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'const uint8_t* {aka const unsigned char*}'
../node_modules/nan/nan_new.h:306:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const uint16_t*)
../node_modules/nan/nan_new.h:306:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'const uint16_t* {aka const short unsigned int*}'
../node_modules/nan/nan_new.h:312:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(v8::String::ExternalStringResource*)
../node_modules/nan/nan_new.h:312:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'v8::String::ExternalStringResource*'
../node_modules/nan/nan_new.h:318:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(NanExternalOneByteStringResource*)
../node_modules/nan/nan_new.h:318:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'NanExternalOneByteStringResource* {aka v8::String::ExternalOneByteStringResource*}'
../node_modules/nan/nan.h: In function 'v8::Local<v8::Boolean> NanFalse()':
../node_modules/nan/nan.h:429:12: error: no matching function for call to 'NanNew(v8::Local<v8::Boolean>)'
../node_modules/nan/nan.h:429:12: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:257:21: note: template<class T> v8::Local<T> NanNew(const v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename NanIntern::Factory::return_t NanNew()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename NanIntern::Factory<T>::return_t NanNew(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename NanIntern::Factory<T>::return_t NanNew(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename NanIntern::Factory<T>::return_t NanNew(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename NanIntern::Factory<T>::return_t NanNew(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename NanIntern::Factory::return_t NanNew(NanFunctionCallback, int)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename NanIntern::Factory<T>::return_t NanNew(NanFunctionCallback, int)
../node_modules/nan/nan_new.h:258:1: note: NanIntern::FactoryBase<v8::Boolean>::return_t NanNew(bool)
../node_modules/nan/nan_new.h:258:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'bool'
../node_modules/nan/nan_new.h:264:1: note: NanIntern::IntegerFactory<v8::Int32>::return_t NanNew(int32_t)
../node_modules/nan/nan_new.h:264:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'int32_t {aka int}'
../node_modules/nan/nan_new.h:270:1: note: NanIntern::FactoryBase<v8::Uint32>::return_t NanNew(uint32_t)
../node_modules/nan/nan_new.h:270:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'uint32_t {aka unsigned int}'
../node_modules/nan/nan_new.h:276:1: note: NanIntern::FactoryBase<v8::Number>::return_t NanNew(double)
../node_modules/nan/nan_new.h:276:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'double'
../node_modules/nan/nan_new.h:282:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const string&)
../node_modules/nan/nan_new.h:282:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'const string& {aka const std::basic_string<char>&}'
../node_modules/nan/nan_new.h:288:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const char*, int)
../node_modules/nan/nan_new.h:288:1: note:   candidate expects 2 arguments, 1 provided
../node_modules/nan/nan_new.h:294:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const char*)
../node_modules/nan/nan_new.h:294:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'const char*'
../node_modules/nan/nan_new.h:300:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const uint8_t*)
../node_modules/nan/nan_new.h:300:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'const uint8_t* {aka const unsigned char*}'
../node_modules/nan/nan_new.h:306:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(const uint16_t*)
../node_modules/nan/nan_new.h:306:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'const uint16_t* {aka const short unsigned int*}'
../node_modules/nan/nan_new.h:312:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(v8::String::ExternalStringResource*)
../node_modules/nan/nan_new.h:312:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'v8::String::ExternalStringResource*'
../node_modules/nan/nan_new.h:318:1: note: NanIntern::FactoryBase<v8::String>::return_t NanNew(NanExternalOneByteStringResource*)
../node_modules/nan/nan_new.h:318:1: note:   no known conversion for argument 1 from 'v8::Local<v8::Boolean>' to 'NanExternalOneByteStringResource* {aka v8::String::ExternalOneByteStringResource*}'
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:438:11: error: variable or field 'NanSetTemplate' declared void
../node_modules/nan/nan.h:438:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:438:30: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:438:32: error: 'templ' was not declared in this scope
../node_modules/nan/nan.h:439:7: error: expected primary-expression before 'const'
../node_modules/nan/nan.h:440:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:440:26: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:440:28: error: 'value' was not declared in this scope
../node_modules/nan/nan.h:445:11: error: variable or field 'NanSetTemplate' declared void
../node_modules/nan/nan.h:445:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:445:30: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:445:32: error: 'templ' was not declared in this scope
../node_modules/nan/nan.h:446:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:446:28: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:446:30: error: 'name' was not declared in this scope
../node_modules/nan/nan.h:447:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:447:26: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:447:28: error: 'value' was not declared in this scope
../node_modules/nan/nan.h:448:29: error: expected primary-expression before 'attributes'
../node_modules/nan/nan.h:457:11: error: 'NanGetInternalFieldPointer' declared as an 'inline' variable
../node_modules/nan/nan.h:457:11: warning: 'always_inline' attribute ignored [-Wattributes]
../node_modules/nan/nan.h:457:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:457:28: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:457:30: error: 'object' was not declared in this scope
../node_modules/nan/nan.h:458:7: error: expected primary-expression before 'int'
../node_modules/nan/nan.h:458:16: error: expression list treated as compound expression in initializer [-fpermissive]
../node_modules/nan/nan.h:458:18: error: expected ',' or ';' before '{' token
../node_modules/nan/nan.h:463:11: error: variable or field 'NanSetInternalFieldPointer' declared void
../node_modules/nan/nan.h:463:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:463:28: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:463:30: error: 'object' was not declared in this scope
../node_modules/nan/nan.h:464:7: error: expected primary-expression before 'int'
../node_modules/nan/nan.h:465:7: error: expected primary-expression before 'void'
../node_modules/nan/nan.h:507:11: error: 'v8::Handle' has not been declared
../node_modules/nan/nan.h:507:17: error: expected ',' or '...' before '<' token
../node_modules/nan/nan.h: In function 'void NanAssignPersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)':
../node_modules/nan/nan.h:508:47: error: 'obj' was not declared in this scope
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:524:47: error: expected ')' before '<' token
../node_modules/nan/nan.h:585:9: error: 'NanMakeWeakPersistent' declared as an 'inline' variable
../node_modules/nan/nan.h:585:9: warning: 'always_inline' attribute ignored [-Wattributes]
../node_modules/nan/nan.h:585:9: error: template declaration of '_NanWeakCallbackInfo<T, P>* NanMakeWeakPersistent'
../node_modules/nan/nan.h:585:5: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:585:17: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:585:19: error: 'handle' was not declared in this scope
../node_modules/nan/nan.h:586:6: error: expected primary-expression before '*' token
../node_modules/nan/nan.h:586:8: error: 'parameter' was not declared in this scope
../node_modules/nan/nan.h:587:51: error: expected '(' before 'callback'
../node_modules/nan/nan.h:614:37: error: variable or field 'NanThrowError' declared void
../node_modules/nan/nan.h:614:33: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:614:53: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:614:55: error: 'error' was not declared in this scope
../node_modules/nan/nan.h: In function 'void NanThrowError(const char*, int)':
../node_modules/nan/nan.h:633:45: error: no matching function for call to 'NanThrowError(v8::Local<v8::Value>)'
../node_modules/nan/nan.h:633:45: note: candidates are:
../node_modules/nan/nan.h:610:19: note: void NanThrowError(const char*)
../node_modules/nan/nan.h:610:19: note:   no known conversion for argument 1 from 'v8::Local<v8::Value>' to 'const char*'
../node_modules/nan/nan.h:629:19: note: void NanThrowError(const char*, int)
../node_modules/nan/nan.h:629:19: note:   candidate expects 2 arguments, 1 provided
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:661:13: error: 'node::smalloc' has not been declared
../node_modules/nan/nan.h:661:35: error: expected ',' or '...' before 'callback'
../node_modules/nan/nan.h: In function 'v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)':
../node_modules/nan/nan.h:665:50: error: 'callback' was not declared in this scope
../node_modules/nan/nan.h:665:60: error: 'hint' was not declared in this scope
../node_modules/nan/nan.h: In function 'v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)':
../node_modules/nan/nan.h:672:67: error: call of overloaded 'New(v8::Isolate*, const char*&, uint32_t&)' is ambiguous
../node_modules/nan/nan.h:672:67: note: candidates are:
/home/rex/.node-gyp/4.2.4/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>
/home/rex/.node-gyp/4.2.4/include/node/node_buffer.h:31:40: note:   no known conversion for argument 3 from 'uint32_t {aka unsigned int}' to 'node::encoding'
/home/rex/.node-gyp/4.2.4/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match>
/home/rex/.node-gyp/4.2.4/include/node/node_buffer.h:43:40: note:   no known conversion for argument 2 from 'const char*' to 'char*'
../node_modules/nan/nan.h: In function 'v8::Local<v8::Object> NanNewBufferHandle(uint32_t)':
../node_modules/nan/nan.h:676:61: error: could not convert 'node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))' from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
../node_modules/nan/nan.h: In function 'v8::Local<v8::Object> NanBufferUse(char*, uint32_t)':
../node_modules/nan/nan.h:683:12: error: 'Use' is not a member of 'node::Buffer'
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:688:11: error: 'v8::Handle' has not been declared
../node_modules/nan/nan.h:688:17: error: expected ',' or '...' before '<' token
../node_modules/nan/nan.h: In function 'bool NanHasInstance(const v8::Persistent<v8::FunctionTemplate>&, int)':
../node_modules/nan/nan.h:690:51: error: 'value' was not declared in this scope
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:695:11: error: 'v8::Handle' has not been declared
../node_modules/nan/nan.h:695:17: error: expected ',' or '...' before '<' token
../node_modules/nan/nan.h: In function 'v8::Local<v8::Context> NanNewContextHandle(v8::ExtensionConfiguration*, int)':
../node_modules/nan/nan.h:693:52: error: default argument missing for parameter 2 of 'v8::Local<v8::Context> NanNewContextHandle(v8::ExtensionConfiguration*, int)'
../node_modules/nan/nan.h:701:47: error: 'tmpl' was not declared in this scope
../node_modules/nan/nan.h:701:53: error: 'obj' was not declared in this scope
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:721:11: error: 'NanRunScript' declared as an 'inline' variable
../node_modules/nan/nan.h:721:11: warning: 'always_inline' attribute ignored [-Wattributes]
../node_modules/nan/nan.h:721:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:721:34: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:721:36: error: 'script' was not declared in this scope
../node_modules/nan/nan.h:722:5: error: expected ',' or ';' before '{' token
../node_modules/nan/nan.h:727:11: error: 'NanRunScript' declared as an 'inline' variable
../node_modules/nan/nan.h:727:11: warning: 'always_inline' attribute ignored [-Wattributes]
../node_modules/nan/nan.h:727:11: error: redefinition of 'v8::Local<v8::Value> NanRunScript'
../node_modules/nan/nan.h:720:35: error: 'v8::Local<v8::Value> NanRunScript' previously declared here
../node_modules/nan/nan.h:727:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:727:32: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:727:34: error: 'script' was not declared in this scope
../node_modules/nan/nan.h:733:11: error: 'NanMakeCallback' declared as an 'inline' variable
../node_modules/nan/nan.h:733:11: warning: 'always_inline' attribute ignored [-Wattributes]
../node_modules/nan/nan.h:733:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:733:28: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:733:30: error: 'target' was not declared in this scope
../node_modules/nan/nan.h:734:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:734:30: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:734:32: error: 'func' was not declared in this scope
../node_modules/nan/nan.h:735:7: error: expected primary-expression before 'int'
../node_modules/nan/nan.h:736:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:736:27: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:736:30: error: 'argv' was not declared in this scope
../node_modules/nan/nan.h:736:36: error: expected ',' or ';' before '{' token
../node_modules/nan/nan.h:742:11: error: 'NanMakeCallback' declared as an 'inline' variable
../node_modules/nan/nan.h:742:11: warning: 'always_inline' attribute ignored [-Wattributes]
../node_modules/nan/nan.h:742:11: error: redefinition of 'v8::Local<v8::Value> NanMakeCallback'
../node_modules/nan/nan.h:732:35: error: 'v8::Local<v8::Value> NanMakeCallback' previously declared here
../node_modules/nan/nan.h:742:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:742:28: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:742:30: error: 'target' was not declared in this scope
../node_modules/nan/nan.h:743:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:743:28: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:743:30: error: 'symbol' was not declared in this scope
../node_modules/nan/nan.h:744:7: error: expected primary-expression before 'int'
../node_modules/nan/nan.h:745:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:745:27: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:745:30: error: 'argv' was not declared in this scope
../node_modules/nan/nan.h:751:11: error: 'NanMakeCallback' declared as an 'inline' variable
../node_modules/nan/nan.h:751:11: warning: 'always_inline' attribute ignored [-Wattributes]
../node_modules/nan/nan.h:751:11: error: redefinition of 'v8::Local<v8::Value> NanMakeCallback'
../node_modules/nan/nan.h:732:35: error: 'v8::Local<v8::Value> NanMakeCallback' previously declared here
../node_modules/nan/nan.h:751:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:751:28: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:751:30: error: 'target' was not declared in this scope
../node_modules/nan/nan.h:752:7: error: expected primary-expression before 'const'
../node_modules/nan/nan.h:753:7: error: expected primary-expression before 'int'
../node_modules/nan/nan.h:754:7: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:754:27: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:754:30: error: 'argv' was not declared in this scope
../node_modules/nan/nan.h:776:50: error: expected ')' before '<' token
../node_modules/nan/nan.h:810:49: error: expected ')' before '<' token
../node_modules/nan/nan.h:843:49: error: expected ')' before '<' token
../node_modules/nan/nan.h:1484:30: error: 'Handle' in namespace 'v8' does not name a type
../node_modules/nan/nan.h:1484:34: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
../node_modules/nan/nan.h:1484:40: error: expected ',' or '...' before '<' token
../node_modules/nan/nan.h:1507:37: error: 'Handle' in namespace 'v8' does not name a type
../node_modules/nan/nan.h:1507:41: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
../node_modules/nan/nan.h:1507:47: error: expected ',' or '...' before '<' token
../node_modules/nan/nan.h:1523:14: error: 'Handle' in namespace 'v8' does not name a type
../node_modules/nan/nan.h:1535:14: error: 'Handle' in namespace 'v8' does not name a type
../node_modules/nan/nan.h:1550:3: error: 'Handle' in namespace 'v8' does not name a type
../node_modules/nan/nan.h: In constructor 'NanCallback::NanCallback()':
../node_modules/nan/nan.h:1481:36: error: no matching function for call to 'NanAssignPersistent(v8::Persistent<v8::Object>&, v8::Local<v8::Object>&)'
../node_modules/nan/nan.h:1481:36: note: candidates are:
../node_modules/nan/nan.h:505:19: note: template<class T> void NanAssignPersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)
../node_modules/nan/nan.h:512:19: note: template<class T> void NanAssignPersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, const v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&)
../node_modules/nan/nan.h: In constructor 'NanCallback::NanCallback(int)':
../node_modules/nan/nan.h:1487:36: error: no matching function for call to 'NanAssignPersistent(v8::Persistent<v8::Object>&, v8::Local<v8::Object>&)'
../node_modules/nan/nan.h:1487:36: note: candidates are:
../node_modules/nan/nan.h:505:19: note: template<class T> void NanAssignPersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)
../node_modules/nan/nan.h:512:19: note: template<class T> void NanAssignPersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, const v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&)
../node_modules/nan/nan.h:1488:17: error: 'fn' was not declared in this scope
../node_modules/nan/nan.h: In member function 'void NanCallback::SetFunction(int)':
../node_modules/nan/nan.h:1509:41: error: 'fn' was not declared in this scope
../node_modules/nan/nan.h: In constructor 'NanAsyncWorker::NanAsyncWorker(NanCallback*)':
../node_modules/nan/nan.h:1598:46: error: no matching function for call to 'NanAssignPersistent(v8::Persistent<v8::Object>&, v8::Local<v8::Object>&)'
../node_modules/nan/nan.h:1598:46: note: candidates are:
../node_modules/nan/nan.h:505:19: note: template<class T> void NanAssignPersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)
../node_modules/nan/nan.h:512:19: note: template<class T> void NanAssignPersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, const v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&)
../node_modules/nan/nan.h: In member function 'virtual void NanAsyncWorker::HandleOKCallback()':
../node_modules/nan/nan.h:1648:15: error: 'class NanCallback' has no member named 'Call'
../node_modules/nan/nan.h: In member function 'virtual void NanAsyncWorker::HandleErrorCallback()':
../node_modules/nan/nan.h:1657:15: error: 'class NanCallback' has no member named 'Call'
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:1957:5: error: 'Handle' is not a member of 'v8'
../node_modules/nan/nan.h:1957:25: error: expected primary-expression before '>' token
../node_modules/nan/nan.h:1957:27: error: 'val' was not declared in this scope
../node_modules/nan/nan.h:1958:5: error: expected primary-expression before 'const'
../node_modules/nan/nan.h:1959:11: error: expected primary-expression before '*' token
../node_modules/nan/nan.h:1959:13: error: 'len' was not declared in this scope
../node_modules/nan/nan.h:1960:1: error: expression list treated as compound expression in initializer [-fpermissive]
../node_modules/nan/nan.h:1960:3: error: expected ',' or ';' before '{' token
../node_modules/nan/nan.h:1956:13: warning: '_NanGetExternalParts' defined but not used [-Wunused-variable]
make: *** [Release/obj.target/udev/udev.o] Error 1
make: Leaving directory `/etc/.../node_modules/udev/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.8.11
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /etc/..../node_modules/udev
gyp ERR! node -v v4.2.4
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
npm ERR! Linux 3.8.11
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "udev"
npm ERR! node v4.2.4
npm ERR! npm  v2.14.12
npm ERR! code ELIFECYCLE

npm ERR! udev@0.1.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the udev@0.1.3 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the udev package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls udev
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /etc/..../npm-debug.log
rexfm commented 8 years ago

previous output was from 1.3, and here's output from 1.4:

$ npm install
-
> udev@0.1.4 install /etc/..../node_modules/node-udev
> node-gyp rebuild

make: Entering directory `/etc/..../node_modules/node-udev/build'
  CXX(target) Release/obj.target/udev/udev.o
In file included from ../udev.cc:2:0:
../node_modules/nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from ../udev.cc:1:0:
/home/rex/.node-gyp/4.2.4/include/node/v8.h:336:1: error: expected unqualified-id before 'using'
/home/rex/.node-gyp/4.2.4/include/node/v8.h:469:1: error: expected unqualified-id before 'using'
/home/rex/.node-gyp/4.2.4/include/node/v8.h:852:1: error: expected unqualified-id before 'using'
In file included from ../node_modules/nan/nan.h:194:0,
                 from ../udev.cc:2:
../node_modules/nan/nan_maybe_43_inl.h:13:1: error: expected unqualified-id before 'using'
../node_modules/nan/nan_maybe_43_inl.h:16:1: error: expected unqualified-id before 'using'
../node_modules/nan/nan_maybe_43_inl.h:19:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:24:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:31:1: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:36:1: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:41:1: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:46:1: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:51:1: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:60:1: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:65:12: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:70:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:77:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:84:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:92:12: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:99:1: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:109:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:115:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:119:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:126:1: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:131:1: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:136:1: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:140:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:146:12: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:151:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:157:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:163:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:169:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:175:12: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:181:12: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:187:12: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:195:12: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:202:1: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:206:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:210:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:214:12: error: 'Maybe' does not name a type
../node_modules/nan/nan_maybe_43_inl.h:218:12: error: 'MaybeLocal' does not name a type
In file included from ../node_modules/nan/nan.h:199:0,
                 from ../udev.cc:2:
../node_modules/nan/nan_converters.h:14:11: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_converters.h:16:56: error: 'Maybe' does not name a type
../node_modules/nan/nan_converters.h:26:1: error: 'return_t' does not name a type
../node_modules/nan/nan_converters.h:27:1: error: 'return_t' does not name a type
../node_modules/nan/nan_converters.h:28:1: error: 'return_t' does not name a type
../node_modules/nan/nan_converters.h:29:1: error: 'return_t' does not name a type
../node_modules/nan/nan_converters.h:30:1: error: 'return_t' does not name a type
../node_modules/nan/nan_converters.h:31:1: error: 'return_t' does not name a type
../node_modules/nan/nan_converters.h:32:1: error: 'return_t' does not name a type
../node_modules/nan/nan_converters.h:42:1: error: 'return_t' does not name a type
../node_modules/nan/nan_converters.h:43:1: error: 'return_t' does not name a type
../node_modules/nan/nan_converters.h:44:1: error: 'return_t' does not name a type
../node_modules/nan/nan_converters.h:45:1: error: 'return_t' does not name a type
../node_modules/nan/nan_converters.h:46:1: error: 'return_t' does not name a type
In file included from ../node_modules/nan/nan_converters.h:59:0,
                 from ../node_modules/nan/nan.h:199,
                 from ../udev.cc:2:
../node_modules/nan/nan_converters_43_inl.h:18:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Boolean>' does not name a type
../node_modules/nan/nan_converters_43_inl.h:19:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Number>' does not name a type
../node_modules/nan/nan_converters_43_inl.h:20:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::String>' does not name a type
../node_modules/nan/nan_converters_43_inl.h:21:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Object>' does not name a type
../node_modules/nan/nan_converters_43_inl.h:22:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Integer>' does not name a type
../node_modules/nan/nan_converters_43_inl.h:23:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Uint32>' does not name a type
../node_modules/nan/nan_converters_43_inl.h:24:1: error: 'return_t' in 'struct Nan::imp::ToFactory<v8::Int32>' does not name a type
../node_modules/nan/nan_converters_43_inl.h:34:1: error: 'return_t' in 'struct Nan::imp::ToFactory<bool>' does not name a type
../node_modules/nan/nan_converters_43_inl.h:35:1: error: 'return_t' in 'struct Nan::imp::ToFactory<double>' does not name a type
../node_modules/nan/nan_converters_43_inl.h:36:1: error: 'return_t' in 'struct Nan::imp::ToFactory<long int>' does not name a type
../node_modules/nan/nan_converters_43_inl.h:37:1: error: 'return_t' in 'struct Nan::imp::ToFactory<unsigned int>' does not name a type
../node_modules/nan/nan_converters_43_inl.h:38:1: error: 'return_t' in 'struct Nan::imp::ToFactory<int>' does not name a type
In file included from ../node_modules/nan/nan.h:200:0,
                 from ../udev.cc:2:
../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]':
../node_modules/nan/nan_new.h:21:32: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
../node_modules/nan/nan_new.h:21:32: note: candidate is:
../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]':
../node_modules/nan/nan_new.h:28:30: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
../node_modules/nan/nan_new.h:28:30: note: candidate is:
../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]':
../node_modules/nan/nan_new.h:35:31: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
../node_modules/nan/nan_new.h:35:31: note: candidate is:
../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../node_modules/nan/nan_new.h: At global scope:
../node_modules/nan/nan_new.h:43:11: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan_new.h:75:17: error: 'return_t' does not name a type
../node_modules/nan/nan_new.h:141:17: error: 'return_t' does not name a type
../node_modules/nan/nan_new.h:147:17: error: 'return_t' does not name a type
../node_modules/nan/nan_new.h:148:17: error: 'return_t' does not name a type
../node_modules/nan/nan_new.h:160:17: error: 'return_t' does not name a type
../node_modules/nan/nan_new.h:161:17: error: 'return_t' does not name a type
../node_modules/nan/nan_new.h:162:17: error: 'return_t' does not name a type
../node_modules/nan/nan_new.h:163:17: error: 'return_t' does not name a type
../node_modules/nan/nan_new.h:165:17: error: 'return_t' does not name a type
../node_modules/nan/nan_new.h:166:17: error: 'return_t' does not name a type
../node_modules/nan/nan_new.h:182:17: error: 'return_t' does not name a type
../node_modules/nan/nan_new.h:183:17: error: 'return_t' does not name a type
In file included from ../node_modules/nan/nan_new.h:189:0,
                 from ../node_modules/nan/nan.h:200,
                 from ../udev.cc:2:
../node_modules/nan/nan_implementation_12_inl.h:56:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Date>' does not name a type
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)':
../node_modules/nan/nan_implementation_12_inl.h:90:46: error: 'NewInstance' was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase<v8::FunctionTemplate>::return_t Nan::imp::Factory<v8::FunctionTemplate>::New(Nan::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>)':
../node_modules/nan/nan_implementation_12_inl.h:118:48: error: 'NewInstance' was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h: At global scope:
../node_modules/nan/nan_implementation_12_inl.h:197:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::RegExp>' does not name a type
../node_modules/nan/nan_implementation_12_inl.h:216:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Script>' does not name a type
../node_modules/nan/nan_implementation_12_inl.h:222:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::Script>' does not name a type
../node_modules/nan/nan_implementation_12_inl.h:254:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../node_modules/nan/nan_implementation_12_inl.h:262:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../node_modules/nan/nan_implementation_12_inl.h:268:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../node_modules/nan/nan_implementation_12_inl.h:275:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../node_modules/nan/nan_implementation_12_inl.h:281:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../node_modules/nan/nan_implementation_12_inl.h:286:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../node_modules/nan/nan_implementation_12_inl.h:347:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::UnboundScript>' does not name a type
../node_modules/nan/nan_implementation_12_inl.h:354:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::UnboundScript>' does not name a type
In file included from ../node_modules/nan/nan.h:200:0,
                 from ../udev.cc:2:
../node_modules/nan/nan_new.h:293:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../node_modules/nan/nan_new.h:299:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../node_modules/nan/nan_new.h:305:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../node_modules/nan/nan_new.h:311:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../node_modules/nan/nan_new.h:317:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../node_modules/nan/nan_new.h:323:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../node_modules/nan/nan_new.h:329:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::String>' does not name a type
../node_modules/nan/nan_new.h:335:1: error: 'return_t' in 'struct Nan::imp::Factory<v8::RegExp>' does not name a type
In file included from ../udev.cc:2:0:
../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::Error(const char*)':
../node_modules/nan/nan.h:651:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: In function 'void Nan::ThrowError(const char*)':
../node_modules/nan/nan.h:651:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::RangeError(const char*)':
../node_modules/nan/nan.h:652:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: In function 'void Nan::ThrowRangeError(const char*)':
../node_modules/nan/nan.h:652:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::ReferenceError(const char*)':
../node_modules/nan/nan.h:653:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: In function 'void Nan::ThrowReferenceError(const char*)':
../node_modules/nan/nan.h:653:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::SyntaxError(const char*)':
../node_modules/nan/nan.h:654:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: In function 'void Nan::ThrowSyntaxError(const char*)':
../node_modules/nan/nan.h:654:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::TypeError(const char*)':
../node_modules/nan/nan.h:655:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: In function 'void Nan::ThrowTypeError(const char*)':
../node_modules/nan/nan.h:655:3: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:663:14: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan.h:685:14: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan.h:701:14: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan.h:714:14: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan.h:731:14: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan.h:737:14: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan.h:745:14: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan.h:752:14: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan.h:758:14: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan.h: In member function 'void Nan::Callback::SetFunction(const v8::Local<v8::Function>&)':
../node_modules/nan/nan.h:1394:40: error: 'Set' was not declared in this scope
../node_modules/nan/nan.h:1394:40: note: suggested alternative:
/home/rex/.node-gyp/4.2.4/include/node/v8.h:3021:17: note:   'v8::Set'
../node_modules/nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)':
../node_modules/nan/nan.h:1516:41: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: In member function 'v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const':
../node_modules/nan/nan.h:1534:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: In member function 'virtual void Nan::AsyncWorker::HandleErrorCallback()':
../node_modules/nan/nan.h:1568:58: error: no matching function for call to 'New(const char*)'
../node_modules/nan/nan.h:1568:58: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../node_modules/nan/nan.h: In function 'void Nan::SetMethod(const T&, const char*, Nan::FunctionCallback)':
../node_modules/nan/nan.h:1857:16: error: there are no arguments to 'GetFunction' that depend on a template parameter, so a declaration of 'GetFunction' must be available [-fpermissive]
../node_modules/nan/nan.h:1857:16: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../node_modules/nan/nan.h:1858:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: In function 'void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, Nan::FunctionCallback)':
../node_modules/nan/nan.h:1870:32: error: 'GetFunction' was not declared in this scope
../node_modules/nan/nan.h:1871:45: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: In function 'void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)':
../node_modules/nan/nan.h:1896:47: error: 'NewInstance' was not declared in this scope
../node_modules/nan/nan.h: In function 'bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)':
../node_modules/nan/nan.h:1939:51: error: 'NewInstance' was not declared in this scope
../node_modules/nan/nan.h: In function 'void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, Nan::PropertyGetterCallback, Nan::PropertySetterCallback, Nan::PropertyQueryCallback, Nan::PropertyDeleterCallback, Nan::PropertyEnumeratorCallback, v8::Local<v8::Value>)':
../node_modules/nan/nan.h:1987:47: error: 'NewInstance' was not declared in this scope
../node_modules/nan/nan.h: In function 'void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, Nan::IndexGetterCallback, Nan::IndexSetterCallback, Nan::IndexQueryCallback, Nan::IndexDeleterCallback, Nan::IndexEnumeratorCallback, v8::Local<v8::Value>)':
../node_modules/nan/nan.h:2057:47: error: 'NewInstance' was not declared in this scope
../node_modules/nan/nan.h: In function 'void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)':
../node_modules/nan/nan.h:2112:47: error: 'NewInstance' was not declared in this scope
../node_modules/nan/nan.h: In function 'void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)':
../node_modules/nan/nan.h:2134:47: error: 'NewInstance' was not declared in this scope
In file included from ../udev.cc:2:0:
../node_modules/nan/nan.h: In function 'void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, Nan::FunctionCallback)':
../node_modules/nan/nan.h:2161:35: error: no matching function for call to 'New(const char*&)'
../node_modules/nan/nan.h:2161:35: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../node_modules/nan/nan.h:2162:47: error: 'GetFunction' was not declared in this scope
../node_modules/nan/nan.h:2162:65: error: 'Set' was not declared in this scope
../node_modules/nan/nan.h:2162:65: note: suggested alternative:
/home/rex/.node-gyp/4.2.4/include/node/v8.h:3021:17: note:   'v8::Set'
../node_modules/nan/nan.h: In constructor 'Nan::Tap::Tap(v8::Local<v8::Value>)':
../node_modules/nan/nan.h:2169:30: error: no matching function for call to 'To(v8::Local<v8::Value>&)'
../node_modules/nan/nan.h:2169:30: note: candidate is:
../node_modules/nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../node_modules/nan/nan.h: In member function 'void Nan::Tap::ok(bool, const char*)':
../node_modules/nan/nan.h:2182:33: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: In member function 'void Nan::Tap::pass(const char*)':
../node_modules/nan/nan.h:2188:30: error: 'Nan::imp::FactoryBase<v8::Boolean>::return_t' has no member named 'ToLocalChecked'
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:2212:10: error: 'MaybeLocal' does not name a type
../node_modules/nan/nan.h:2217:40: error: 'MaybeLocal' was not declared in this scope
../node_modules/nan/nan.h:2217:40: note: suggested alternative:
/home/rex/.node-gyp/4.2.4/include/node/v8.h:111:7: note:   'v8::MaybeLocal'
../node_modules/nan/nan.h:2217:52: error: template argument 1 is invalid
../node_modules/nan/nan.h:2217:54: error: expected unqualified-id before '>' token
../node_modules/nan/nan.h:2226:1: error: 'MaybeLocal' does not name a type
../udev.cc: In function 'void PushProperties(v8::Local<v8::Object>, udev_device*)':
../udev.cc:19:43: error: no matching function for call to 'New(const char*&)'
../udev.cc:19:43: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc:19:85: error: no matching function for call to 'New(const char*&)'
../udev.cc:19:85: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc:21:43: error: no matching function for call to 'New(const char*&)'
../udev.cc:21:43: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc: In function 'void PushSystemAttributes(v8::Local<v8::Object>, udev_device*)':
../udev.cc:35:43: error: no matching function for call to 'New(const char*&)'
../udev.cc:35:43: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc:35:85: error: no matching function for call to 'New(const char*&)'
../udev.cc:35:85: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc:37:43: error: no matching function for call to 'New(const char*&)'
../udev.cc:37:43: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc: At global scope:
../udev.cc:109:22: error: 'Handle' has not been declared
../udev.cc:109:28: error: expected ',' or '...' before '<' token
../udev.cc: In static member function 'static void Monitor::on_handle_event(uv_poll_t*, int, int)':
../udev.cc:59:44: error: no matching function for call to 'New(const char [8])'
../udev.cc:59:44: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc:59:109: error: no matching function for call to 'New(const char*)'
../udev.cc:59:109: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc:63:68: error: no matching function for call to 'New(const char [5])'
../udev.cc:63:68: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc:63:99: error: expected primary-expression before '>' token
../udev.cc:63:101: error: expected primary-expression before ')' token
../udev.cc:65:67: error: no matching function for call to 'New(const char*)'
../udev.cc:65:67: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc: In static member function 'static void Monitor::Init(int)':
../udev.cc:115:53: error: no matching function for call to 'New(const char [8])'
../udev.cc:115:53: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc:123:9: error: 'Set' is not a member of 'Nan'
../udev.cc:123:9: note: suggested alternatives:
/home/rex/.node-gyp/4.2.4/include/node/v8.h:3021:17: note:   'v8::Set'
/home/rex/.node-gyp/4.2.4/include/node/v8.h:3021:17: note:   'v8::Set'
../udev.cc:124:13: error: 'target' was not declared in this scope
../udev.cc:125:39: error: no matching function for call to 'New(const char [8])'
../udev.cc:125:39: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc:126:13: error: 'GetFunction' is not a member of 'Nan'
../udev.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE List(Nan::NAN_METHOD_ARGS_TYPE)':
../udev.cc:154:9: error: 'Set' is not a member of 'Nan'
../udev.cc:154:9: note: suggested alternatives:
/home/rex/.node-gyp/4.2.4/include/node/v8.h:3021:17: note:   'v8::Set'
/home/rex/.node-gyp/4.2.4/include/node/v8.h:3021:17: note:   'v8::Set'
../udev.cc:156:39: error: no matching function for call to 'New(const char [8])'
../udev.cc:156:39: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc:157:34: error: no matching function for call to 'New(const char*&)'
../udev.cc:157:34: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc:161:9: error: 'Set' is not a member of 'Nan'
../udev.cc:161:9: note: suggested alternatives:
/home/rex/.node-gyp/4.2.4/include/node/v8.h:3021:17: note:   'v8::Set'
/home/rex/.node-gyp/4.2.4/include/node/v8.h:3021:17: note:   'v8::Set'
../udev.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE GetNodeParentBySyspath(Nan::NAN_METHOD_ARGS_TYPE)':
../udev.cc:197:5: error: 'Set' is not a member of 'Nan'
../udev.cc:197:5: note: suggested alternatives:
/home/rex/.node-gyp/4.2.4/include/node/v8.h:3021:17: note:   'v8::Set'
/home/rex/.node-gyp/4.2.4/include/node/v8.h:3021:17: note:   'v8::Set'
../udev.cc:199:35: error: no matching function for call to 'New(const char [8])'
../udev.cc:199:35: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc:200:30: error: no matching function for call to 'New(const char*&)'
../udev.cc:200:30: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE GetSysattrBySyspath(Nan::NAN_METHOD_ARGS_TYPE)':
../udev.cc:228:40: error: no matching function for call to 'New(const char [8])'
../udev.cc:228:40: note: candidates are:
../node_modules/nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../node_modules/nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../node_modules/nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../node_modules/nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../node_modules/nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../node_modules/nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../node_modules/nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../node_modules/nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../node_modules/nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../node_modules/nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../udev.cc: At global scope:
../udev.cc:235:18: error: variable or field 'Init' declared void
../udev.cc:235:18: error: 'Handle' was not declared in this scope
../udev.cc:235:31: error: expected primary-expression before '>' token
../udev.cc:235:33: error: 'target' was not declared in this scope
make: *** [Release/obj.target/udev/udev.o] Error 1
make: Leaving directory `/etc/..../node_modules/node-udev/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.8.11
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /etc/..../node_modules/node-udev
gyp ERR! node -v v4.2.4
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 

npm ERR! Linux 3.8.11
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.2.4
npm ERR! npm  v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! udev@0.1.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the udev@0.1.4 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the udev package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls udev
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /etc/..../node_modules/node-udev/npm-debug.log
ChALkeR commented 8 years ago

@rexfm, I don't think that's helpful. The switch to nan2 happened after 1.4 tag.

danieloneill commented 8 years ago

I made a pull request #9 which should remedy this along with (hopefully) every node version prior to 5.3.0. Try the patch yourself (or clone my branch).

cheery commented 8 years ago

I have merged the pull request as the change was trivial and didn't require much of my attention. If you need any additional action here, I keep listening.