Coder Social home page Coder Social logo

node-posix's People

Contributors

achingbrain avatar andersbakken avatar cac04 avatar davidlehn avatar dlongley avatar eush77 avatar fdgonthier avatar grncdr avatar gui avatar ip1981 avatar jdpaton avatar melor avatar piranna avatar postwait avatar robey avatar saaros avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-posix's Issues

Can't install via npm

Hi

I am running centOs 6.5 (x64) and tried to install posix. I am getting following errors:

screenshot_4

How can I resolve?

Centos 6.5 node-gyp rebuild failed

Please help me install posix on centos 6.5
npm : 3.8.6
node: v5.12.0
node-gyp: v3.3.1

npm i
npm WARN excluding symbolic link build/Release/posix.node -> /home/vagrant/app/node_modules/.staging/posix-0732cd24/nodejs-posix/build/Release/obj.target/posix.node

[email protected] install /home/vagrant/app/node_modules/posix
node-gyp rebuild

make: Wejście do katalogu /home/vagrant/app/node_modules/posix/build' CXX(target) Release/obj.target/posix/src/posix.o In file included from /home/vagrant/.node-gyp/5.12.0/include/node/node.h:42, from ../../nan/nan.h:24, from ../src/posix.cc:1: /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:336: error: expected unqualified-id before ‘using’ /home/vagrant/.node-gyp/5.12.0/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’: /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:353: error: ‘nullptr’ was not declared in this scope /home/vagrant/.node-gyp/5.12.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’: /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:360: error: ‘nullptr’ was not declared in this scope /home/vagrant/.node-gyp/5.12.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’: /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:364: error: ‘nullptr’ was not declared in this scope /home/vagrant/.node-gyp/5.12.0/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’: /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:430: error: ‘nullptr’ was not declared in this scope /home/vagrant/.node-gyp/5.12.0/include/node/v8.h: At global scope: /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:469: error: expected unqualified-id before ‘using’ /home/vagrant/.node-gyp/5.12.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’: /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:794: error: ‘nullptr’ was not declared in this scope /home/vagrant/.node-gyp/5.12.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’: /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:819: error: ‘nullptr’ was not declared in this scope /home/vagrant/.node-gyp/5.12.0/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’: /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:831: error: ‘nullptr’ was not declared in this scope /home/vagrant/.node-gyp/5.12.0/include/node/v8.h: At global scope: /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:856: error: expected unqualified-id before ‘using’ /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:1093: error: ‘nullptr’ was not declared in this scope /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:1099: error: ‘nullptr’ was not declared in this scope /home/vagrant/.node-gyp/5.12.0/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’: /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:3204: error: ‘nullptr’ was not declared in this scope /home/vagrant/.node-gyp/5.12.0/include/node/v8.h: In member function ‘v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()’: /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:7154: error: ‘nullptr’ was not declared in this scope In file included from ../../nan/nan.h:182, from ../src/posix.cc:1: ../../nan/nan_maybe_43_inl.h: At global scope: ../../nan/nan_maybe_43_inl.h:13: error: expected unqualified-id before ‘using’ ../../nan/nan_maybe_43_inl.h:16: error: expected unqualified-id before ‘using’ ../../nan/nan_maybe_43_inl.h:19: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:24: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:31: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:36: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:41: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:46: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:51: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:60: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:65: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:70: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:77: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:84: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:92: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:99: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:109: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:115: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:119: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:126: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:131: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:136: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:140: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:146: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:151: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:157: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:163: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:169: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:175: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:181: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:187: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:195: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:202: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:206: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:210: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:214: error: expected initializer before ‘<’ token ../../nan/nan_maybe_43_inl.h:218: error: expected initializer before ‘<’ token In file included from ../../nan/nan.h:187, from ../src/posix.cc:1: ../../nan/nan_converters.h:14: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type ../../nan/nan_converters.h:14: error: expected ‘;’ before ‘<’ token ../../nan/nan_converters.h:16: error: ISO C++ forbids declaration of ‘Maybe’ with no type ../../nan/nan_converters.h:16: error: expected ‘;’ before ‘<’ token ../../nan/nan_converters.h:26: error: ‘return_t’ does not name a type ../../nan/nan_converters.h:27: error: ‘return_t’ does not name a type ../../nan/nan_converters.h:28: error: ‘return_t’ does not name a type ../../nan/nan_converters.h:29: error: ‘return_t’ does not name a type ../../nan/nan_converters.h:30: error: ‘return_t’ does not name a type ../../nan/nan_converters.h:31: error: ‘return_t’ does not name a type ../../nan/nan_converters.h:32: error: ‘return_t’ does not name a type ../../nan/nan_converters.h:42: error: ‘return_t’ does not name a type ../../nan/nan_converters.h:43: error: ‘return_t’ does not name a type ../../nan/nan_converters.h:44: error: ‘return_t’ does not name a type ../../nan/nan_converters.h:45: error: ‘return_t’ does not name a type ../../nan/nan_converters.h:46: error: ‘return_t’ does not name a type In file included from ../../nan/nan_converters.h:59, from ../../nan/nan.h:187, from ../src/posix.cc:1: ../../nan/nan_converters_43_inl.h:18: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Boolean>’ does not name a type ../../nan/nan_converters_43_inl.h:19: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Number>’ does not name a type ../../nan/nan_converters_43_inl.h:20: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::String>’ does not name a type ../../nan/nan_converters_43_inl.h:21: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Object>’ does not name a type ../../nan/nan_converters_43_inl.h:22: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Integer>’ does not name a type ../../nan/nan_converters_43_inl.h:23: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Uint32>’ does not name a type ../../nan/nan_converters_43_inl.h:24: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Int32>’ does not name a type ../../nan/nan_converters_43_inl.h:34: error: ‘return_t’ in class ‘Nan::imp::ToFactory<bool>’ does not name a type ../../nan/nan_converters_43_inl.h:35: error: ‘return_t’ in class ‘Nan::imp::ToFactory<double>’ does not name a type ../../nan/nan_converters_43_inl.h:36: error: ‘return_t’ in class ‘Nan::imp::ToFactory<long int>’ does not name a type ../../nan/nan_converters_43_inl.h:37: error: ‘return_t’ in class ‘Nan::imp::ToFactory<unsigned int>’ does not name a type ../../nan/nan_converters_43_inl.h:38: error: ‘return_t’ in class ‘Nan::imp::ToFactory<int>’ does not name a type In file included from ../../nan/nan.h:188, from ../src/posix.cc:1: ../../nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]’: ../../nan/nan_new.h:21: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’ ../../nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]’: ../../nan/nan_new.h:28: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’ ../../nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]’: ../../nan/nan_new.h:35: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’ ../../nan/nan_new.h: At global scope: ../../nan/nan_new.h:43: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type ../../nan/nan_new.h:43: error: expected ‘;’ before ‘<’ token ../../nan/nan_new.h:75: error: ‘return_t’ does not name a type ../../nan/nan_new.h:141: error: ‘return_t’ does not name a type ../../nan/nan_new.h:147: error: ‘return_t’ does not name a type ../../nan/nan_new.h:148: error: ‘return_t’ does not name a type ../../nan/nan_new.h:160: error: ‘return_t’ does not name a type ../../nan/nan_new.h:161: error: ‘return_t’ does not name a type ../../nan/nan_new.h:162: error: ‘return_t’ does not name a type ../../nan/nan_new.h:163: error: ‘return_t’ does not name a type ../../nan/nan_new.h:165: error: ‘return_t’ does not name a type ../../nan/nan_new.h:166: error: ‘return_t’ does not name a type ../../nan/nan_new.h:182: error: ‘return_t’ does not name a type ../../nan/nan_new.h:183: error: ‘return_t’ does not name a type In file included from ../../nan/nan_new.h:189, from ../../nan/nan.h:188, from ../src/posix.cc:1: ../../nan/nan_implementation_12_inl.h:56: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Date>’ does not name a type ../../nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::Function> Nan::imp::Factory<v8::Function>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’: ../../nan/nan_implementation_12_inl.h:90: error: ‘NewInstance’ was not declared in this scope ../../nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::FunctionTemplate> Nan::imp::Factory<v8::FunctionTemplate>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>, v8::Local<v8::Signature>)’: ../../nan/nan_implementation_12_inl.h:118: error: ‘NewInstance’ was not declared in this scope ../../nan/nan_implementation_12_inl.h: At global scope: ../../nan/nan_implementation_12_inl.h:197: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::RegExp>’ does not name a type ../../nan/nan_implementation_12_inl.h:216: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Script>’ does not name a type ../../nan/nan_implementation_12_inl.h:222: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Script>’ does not name a type ../../nan/nan_implementation_12_inl.h:254: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../../nan/nan_implementation_12_inl.h:262: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../../nan/nan_implementation_12_inl.h:268: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../../nan/nan_implementation_12_inl.h:275: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../../nan/nan_implementation_12_inl.h:281: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../../nan/nan_implementation_12_inl.h:286: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../../nan/nan_implementation_12_inl.h:347: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::UnboundScript>’ does not name a type ../../nan/nan_implementation_12_inl.h:354: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::UnboundScript>’ does not name a type In file included from ../../nan/nan.h:188, from ../src/posix.cc:1: ../../nan/nan_new.h:291: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../../nan/nan_new.h:297: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../../nan/nan_new.h:303: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../../nan/nan_new.h:309: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../../nan/nan_new.h:315: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../../nan/nan_new.h:321: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type ../../nan/nan_new.h:327: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::RegExp>’ does not name a type In file included from ../src/posix.cc:1: ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::Error(const char*)’: ../../nan/nan.h:639: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: In function ‘void Nan::ThrowError(const char*)’: ../../nan/nan.h:639: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::RangeError(const char*)’: ../../nan/nan.h:640: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: In function ‘void Nan::ThrowRangeError(const char*)’: ../../nan/nan.h:640: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::ReferenceError(const char*)’: ../../nan/nan.h:641: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: In function ‘void Nan::ThrowReferenceError(const char*)’: ../../nan/nan.h:641: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::SyntaxError(const char*)’: ../../nan/nan.h:642: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: In function ‘void Nan::ThrowSyntaxError(const char*)’: ../../nan/nan.h:642: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::TypeError(const char*)’: ../../nan/nan.h:643: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: In function ‘void Nan::ThrowTypeError(const char*)’: ../../nan/nan.h:643: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: At global scope: ../../nan/nan.h:651: error: expected initializer before ‘<’ token ../../nan/nan.h:673: error: expected initializer before ‘<’ token ../../nan/nan.h:689: error: expected initializer before ‘<’ token ../../nan/nan.h:702: error: expected initializer before ‘<’ token ../../nan/nan.h:719: error: expected initializer before ‘<’ token ../../nan/nan.h:725: error: expected initializer before ‘<’ token ../../nan/nan.h:733: error: expected initializer before ‘<’ token ../../nan/nan.h:740: error: expected initializer before ‘<’ token ../../nan/nan.h:746: error: expected initializer before ‘<’ token /home/vagrant/.node-gyp/5.12.0/include/node/v8.h: In member function ‘void Nan::Callback::SetFunction(const v8::Local<v8::Function>&)’: /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:3019: error: argument dependent lookup finds ‘class v8::Set’ ../../nan/nan.h:1366: error: in call to ‘Set’ ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’: ../../nan/nan.h:1488: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’: ../../nan/nan.h:1506: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: In member function ‘virtual void Nan::AsyncWorker::HandleErrorCallback()’: ../../nan/nan.h:1540: error: no matching function for call to ‘New(const char*)’ ../../nan/nan.h: In function ‘void Nan::SetMethod(const T&, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’: ../../nan/nan.h:1829: error: there are no arguments to ‘GetFunction’ that depend on a template parameter, so a declaration of ‘GetFunction’ must be available ../../nan/nan.h:1829: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) ../../nan/nan.h:1830: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: In function ‘void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’: ../../nan/nan.h:1842: error: ‘GetFunction’ was not declared in this scope ../../nan/nan.h:1843: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’: ../../nan/nan.h:1868: error: ‘NewInstance’ was not declared in this scope ../../nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’: ../../nan/nan.h:1911: error: ‘NewInstance’ was not declared in this scope ../../nan/nan.h: In function ‘void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)’: ../../nan/nan.h:1959: error: ‘NewInstance’ was not declared in this scope ../../nan/nan.h: In function ‘void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)’: ../../nan/nan.h:2029: error: ‘NewInstance’ was not declared in this scope In file included from ../src/posix.cc:1: ../../nan/nan.h: In function ‘void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’: ../../nan/nan.h:2090: error: no matching function for call to ‘New(const char*&)’ ../../nan/nan.h:2091: error: ‘GetFunction’ was not declared in this scope /home/vagrant/.node-gyp/5.12.0/include/node/v8.h:3019: error: argument dependent lookup finds ‘class v8::Set’ ../../nan/nan.h:2091: error: in call to ‘Set’ ../../nan/nan.h: In constructor ‘Nan::Tap::Tap(v8::Local<v8::Value>)’: ../../nan/nan.h:2098: error: no matching function for call to ‘To(v8::Local<v8::Value>&)’ ../../nan/nan.h: In member function ‘void Nan::Tap::ok(bool, const char*)’: ../../nan/nan.h:2111: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../../nan/nan.h: In member function ‘void Nan::Tap::pass(const char*)’: ../../nan/nan.h:2117: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’ ../src/posix.cc: At global scope: ../src/posix.cc:13: error: ‘v8::Handle’ has not been declared ../src/posix.cc:148: error: expected initializer before ‘<’ token make: *** [Release/obj.target/posix/src/posix.o] Błąd 1 make: Opuszczenie katalogu/home/vagrant/app/node_modules/posix/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 2.6.32-642.1.1.el6.x86_64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/vagrant/app/node_modules/posix
gyp ERR! node -v v5.12.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
[email protected] /home/vagrant/app
└── (empty)

npm WARN [email protected] requires a peer of stream-browserify@* but none was installed.
npm ERR! Linux 2.6.32-642.1.1.el6.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i"
npm ERR! node v5.12.0
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the posix 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 information on how to open an issue for this project with:
npm ERR! npm bugs posix
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls posix
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/vagrant/app/npm-debug.log
npm ERR! code 1

getdomainname setdomainname not POSIX

You have getdomainname and setdomainname in here, but those are not in the POSIX spec. This won't compile on some POSIX compliant systems with those in there. Can those be removed or made conditional?

Not compatible with Node.js 7

> [email protected] install /home/piranna/github/nodeos-usersfs/build/nocona/usersfs/root/lib/node_modules/nodeos-reverse-proxy/node_modules/posix
> node-gyp rebuild

make: se entra en el directorio '/home/piranna/github/nodeos-usersfs/build/nocona/usersfs/root/lib/node_modules/nodeos-reverse-proxy/node_modules/posix/build'
  CXX(target) Release/obj.target/posix/src/posix.o
posix.target.mk:94: fallo en las instrucciones para el objetivo 'Release/obj.target/posix/src/posix.o'
make: *** [Release/obj.target/posix/src/posix.o] Error 127
make: se sale del directorio '/home/piranna/github/nodeos-usersfs/build/nocona/usersfs/root/lib/node_modules/nodeos-reverse-proxy/node_modules/posix/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/piranna/github/nodeos-usersfs/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.10.0-23-generic
gyp ERR! command "/usr/bin/nodejs" "/home/piranna/github/nodeos-usersfs/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/piranna/github/nodeos-usersfs/build/nocona/usersfs/root/lib/node_modules/nodeos-reverse-proxy/node_modules/posix
gyp ERR! node -v v7.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/piranna/.npm/_logs/2017-06-22T19_23_22_059Z-debug.log

Cannot npm install [email protected] on Centos6.5

Failing on npm install on centos6.5

Error: Failed at the [email protected] install script 'node-gyp rebuild'

[email protected] install /home/vagrant/blah/node_modules/posix
node-gyp rebuild

make: Entering directory /home/vagrant/blah/node_modules/posix/build' CXX(target) Release/obj.target/posix/src/posix.o ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_update_swap_constants(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:653:78: error: ‘SWAP_FLAG_DISCARD’ was not declared in this scope obj->Set(Nan::New<String>("discard").ToLocalChecked(), Nan::New<Integer>(SWAP_FLAG_DISCARD)); ^ make: *** [Release/obj.target/posix/src/posix.o] Error 1 make: Leaving directory/home/vagrant/blah/node_modules/posix/build'

where the message go in OS X ML?

hi,
with following code to log, but can not find anything in /var/log/system.log, /var/log/appfirewall.log, got any idea where I can find? thanks,

var posix = require('posix');

posix.openlog('test-node-syslog', { cons: true, ndelay: true, pid: true }, 'local0');
posix.setlogmask({ info: 1, debug: 1 });
posix.setlogmask({ emerg: 1, alert: 1, crit: 1, err: 1, warning: 1, notice: 1, info: 1, debug: 1 });
posix.syslog('info', 'hello from node-posix (info)');
posix.closelog();
```js

node-gyp building issue with io.js v1.4.1

OS: Debian 7 x64

$ uname -a
Linux xxx 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux
> [email protected] install /var/services/meta-dns/node_modules/posix
> node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
make: Entering directory `/var/services/meta-dns/node_modules/posix/build'
  CXX(target) Release/obj.target/posix/src/posix.o
../src/posix.cc:16:41: error: 'Arguments' does not name a type
../src/posix.cc:16:52: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_getppid(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:17:17: error: within this context
../src/posix.cc:19:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:20:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:20:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:23:18: error: 'class v8::HandleScope' has no member named 'Close'
../src/posix.cc:23:46: error: no matching function for call to 'v8::Integer::New(__pid_t)'
../src/posix.cc:23:46: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc: At global scope:
../src/posix.cc:26:41: error: 'Arguments' does not name a type
../src/posix.cc:26:52: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_getpgid(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:27:17: error: within this context
../src/posix.cc:29:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:30:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:30:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:33:16: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:34:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:34:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:37:18: error: 'class v8::HandleScope' has no member named 'Close'
../src/posix.cc:37:51: error: invalid types 'const int[int]' for array subscript
../src/posix.cc: At global scope:
../src/posix.cc:40:41: error: 'Arguments' does not name a type
../src/posix.cc:40:52: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_geteuid(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:41:17: error: within this context
../src/posix.cc:43:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:44:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:44:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:47:18: error: 'class v8::HandleScope' has no member named 'Close'
../src/posix.cc:47:46: error: no matching function for call to 'v8::Integer::New(__uid_t)'
../src/posix.cc:47:46: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc: At global scope:
../src/posix.cc:50:41: error: 'Arguments' does not name a type
../src/posix.cc:50:52: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_getegid(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:51:17: error: within this context
../src/posix.cc:53:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:54:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:54:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:57:18: error: 'class v8::HandleScope' has no member named 'Close'
../src/posix.cc:57:46: error: no matching function for call to 'v8::Integer::New(__gid_t)'
../src/posix.cc:57:46: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc: At global scope:
../src/posix.cc:60:40: error: 'Arguments' does not name a type
../src/posix.cc:60:51: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_setsid(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:61:17: error: within this context
../src/posix.cc:63:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:64:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:64:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:69:62: error: 'ThrowException' was not declared in this scope
../src/posix.cc:72:18: error: 'class v8::HandleScope' has no member named 'Close'
../src/posix.cc:72:40: error: no matching function for call to 'v8::Integer::New(pid_t&)'
../src/posix.cc:72:40: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc: At global scope:
../src/posix.cc:75:40: error: 'Arguments' does not name a type
../src/posix.cc:75:51: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
../src/posix.cc: In function 'v8::Handle<v8::Value> node_chroot(const int&)':
../src/posix.cc:76:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:77:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:77:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:80:16: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:81:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:81:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:84:38: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:88:71: error: 'ThrowException' was not declared in this scope
../src/posix.cc:92:62: error: 'ThrowException' was not declared in this scope
../src/posix.cc:95:22: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:323:28: note: declared here
../src/posix.cc: In function 'v8::Handle<v8::Value> rlimit_value(rlim_t)':
../src/posix.cc:120:21: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Null(v8::Isolate*)'
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:324:28: note: declared here
../src/posix.cc:122:41: error: no matching function for call to 'v8::Number::New(double)'
../src/posix.cc:122:41: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2291:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2291:24: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc: At global scope:
../src/posix.cc:126:43: error: 'Arguments' does not name a type
../src/posix.cc:126:54: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_getrlimit(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:127:17: error: within this context
../src/posix.cc:129:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:130:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:130:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:134:16: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:135:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:135:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:138:41: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:149:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:149:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:153:65: error: 'ThrowException' was not declared in this scope
../src/posix.cc:156:38: error: no matching function for call to 'v8::Object::New()'
../src/posix.cc:156:38: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2691:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2691:24: note:   candidate expects 1 argument, 0 provided
../src/posix.cc:157:15: error: 'New' is not a member of 'v8::String'
../src/posix.cc:158:15: error: 'New' is not a member of 'v8::String'
../src/posix.cc:160:18: error: 'class v8::HandleScope' has no member named 'Close'
../src/posix.cc: At global scope:
../src/posix.cc:163:43: error: 'Arguments' does not name a type
../src/posix.cc:163:54: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_setrlimit(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:164:17: error: within this context
../src/posix.cc:166:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:167:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:167:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:170:41: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:182:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:182:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:185:16: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:186:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:186:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:189:36: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:190:30: error: 'New' is not a member of 'v8::String'
../src/posix.cc:191:30: error: 'New' is not a member of 'v8::String'
../src/posix.cc:222:69: error: 'ThrowException' was not declared in this scope
../src/posix.cc:229:65: error: 'ThrowException' was not declared in this scope
../src/posix.cc:232:22: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:323:28: note: declared here
../src/posix.cc: At global scope:
../src/posix.cc:235:42: error: 'Arguments' does not name a type
../src/posix.cc:235:53: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_getpwnam(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:236:17: error: within this context
../src/posix.cc:238:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:239:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:239:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:244:14: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:245:30: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:247:68: error: 'ThrowException' was not declared in this scope
../src/posix.cc:250:20: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:251:39: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:254:68: error: 'ThrowException' was not declared in this scope
../src/posix.cc:258:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:258:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:262:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:262:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:265:37: error: no matching function for call to 'v8::Object::New()'
../src/posix.cc:265:37: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2691:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2691:24: note:   candidate expects 1 argument, 0 provided
../src/posix.cc:266:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:266:35: error: 'New' is not a member of 'v8::String'
../src/posix.cc:267:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:267:37: error: 'New' is not a member of 'v8::String'
../src/posix.cc:268:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:268:57: error: no matching function for call to 'v8::Number::New(__uid_t&)'
../src/posix.cc:268:57: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2291:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2291:24: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:269:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:269:57: error: no matching function for call to 'v8::Number::New(__gid_t&)'
../src/posix.cc:269:57: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2291:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2291:24: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:270:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:270:36: error: 'New' is not a member of 'v8::String'
../src/posix.cc:271:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:271:36: error: 'New' is not a member of 'v8::String'
../src/posix.cc:272:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:272:34: error: 'New' is not a member of 'v8::String'
../src/posix.cc:274:18: error: 'class v8::HandleScope' has no member named 'Close'
../src/posix.cc: At global scope:
../src/posix.cc:277:42: error: 'Arguments' does not name a type
../src/posix.cc:277:53: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_getgrnam(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:278:17: error: within this context
../src/posix.cc:280:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:281:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:281:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:286:14: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:287:30: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:289:68: error: 'ThrowException' was not declared in this scope
../src/posix.cc:292:20: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:293:39: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:296:68: error: 'ThrowException' was not declared in this scope
../src/posix.cc:300:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:300:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:304:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:304:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:307:37: error: no matching function for call to 'v8::Object::New()'
../src/posix.cc:307:37: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2691:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2691:24: note:   candidate expects 1 argument, 0 provided
../src/posix.cc:308:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:308:35: error: 'New' is not a member of 'v8::String'
../src/posix.cc:309:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:309:37: error: 'New' is not a member of 'v8::String'
../src/posix.cc:310:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:310:57: error: no matching function for call to 'v8::Number::New(__gid_t&)'
../src/posix.cc:310:57: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2291:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2291:24: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:312:39: error: no matching function for call to 'v8::Array::New()'
../src/posix.cc:312:39: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2720:23: note: static v8::Local<v8::Array> v8::Array::New(v8::Isolate*, int)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2720:23: note:   candidate expects 2 arguments, 0 provided
../src/posix.cc:315:28: error: 'New' is not a member of 'v8::String'
../src/posix.cc:317:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:319:18: error: 'class v8::HandleScope' has no member named 'Close'
../src/posix.cc: At global scope:
../src/posix.cc:322:44: error: 'Arguments' does not name a type
../src/posix.cc:322:55: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_initgroups(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:323:17: error: within this context
../src/posix.cc:325:14: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:326:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:326:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:329:16: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:329:40: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:330:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:330:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:334:34: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:335:33: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:336:66: error: 'ThrowException' was not declared in this scope
../src/posix.cc:339:22: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:323:28: note: declared here
../src/posix.cc: At global scope:
../src/posix.cc:342:41: error: 'Arguments' does not name a type
../src/posix.cc:342:52: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_seteuid(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:343:17: error: within this context
../src/posix.cc:345:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:346:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:346:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:349:22: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:350:63: error: 'ThrowException' was not declared in this scope
../src/posix.cc:353:22: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:323:28: note: declared here
../src/posix.cc: At global scope:
../src/posix.cc:356:41: error: 'Arguments' does not name a type
../src/posix.cc:356:52: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_setegid(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:357:17: error: within this context
../src/posix.cc:359:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:360:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:360:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:363:22: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:364:63: error: 'ThrowException' was not declared in this scope
../src/posix.cc:367:22: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:323:28: note: declared here
../src/posix.cc: At global scope:
../src/posix.cc:370:42: error: 'Arguments' does not name a type
../src/posix.cc:370:53: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_setregid(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:371:17: error: within this context
../src/posix.cc:373:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:374:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:374:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:377:23: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:377:46: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:378:64: error: 'ThrowException' was not declared in this scope
../src/posix.cc:381:22: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:323:28: note: declared here
../src/posix.cc: At global scope:
../src/posix.cc:384:42: error: 'Arguments' does not name a type
../src/posix.cc:384:53: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_setreuid(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:385:17: error: within this context
../src/posix.cc:387:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:388:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:388:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:391:23: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:391:46: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:392:64: error: 'ThrowException' was not declared in this scope
../src/posix.cc:395:22: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:323:28: note: declared here
../src/posix.cc: At global scope:
../src/posix.cc:403:41: error: 'Arguments' does not name a type
../src/posix.cc:403:52: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_openlog(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:404:17: error: within this context
../src/posix.cc:406:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:407:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:407:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:410:35: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:413:15: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:413:39: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:414:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:414:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:417:33: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:417:56: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:419:22: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:323:28: note: declared here
../src/posix.cc: At global scope:
../src/posix.cc:422:42: error: 'Arguments' does not name a type
../src/posix.cc:422:53: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_closelog(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:423:17: error: within this context
../src/posix.cc:425:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:426:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:426:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:432:22: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:323:28: note: declared here
../src/posix.cc: At global scope:
../src/posix.cc:435:40: error: 'Arguments' does not name a type
../src/posix.cc:435:51: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_syslog(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:436:17: error: within this context
../src/posix.cc:438:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:439:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:439:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:442:37: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:444:18: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:446:22: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:323:28: note: declared here
../src/posix.cc: At global scope:
../src/posix.cc:449:44: error: 'Arguments' does not name a type
../src/posix.cc:449:55: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_setlogmask(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:450:17: error: within this context
../src/posix.cc:452:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:453:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:453:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:456:18: error: 'class v8::HandleScope' has no member named 'Close'
../src/posix.cc:456:54: error: invalid types 'const int[int]' for array subscript
../src/posix.cc: At global scope:
../src/posix.cc:463:57: error: 'Arguments' does not name a type
../src/posix.cc:463:68: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_update_syslog_constants(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:464:17: error: within this context
../src/posix.cc:466:14: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:466:40: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:467:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:467:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:470:31: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:471:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:471:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:471:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:471:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:471:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:471:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:472:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:472:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:472:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:472:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:472:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:472:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:473:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:473:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:473:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:473:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:473:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:473:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:474:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:474:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:474:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:474:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:474:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:474:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:475:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:475:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:475:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:475:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:475:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:475:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:476:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:476:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:476:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:476:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:476:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:476:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:477:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:477:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:477:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:477:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:477:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:477:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:478:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:478:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:478:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:478:5: error: 'New' is not a member of 'v8::String'
../src/posix.cc:478:5: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:478:5: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:481:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:481:56: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:481:56: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:483:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:483:64: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:483:64: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:485:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:485:56: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:485:56: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:486:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:486:60: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:486:60: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:488:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:488:54: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:488:54: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:490:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:490:56: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:490:56: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:491:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:491:54: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:491:54: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:492:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:492:56: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:492:56: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:493:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:493:56: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:493:56: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:494:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:494:60: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:494:60: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:495:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:495:56: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:495:56: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:496:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:496:56: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:496:56: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:497:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:497:60: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:497:60: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:498:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:498:60: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:498:60: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:499:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:499:60: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:499:60: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:500:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:500:60: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:500:60: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:501:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:501:60: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:501:60: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:502:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:502:60: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:502:60: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:503:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:503:60: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:503:60: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:504:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:504:60: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:504:60: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:507:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:507:54: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:507:54: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:508:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:508:56: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:508:56: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:509:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:509:60: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:509:60: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:510:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:510:60: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:510:60: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:511:14: error: 'New' is not a member of 'v8::String'
../src/posix.cc:511:60: error: no matching function for call to 'v8::Integer::New(int)'
../src/posix.cc:511:60: note: candidate is:
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:2304:25: note:   candidate expects 2 arguments, 1 provided
../src/posix.cc:513:22: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:323:28: note: declared here
../src/posix.cc: At global scope:
../src/posix.cc:516:45: error: 'Arguments' does not name a type
../src/posix.cc:516:56: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_gethostname(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:517:17: error: within this context
../src/posix.cc:519:13: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:520:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:520:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:530:67: error: 'ThrowException' was not declared in this scope
../src/posix.cc:533:18: error: 'class v8::HandleScope' has no member named 'Close'
../src/posix.cc:533:24: error: 'New' is not a member of 'v8::String'
../src/posix.cc: At global scope:
../src/posix.cc:536:45: error: 'Arguments' does not name a type
../src/posix.cc:536:56: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> node_sethostname(const int&)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:537:17: error: within this context
../src/posix.cc:539:14: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../src/posix.cc:540:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:540:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:543:16: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:544:16: error: 'New' is not a member of 'v8::String'
../src/posix.cc:544:16: error: 'ThrowException' was not declared in this scope
../src/posix.cc:547:33: error: invalid types 'const int[int]' for array subscript
../src/posix.cc:551:67: error: 'ThrowException' was not declared in this scope
../src/posix.cc:554:18: error: 'class v8::HandleScope' has no member named 'Close'
../src/posix.cc:554:34: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
In file included from /home/unclechu/.node-gyp/1.4.1/src/node.h:40:0,
                 from ../src/posix.cc:1:
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:323:28: note: declared here
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h: In function 'void init(v8::Handle<v8::Object>)':
/home/unclechu/.node-gyp/1.4.1/deps/v8/include/v8.h:878:13: error: 'v8::HandleScope::HandleScope()' is protected
../src/posix.cc:559:17: error: within this context
../src/posix.cc:560:50: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [7], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:560:50: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:560:50: note:   cannot convert 'node_chroot' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:561:54: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [9], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:561:54: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:561:54: note:   cannot convert 'node_closelog' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:562:52: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [8], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:562:52: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:562:52: note:   cannot convert 'node_getegid' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:563:52: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [8], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:563:52: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:563:52: note:   cannot convert 'node_geteuid' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:564:52: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [8], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:564:52: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:564:52: note:   cannot convert 'node_getpgid' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:565:52: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [8], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:565:52: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:565:52: note:   cannot convert 'node_getppid' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:566:54: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [9], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:566:54: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:566:54: note:   cannot convert 'node_getpwnam' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:567:54: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [9], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:567:54: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:567:54: note:   cannot convert 'node_getgrnam' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:568:56: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [10], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:568:56: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:568:56: note:   cannot convert 'node_getrlimit' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:569:58: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [11], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:569:58: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:569:58: note:   cannot convert 'node_initgroups' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:570:52: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [8], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:570:52: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:570:52: note:   cannot convert 'node_openlog' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:571:52: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [8], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:571:52: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:571:52: note:   cannot convert 'node_setegid' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:572:52: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [8], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:572:52: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:572:52: note:   cannot convert 'node_seteuid' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:573:58: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [11], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:573:58: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:573:58: note:   cannot convert 'node_setlogmask' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:574:54: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [9], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:574:54: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:574:54: note:   cannot convert 'node_setregid' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:575:54: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [9], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:575:54: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:575:54: note:   cannot convert 'node_setreuid' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:576:56: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [10], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:576:56: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:576:56: note:   cannot convert 'node_setrlimit' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:577:50: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [7], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:577:50: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:577:50: note:   cannot convert 'node_setsid' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:578:50: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [7], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:578:50: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:578:50: note:   cannot convert 'node_syslog' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:580:49: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [24], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:580:49: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:580:49: note:   cannot convert 'node_update_syslog_constants' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:581:60: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [12], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:581:60: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:581:60: note:   cannot convert 'node_gethostname' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
../src/posix.cc:582:60: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [12], v8::Handle<v8::Value> (&)(const int&))'
../src/posix.cc:582:60: note: candidate is:
In file included from ../src/posix.cc:1:0:
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/unclechu/.node-gyp/1.4.1/src/node.h:206:13: note:   template argument deduction/substitution failed:
../src/posix.cc:582:60: note:   cannot convert 'node_sethostname' (type 'v8::Handle<v8::Value>(const int&)') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}'
make: *** [Release/obj.target/posix/src/posix.o] Error 1
make: Leaving directory `/var/services/meta-dns/node_modules/posix/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/opt/iojs-v1.4.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:169:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1044:12)
gyp ERR! System Linux 3.2.0-4-amd64
gyp ERR! command "node" "/opt/iojs-v1.4.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/services/meta-dns/node_modules/posix
gyp ERR! node -v v1.4.1
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 
npm ERR! Linux 3.2.0-4-amd64
npm ERR! argv "/usr/local/bin/iojs" "/usr/local/bin/npm" "install"
npm ERR! node v1.4.1
npm ERR! npm  v2.6.0
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the posix 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 posix
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /var/services/meta-dns/npm-debug.log

"openlog: invalid argument values"

Hi Mika,

I had an issue while trying to use openlog(). When I call it like "posix.openlog('test', {}, 'auth');" it reports an error of "openlog: invalid argument values". The exact code I'm using is below ...

I'm using node v0.4.11 on an Ubuntu 11.10 Amazon Web Services instance. I installed the module using "npm build" and "npm install" from a recent git clone. The following results in the error:

var posix = require('posix'); posix.openlog('test', {}, 'auth');

Even if I specify {pid:true} as second param it still errors. I do see that the LOG_PID constant (and others) is being used and mapped to "pid" so it doesn't appear to be a simple typo.

Any insight?

Make the `uid` and `gid` parameters useful on Windows

Some core Node.js modules partially expose POSIX APIs, but do not implement all its features. For example, fs.stat returns the owner IDs on POSIX platforms only. The stat.uid and stat.gid members are always zero on Windows; user and group identifiers on Windows are SIDs which are not exposed. It means than a cross-platform application needs a wrapper module.

I wonder if it is possible to use the existing POSIX interface to support both POSIX and Windows platforms. The identifiers have different type, but having JavaScript not strong-typed, we wouldn't need a new interface, would we? Having uid and gid with different value types on different platforms may not feel right, but I find the idea worth a try - why learning a new module interface? I commented on it elsewhere too.

I intend to look at the existing POSIX methods and make them work with SIDs on Windows, so that the well-known interface can be just used in the cross-platform code, So far, I implemented:

process: getuid, getgid, getgroups
fs:      stat, lstat, fstat, chown, lchown, fchown // to fs-ext
posix:   getpwnam, getpwuid, getgrnam, getgrgid

I could create a new module like posix-ext extending the posix module and patching the particular methods, or offer them to the posix module. Would you find them and the idea of using SIDs for uid and gid on Windows fitting for this module?

"Missing symbol" error under node v0.10.10

Hi! Thanks for putting together node-posix - I use it all the time. :)

After updating the node version I was using, I started hitting a Symbol posix_module not found error when trying to require posix.

(As an aside, this was initially and erroneously reported as a missing file error: in posix/lib/posix/index.js you've got a try/catch up the top which falsely interprets every require error as a missing file, and then attempts to load an incorrect path - which in this case is actually missing. I can submit a pull request to correct this if you'd like.)

I'm not that familiar with gyp - so I'm a bit lost as to how to correct this issue. Any assistance you could provide would be much appreciated.

Unable to install posix module on Linux system under root permission

How to fix npm install posin under root rights?

gyp WARN EACCES user "root" does not have permission to access the dev dir "/home/.../.../.../node_modules/posix/.node-gyp/10.15.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/..../.../.../node_modules/posix/.node-gyp"

Thanks.

Build for macOS

I am getting the following error in macOS.

I have tried running npm rebuild with no luck so far.

Error: The module '/Users/me/node_modules/posix/build/Release/posix.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at Object.Module._extensions..node (module.js:682:18)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at load_extension (/Users/me/node_modules/posix/lib/posix/index.js:16:20)

making getdtablesize available

Is it possible to make getdtablesize() available as well? According to 1.5 Managing File Descriptors Safely of the Secure Programming Cookbook it is good practice to make sure stdin, stdout and stderr are always open, at least to /dev/null in order to prevent writing of data to unintended locations.

It looks like there currently is no way to get the open file descriptors for a process in node. Unfortunately I don't have the C skills to do it myself.

Bogus results for getrlimit?

This doesn't look correct:

$ node
> var posix = require('posix')
undefined
> posix.getrlimit('nofile')
{ soft: 256, hard: 4294967295 }

On OSX Lion, 10.7.5 using node-posix v0.0.10

Segmentation fault

jsut one line in my index.js:var posix = require('posix');
os:FreeBSD 8.3
node version :0.6.13
GNU MAKE:3.8.2

Installing problems with posix in NodeJs 6.1.0

Posix installed as optional dep.
OS: (Ubuntu/Linaro 4.6.3-1ubuntu5)
NodeJs 6.1.0

There is a log from terminal:

make: *** [Release/obj.target/posix/src/posix.o] Error 1
make: Leaving directory `/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/tars-cli/node_modules/posix/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 3.13.0-40-generic
gyp ERR! command "/home/travis/.nvm/versions/node/v6.1.0/bin/node" "/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/tars-cli/node_modules/posix
gyp ERR! node -v v6.1.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok 
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild`
npm WARN install:[email protected] Exit status 1

You can get more info from https://travis-ci.org/tars/tars-cli/jobs/129779806

Question limiting address space

Hi,

I'm trying to limit the memory usage of a node process and I have just made a proof of concept and it seems not to work for me. I just open the node REPL typing "node" in the command line. I check the memory usage and it's around 9Mb. Then I run

var posix = require('posix')
posix.setrlimit('as', { hard: 1024*1024*10, soft: 1024*1024*10 }) // 10Mb
var arr = []; for (var i = 0; i<50000000; i++) arr.push('foobar')

The process is now using around 700Mb. I'm running this under MacOSX. Am I missing something?

Thanks a lot.

Getting to work under Node v0.11.5

Installing posix v1.0.2 dies with the following errors (shortened):

> node-gyp rebuild

  CXX(target) Release/obj.target/posix/src/posix.o
../src/posix.cc:557:5: error: no matching function for call to
      'NODE_SET_METHOD'
    NODE_SET_METHOD(target, "chroot", node_chroot);
    ^~~~~~~~~~~~~~~
/Users/user/.node-gyp/0.11.5/src/node.h:149:25: note: expanded from macro
      'NODE_SET_METHOD'
#define NODE_SET_METHOD node::NODE_SET_METHOD
                        ^~~~~~~~~~~~~~~~~~~~~
/Users/user/.node-gyp/0.11.5/src/node.h:140:13: note: candidate function [with
      TypeName = v8::Handle<v8::Object>] not viable: no known conversion from
      'Handle<v8::Value> (const v8::Arguments &)' to 'v8::FunctionCallback'
      (aka 'void (*)(const FunctionCallbackInfo<v8::Value> &)') for 3rd
      argument
inline void NODE_SET_METHOD(const TypeName& recv,
            ^
../src/posix.cc:558:5: error: no matching function for call to
      'NODE_SET_METHOD'
    NODE_SET_METHOD(target, "closelog", node_closelog);
    ^~~~~~~~~~~~~~~

...

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/posix/src/posix.o] Error 1

Because Node v0.11.5 brings generators to the table, would love to get the posix module working as well. Let me know if you need any further intel. Thanks!

Error building [email protected] with Node v4.0.0 on Mac OS X 10.10

My configuration:

node v4.0.0
node-gyp v2.0.2
xcodebuild 5.0.1
gcc (GCC) 4.4.7
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin14.5.0

Output of npm install posix:

$ npm install posix
|
> [email protected] install /Users/delphine/Development/Git/node_modules/posix
> node-gyp rebuild

  CXX(target) Release/obj.target/posix/src/posix.o
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                        ^
../node_modules/nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
                        ^
../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace 'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
../node_modules/nan/nan.h:672:12: error: no matching function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
           ^~~~~~~~~~~~~~~~~
/Users/delphine/.node-gyp/4.0.0/src/node_buffer.h:31:40: note: candidate function not viable: no known conversion from 'uint32_t'
      (aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/delphine/.node-gyp/4.0.0/src/node_buffer.h:43:40: note: candidate function not viable: 2nd argument ('const char *') would lose
      const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/delphine/.node-gyp/4.0.0/src/node_buffer.h:28:40: note: candidate function not viable: requires 2 arguments, but 3 were
      provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                       ^
/Users/delphine/.node-gyp/4.0.0/src/node_buffer.h:36:40: note: candidate function not viable: requires 5 arguments, but 3 were
      provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h:676:12: error: no viable conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/delphine/.node-gyp/4.0.0/deps/v8/include/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not viable: no
      known conversion from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/delphine/.node-gyp/4.0.0/deps/v8/include/v8.h:210:7: note: candidate constructor (the implicit move constructor) not viable: no
      known conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&' for 1st argument
class Local {
      ^
/Users/delphine/.node-gyp/4.0.0/deps/v8/include/v8.h:214:13: note: candidate template ignored: failed template argument deduction
  V8_INLINE Local(Local<S> that)
            ^
/Users/delphine/.node-gyp/4.0.0/deps/v8/include/v8.h:326:13: note: candidate template ignored: failed template argument deduction
  V8_INLINE Local(S* that)
            ^
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h:683:26: error: no member named 'Use' in namespace 'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
           ~~~~~~~~~~~~~~^
../src/posix.cc:77:30: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setsid"));
                             ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:98:30: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "chroot: chdir: "));
                             ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:102:30: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "chroot"));
                             ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:164:30: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "getrlimit"));
                             ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:236:34: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getrlimit"));
                                 ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:243:30: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setrlimit"));
                             ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:262:34: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getpwuid"));
                                 ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:268:34: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getpwnam"));
                                 ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:303:34: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getgrgid"));
                                 ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:309:34: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getgrnam"));
                                 ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:348:30: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "initgroups"));
                             ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:362:30: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "seteuid"));
                             ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:376:30: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setegid"));
                             ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:390:30: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setregid"));
                             ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:404:30: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setreuid"));
                             ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:546:30: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "gethostname"));
                             ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:567:30: warning: 'ErrnoException' is deprecated: Use UVException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "sethostname"));
                             ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:100:45: note: 'ErrnoException' declared here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/delphine/.node-gyp/4.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/delphine/.node-gyp/4.0.0/src/node.h:42:
/Users/delphine/.node-gyp/4.0.0/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Primitive *volatile' from incompatible type
      'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/delphine/.node-gyp/4.0.0/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:414:12: note: in instantiation of function template specialization
      'v8::Local<v8::Primitive>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/delphine/.node-gyp/4.0.0/src/node.h:42:
/Users/delphine/.node-gyp/4.0.0/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Boolean *volatile' from incompatible type
      'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/delphine/.node-gyp/4.0.0/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:424:12: note: in instantiation of function template specialization
      'v8::Local<v8::Boolean>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/delphine/.node-gyp/4.0.0/src/node.h:42:
/Users/delphine/.node-gyp/4.0.0/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Function *volatile' from incompatible type
      'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/delphine/.node-gyp/4.0.0/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1514:12: note: in instantiation of function template specialization
      'v8::Local<v8::Function>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/delphine/.node-gyp/4.0.0/src/node.h:42:
/Users/delphine/.node-gyp/4.0.0/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Object *volatile' from incompatible type
      'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/delphine/.node-gyp/4.0.0/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1632:12: note: in instantiation of function template specialization
      'v8::Local<v8::Object>::Local<v8::Value>' requested here
    return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
17 warnings and 9 errors generated.
make: *** [Release/obj.target/posix/src/posix.o] Error 1
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:269: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 Darwin 14.5.0
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 /Users/delphine/Development/Git/node_modules/posix
gyp ERR! node -v v4.0.0
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok 
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "posix"
npm ERR! node v4.0.0
npm ERR! npm  v2.14.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the posix 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 posix
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/delphine/Development/Git/npm-debug.log

swapon

Add support for swapon syscall, and maybe for simmetry also swapoff.

Error throw when using 'emerg' syslog level.

ERROR IS AS FOLLOWS:
/node_modules/posix/lib/posix/index.js:31
throw "invalid syslog constant value: " + value;
^
invalid syslog constant value: emerg

CODE SNIPPET IS AS FOLLOWS:
posix.openlog('[AB]', { cons: true, ndelay: true, pid: false }, 'local0');
posix.setlogmask({ emerg: 1, alert: 1, crit: 1, err: 1, warning: 1, notice: 1, info: 1, debug: 1 });

CALL TO SYSLOG IS AS FOLLOWS:
When I call posix.syslog(level,message); and the level variable is set to emerg, I get the above error.

dup syscall

Add support for dup syscall. This is needed to implement nsh, so stdin of commands can be clossed without clossing the shell stdin.

Cannot build node-posix on solaris

The problem is that pid_t on solaris is defined as long for 32-bit userland. And when this long is passed to Nan::New<Integer>(getppid()), compiler complains that it does not know if it should be converted to signed or unsigned 32bit int.

> [email protected] install /repos/node-posix
> node-gyp rebuild

gmake: Entering directory '/repos/node-posix/build'
  CXX(target) Release/obj.target/posix/src/posix.o
In file included from ../node_modules/nan/nan.h:196:0,
                 from ../src/posix.cc:1:
../node_modules/nan/nan_new.h: In instantiation of ‘typename Nan::imp::Factory<T>::return_t Nan::New(A0) [with T = v8::Integer; A0 = long int; typename Nan::imp::Factory<T>::return_t = v8::Local<v8::Integer>]’:
../src/posix.cc:104:52:   required from here
../node_modules/nan/nan_new.h:208:30: error: call of overloaded ‘New(long int&)’ is ambiguous
   return imp::Factory<T>::New(arg0);
                              ^
In file included from ../node_modules/nan/nan_new.h:189:0,
                 from ../node_modules/nan/nan.h:196,
                 from ../src/posix.cc:1:
../node_modules/nan/nan_implementation_12_inl.h:162:1: note: candidate: static Nan::imp::IntegerFactory<T>::return_t Nan::imp::IntegerFactory<T>::New(int32_t) [with T = v8::Integer; Nan::imp::IntegerFactory<T>::return_t = v8::Local<v8::Integer>; int32_t = int]
 IntegerFactory<T>::New(int32_t value) {
 ^
../node_modules/nan/nan_implementation_12_inl.h:168:1: note: candidate: static Nan::imp::IntegerFactory<T>::return_t Nan::imp::IntegerFactory<T>::New(uint32_t) [with T = v8::Integer; Nan::imp::IntegerFactory<T>::return_t = v8::Local<v8::Integer>; uint32_t = unsigned int]
 IntegerFactory<T>::New(uint32_t value) {
 ^
gmake: *** [posix.target.mk:96: Release/obj.target/posix/src/posix.o] Error 1
gmake: Leaving directory '/repos/node-posix/build'

I fixed that by using static_cast<int32_t>(...) everywhere where the constructor takes pid_t argument. However perhaps there is more clean way how to deal with it (for example eliminating the static_cast on platforms where it's not needed). Proposed workaround:

diff --git a/src/posix.cc b/src/posix.cc
index 3fd122c..096010b 100644
--- a/src/posix.cc
+++ b/src/posix.cc
@@ -29,7 +29,7 @@ NAN_METHOD(node_getppid) {
         return Nan::ThrowError("getppid: takes no arguments");
     }

-    info.GetReturnValue().Set(Nan::New<Integer>(getppid()));
+    info.GetReturnValue().Set(Nan::New<Integer>(static_cast<int32_t>(getppid())));
 }

 NAN_METHOD(node_getpgid) {
@@ -43,7 +43,7 @@ NAN_METHOD(node_getpgid) {
        return Nan::ThrowTypeError("getpgid: first argument must be an integer");
     }

-    info.GetReturnValue().Set(Nan::New<Integer>(getpgid(info[0]->IntegerValue())));
+    info.GetReturnValue().Set(Nan::New<Integer>(static_cast<int32_t>(getpgid(info[0]->IntegerValue()))));
 }

 NAN_METHOD(node_setpgid) {
@@ -101,7 +101,7 @@ NAN_METHOD(node_setsid) {
         return Nan::ThrowError(Nan::ErrnoException(errno, "setsid", ""));
     }

-    info.GetReturnValue().Set(Nan::New<Integer>(sid));
+    info.GetReturnValue().Set(Nan::New<Integer>(static_cast<int32_t>(sid)));
 }

 NAN_METHOD(node_chroot) {

OS X 10.11.3 node want posix 2.0.1 but has 4.0.0

> [email protected] install /Users/iqqator/Developer/GIT/wing-academy/node_modules/posix
> node-gyp rebuild

  CXX(target) Release/obj.target/posix/src/posix.o
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                        ^
../node_modules/nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
                        ^
../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace
      'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
../node_modules/nan/nan.h:672:12: error: no matching function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
           ^~~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/node_buffer.h:31:40: note: 
      candidate function not viable: no known conversion from 'uint32_t'
      (aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node_buffer.h:43:40: note: 
      candidate function not viable: 2nd argument ('const char *') would lose
      const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node_buffer.h:28:40: note: 
      candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                       ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node_buffer.h:36:40: note: 
      candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h:676:12: error: no viable conversion from
      'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:210:7: note: candidate
      constructor (the implicit copy constructor) not viable: no known
      conversion from 'v8::MaybeLocal<v8::Object>' to 'const
      v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:210:7: note: candidate
      constructor (the implicit move constructor) not viable: no known
      conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&'
      for 1st argument
class Local {
      ^
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:214:13: note: candidate
      template ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:326:13: note: candidate
      template ignored: could not match 'S *' against
      'v8::MaybeLocal<v8::Object>'
  V8_INLINE Local(S* that)
            ^
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h:683:26: error: no member named 'Use' in namespace
      'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
           ~~~~~~~~~~~~~~^
../src/posix.cc:77:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setsid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:98:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "chroot: chdir: "));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:102:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "chroot"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:164:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "getrlimit"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:236:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getrlimit"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:243:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setrlimit"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:262:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getpwuid"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:268:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getpwnam"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:303:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getgrgid"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:309:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getgrnam"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:348:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "initgroups"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:362:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "seteuid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:376:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setegid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:390:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setregid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:404:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setreuid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:546:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "gethostname"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:567:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "sethostname"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/iqqator/.node-gyp/5.5.0/include/node/node.h:42:
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:221:5: error: assigning to
      'v8::Primitive *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:180:37: note: expanded from
      macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:414:12: note: in instantiation of function template
      specialization 'v8::Local<v8::Primitive>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/iqqator/.node-gyp/5.5.0/include/node/node.h:42:
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:221:5: error: assigning to
      'v8::Boolean *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:180:37: note: expanded from
      macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:424:12: note: in instantiation of function template
      specialization 'v8::Local<v8::Boolean>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/iqqator/.node-gyp/5.5.0/include/node/node.h:42:
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:221:5: error: assigning to
      'v8::Function *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:180:37: note: expanded from
      macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1514:12: note: in instantiation of function template
      specialization 'v8::Local<v8::Function>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/iqqator/.node-gyp/5.5.0/include/node/node.h:42:
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:221:5: error: assigning to
      'v8::Object *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:180:37: note: expanded from
      macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1632:12: note: in instantiation of function template
      specialization 'v8::Local<v8::Object>::Local<v8::Value>' requested here
    return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
17 warnings and 9 errors generated.
make: *** [Release/obj.target/posix/src/posix.o] Error 1
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:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.3.0
gyp ERR! command "/usr/local/Cellar/node/5.5.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/iqqator/Developer/GIT/wing-academy/node_modules/posix
gyp ERR! node -v v5.5.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok 
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild`
npm WARN install:[email protected] Exit status 1
[email protected] /Users/iqqator/Developer/GIT/wing-academy
└── [email protected] 

MBPro:wing-academy iqqator$ npm install -g posix

> [email protected] install /usr/local/lib/node_modules/posix
> node-gyp rebuild

  CXX(target) Release/obj.target/posix/src/posix.o
  SOLINK_MODULE(target) Release/posix.node
/usr/local/lib
└─┬ [email protected] 
  └── [email protected] 

MBPro:wing-academy iqqator$ npm --save install tether

> [email protected] install /Users/iqqator/Developer/GIT/wing-academy/node_modules/posix
> node-gyp rebuild

  CXX(target) Release/obj.target/posix/src/posix.o
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                        ^
../node_modules/nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
                        ^
../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace
      'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
../node_modules/nan/nan.h:672:12: error: no matching function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
           ^~~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/node_buffer.h:31:40: note: 
      candidate function not viable: no known conversion from 'uint32_t'
      (aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node_buffer.h:43:40: note: 
      candidate function not viable: 2nd argument ('const char *') would lose
      const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node_buffer.h:28:40: note: 
      candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                       ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node_buffer.h:36:40: note: 
      candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h:676:12: error: no viable conversion from
      'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:210:7: note: candidate
      constructor (the implicit copy constructor) not viable: no known
      conversion from 'v8::MaybeLocal<v8::Object>' to 'const
      v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:210:7: note: candidate
      constructor (the implicit move constructor) not viable: no known
      conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&'
      for 1st argument
class Local {
      ^
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:214:13: note: candidate
      template ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:326:13: note: candidate
      template ignored: could not match 'S *' against
      'v8::MaybeLocal<v8::Object>'
  V8_INLINE Local(S* that)
            ^
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h:683:26: error: no member named 'Use' in namespace
      'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
           ~~~~~~~~~~~~~~^
../src/posix.cc:77:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setsid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:98:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "chroot: chdir: "));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:102:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "chroot"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:164:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "getrlimit"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:236:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getrlimit"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:243:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setrlimit"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:262:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getpwuid"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:268:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getpwnam"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:303:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getgrgid"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:309:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getgrnam"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:348:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "initgroups"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:362:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "seteuid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:376:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setegid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:390:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setregid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:404:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setreuid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:546:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "gethostname"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:567:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "sethostname"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/iqqator/.node-gyp/5.5.0/include/node/node.h:42:
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:221:5: error: assigning to
      'v8::Primitive *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:180:37: note: expanded from
      macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:414:12: note: in instantiation of function template
      specialization 'v8::Local<v8::Primitive>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/iqqator/.node-gyp/5.5.0/include/node/node.h:42:
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:221:5: error: assigning to
      'v8::Boolean *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:180:37: note: expanded from
      macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:424:12: note: in instantiation of function template
      specialization 'v8::Local<v8::Boolean>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/iqqator/.node-gyp/5.5.0/include/node/node.h:42:
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:221:5: error: assigning to
      'v8::Function *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:180:37: note: expanded from
      macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1514:12: note: in instantiation of function template
      specialization 'v8::Local<v8::Function>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/iqqator/.node-gyp/5.5.0/include/node/node.h:42:
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:221:5: error: assigning to
      'v8::Object *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:180:37: note: expanded from
      macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1632:12: note: in instantiation of function template
      specialization 'v8::Local<v8::Object>::Local<v8::Value>' requested here
    return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
17 warnings and 9 errors generated.
make: *** [Release/obj.target/posix/src/posix.o] Error 1
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:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.3.0
gyp ERR! command "/usr/local/Cellar/node/5.5.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/iqqator/Developer/GIT/wing-academy/node_modules/posix
gyp ERR! node -v v5.5.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok 
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild`
npm WARN install:[email protected] Exit status 1
[email protected] /Users/iqqator/Developer/GIT/wing-academy
└── [email protected] 

MBPro:wing-academy iqqator$ npm install -g [email protected]

> [email protected] install /usr/local/lib/node_modules/posix
> node-gyp rebuild

  CXX(target) Release/obj.target/posix/src/posix.o
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                        ^
../node_modules/nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
                        ^
../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace
      'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
../node_modules/nan/nan.h:672:12: error: no matching function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
           ^~~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/node_buffer.h:31:40: note: 
      candidate function not viable: no known conversion from 'uint32_t'
      (aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node_buffer.h:43:40: note: 
      candidate function not viable: 2nd argument ('const char *') would lose
      const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node_buffer.h:28:40: note: 
      candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                       ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node_buffer.h:36:40: note: 
      candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h:676:12: error: no viable conversion from
      'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:210:7: note: candidate
      constructor (the implicit copy constructor) not viable: no known
      conversion from 'v8::MaybeLocal<v8::Object>' to 'const
      v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:210:7: note: candidate
      constructor (the implicit move constructor) not viable: no known
      conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&'
      for 1st argument
class Local {
      ^
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:214:13: note: candidate
      template ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:326:13: note: candidate
      template ignored: could not match 'S *' against
      'v8::MaybeLocal<v8::Object>'
  V8_INLINE Local(S* that)
            ^
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h:683:26: error: no member named 'Use' in namespace
      'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
           ~~~~~~~~~~~~~~^
../src/posix.cc:77:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setsid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:98:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "chroot: chdir: "));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:102:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "chroot"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:164:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "getrlimit"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:236:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getrlimit"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:243:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setrlimit"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:262:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getpwuid"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:268:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getpwnam"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:303:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getgrgid"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:309:34: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
            return NanThrowError(ErrnoException(errno, "getgrnam"));
                                 ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:348:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "initgroups"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:362:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "seteuid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:376:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setegid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:390:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setregid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:404:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "setreuid"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:546:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "gethostname"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
../src/posix.cc:567:30: warning: 'ErrnoException' is deprecated: Use
      ErrnoException(isolate, ...) [-Wdeprecated-declarations]
        return NanThrowError(ErrnoException(errno, "sethostname"));
                             ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:100:45: note: 
      'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
/Users/iqqator/.node-gyp/5.5.0/include/node/node.h:66:42: note: expanded from
      macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                                         ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/iqqator/.node-gyp/5.5.0/include/node/node.h:42:
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:221:5: error: assigning to
      'v8::Primitive *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:180:37: note: expanded from
      macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:414:12: note: in instantiation of function template
      specialization 'v8::Local<v8::Primitive>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/iqqator/.node-gyp/5.5.0/include/node/node.h:42:
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:221:5: error: assigning to
      'v8::Boolean *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:180:37: note: expanded from
      macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:424:12: note: in instantiation of function template
      specialization 'v8::Local<v8::Boolean>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/iqqator/.node-gyp/5.5.0/include/node/node.h:42:
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:221:5: error: assigning to
      'v8::Function *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:180:37: note: expanded from
      macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1514:12: note: in instantiation of function template
      specialization 'v8::Local<v8::Function>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/posix.cc:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/iqqator/.node-gyp/5.5.0/include/node/node.h:42:
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:221:5: error: assigning to
      'v8::Object *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/iqqator/.node-gyp/5.5.0/include/node/v8.h:180:37: note: expanded from
      macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1632:12: note: in instantiation of function template
      specialization 'v8::Local<v8::Object>::Local<v8::Value>' requested here
    return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
17 warnings and 9 errors generated.
make: *** [Release/obj.target/posix/src/posix.o] Error 1
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:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.3.0
gyp ERR! command "/usr/local/Cellar/node/5.5.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/posix
gyp ERR! node -v v5.5.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok 
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/Cellar/node/5.5.0/bin/node" "/usr/local/bin/npm" "install" "-g" "[email protected]"
npm ERR! node v5.5.0
npm ERR! npm  v3.5.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the posix 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 information on how to open an issue for this project with:
npm ERR!     npm bugs posix
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls posix
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

Cannot set 'rlimit' once it has been set for a resource

Consider that you've set an rlimit on cpu resource like

   posix.setrlimit('cpu', { soft: 9, hard: 10 });

Now before you hit that limit, if you try to reset it to infinity you get an error

  posix.setrlimit('cpu', { soft: null, hard: null });

  Error: EPERM, Operation not permitted
    at /Users/chiragsanghvi/cluster/cpu.js:24:11
    at getUsage (/Users/chiragsanghvi/cluster/cpu.js:10:5)
    at Object.<anonymous> (/Users/chiragsanghvi/cluster/cpu.js:14:1)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

Any help would be appreciated, as I need this functionality in one of my projects.

Error while running in node 0.8.3

Hello,
While requiring and running the posix module, I get the following error:
module.js:485
process.dlopen(filename, module.exports);
^
Error: dlopen(/Users/santosh/codez/hydra/node_modules/posix/build/Release/posix.node, 1): no suitable image found. Did find:
/Users/santosh/codez/hydra/node_modules/posix/build/Release/posix.node: mach-o, but wrong architecture
at Object.Module._extensions..node (module.js:485:11)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (/Users/santosh/codez/hydra/node_modules/posix/lib/posix/index.js:1:75)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)

Looks to be an ARCH_FLAGS thing. Was wondering if there is a fix for this, or if it's just the way I have installed node (using the mac os x installer from nodejs.org).

Thanks
Santosh

Error when trying to build posix in old linux systems with gcc4.3

Hello,

In a SLES 11SP3 linux , using nodejs-v4.5.0 and npm 2.15.9 I get an error that higher c++ version required when trying to build [email protected]
SLES11 has gcc4.3.
Do we know if this is this supported or not? If yes, is there any workaround for this?
Thank you

Logs from error:

Installing posix 4.0.2
> [email protected] install /testProject/thirdparty/src/nodejs-extras/node_modules/posix
> node-gyp rebuild

make: Entering directory `/testProject/thirdparty/src/nodejs-extras/node_modules/posix/build'
  CXX(target) Release/obj.target/posix/src/posix.o
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h:43:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from /export/home/grmf4qf2/.node-gyp/4.5.0/include/node/node.h:42,
                 from ../node_modules/nan/nan.h:47,
                 from ../src/posix.cc:1:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:336: error: expected unqualified-id before ‘using’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:353: error: ‘nullptr’ was not declared in this scope
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:360: error: ‘nullptr’ was not declared in this scope
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:364: error: ‘nullptr’ was not declared in this scope
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:430: error: ‘nullptr’ was not declared in this scope
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: At global scope:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:469: error: expected unqualified-id before ‘using’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:472: error: expected identifier before ‘class’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:472: error: ISO C++ forbids declaration of ‘kParameter’ with no type
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:472: error: ISO C++ forbids declaration of ‘kInternalFields’ with no type
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:472: error: expected ‘;’ before ‘}’ token
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:472: error: expected `;' before ‘}’ token
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:472: error: multiple types in one declaration
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:637: error: invalid pure specifier (only `= 0' is allowed) before ‘;’ token
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:638: error: invalid pure specifier (only `= 0' is allowed) before ‘;’ token
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:844: error: invalid pure specifier (only `= 0' is allowed) before ‘;’ token
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:845: error: invalid pure specifier (only `= 0' is allowed) before ‘;’ token
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:790: error: ‘nullptr’ was not declared in this scope
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:815: error: ‘nullptr’ was not declared in this scope
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:827: error: ‘nullptr’ was not declared in this scope
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: At global scope:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:852: error: expected unqualified-id before ‘using’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:1089: error: ‘nullptr’ was not declared in this scope
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:1095: error: ‘nullptr’ was not declared in this scope
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:2075: error: expected identifier before ‘class’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:2075: error: ISO C++ forbids declaration of ‘kNormal’ with no type
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:2075: error: ISO C++ forbids declaration of ‘kInternalized’ with no type
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:2075: error: expected ‘;’ before ‘}’ token
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:2075: error: expected `;' before ‘}’ token
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:2075: error: multiple types in one declaration
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:2075: error: ‘int v8::NewStringType::kNormal’ is private
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:2283: error: within this context
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:2283: error: ‘v8::NewStringType::kNormal’ cannot appear in a constant-expression
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:2284: error: ‘kInternalized’ is not a member of ‘v8::NewStringType’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In instantiation of ‘v8::PersistentBase<v8::Object>’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:2769:   instantiated from here
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:637: error: initializer specified for non-virtual method ‘v8::PersistentBase<T>::PersistentBase(v8::PersistentBase<T>&) [with T = v8::Object]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:638: error: initializer specified for non-virtual method ‘void v8::PersistentBase<T>::operator=(v8::PersistentBase<T>&) [with T = v8::Object]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:3205: error: ‘nullptr’ was not declared in this scope
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: At global scope:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:3350: error: expected identifier before ‘class’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:3350: error: ISO C++ forbids declaration of ‘kInternalized’ with no type
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:3350: error: ISO C++ forbids declaration of ‘kExternalized’ with no type
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:3350: error: expected ‘;’ before ‘}’ token
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:3350: error: expected `;' before ‘}’ token
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:3350: error: multiple types in one declaration
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:3434: error: ‘kExternalized’ is not a member of ‘v8::ArrayBufferCreationMode’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:3797: error: ‘kExternalized’ is not a member of ‘v8::ArrayBufferCreationMode’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4435: error: expected identifier before ‘class’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4436: error: ISO C++ forbids declaration of ‘kNone’ with no type
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4436: error: ISO C++ forbids initialization of member ‘kNone’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4436: error: making ‘kNone’ static
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4436: error: ISO C++ forbids in-class initialization of non-const static member ‘kNone’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4438: error: ISO C++ forbids declaration of ‘kAllCanRead’ with no type
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4438: error: ISO C++ forbids initialization of member ‘kAllCanRead’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4438: error: making ‘kAllCanRead’ static
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4438: error: ISO C++ forbids in-class initialization of non-const static member ‘kAllCanRead’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4441: error: ISO C++ forbids declaration of ‘kNonMasking’ with no type
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4441: error: ISO C++ forbids initialization of member ‘kNonMasking’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4441: error: making ‘kNonMasking’ static
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4441: error: ISO C++ forbids in-class initialization of non-const static member ‘kNonMasking’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4444: error: ISO C++ forbids declaration of ‘kOnlyInterceptStrings’ with no type
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4444: error: ISO C++ forbids initialization of member ‘kOnlyInterceptStrings’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4444: error: making ‘kOnlyInterceptStrings’ static
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4444: error: ISO C++ forbids in-class initialization of non-const static member ‘kOnlyInterceptStrings’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4445: error: expected unqualified-id before ‘}’ token
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4445: error: multiple types in one declaration
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4436: error: ‘int v8::PropertyHandlerFlags::kNone’ is private
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4457: error: within this context
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4457: error: default argument for parameter of type ‘v8::PropertyHandlerFlags’ has type ‘int’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4436: error: ‘int v8::PropertyHandlerFlags::kNone’ is private
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4485: error: within this context
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:4485: error: default argument for parameter of type ‘v8::PropertyHandlerFlags’ has type ‘int’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In member function ‘v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:7164: error: ‘nullptr’ was not declared in this scope
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In member function ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local<v8::Data>)’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:2075: error: ‘int v8::NewStringType::kNormal’ is private
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:7609: error: within this context
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:2075: error: object missing in reference to ‘v8::NewStringType::kNormal’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:7609: error: from this location
In file included from ../node_modules/nan/nan.h:190,
                 from ../src/posix.cc:1:
../node_modules/nan/nan_maybe_43_inl.h: At global scope:
../node_modules/nan/nan_maybe_43_inl.h:13: error: expected unqualified-id before ‘using’
../node_modules/nan/nan_maybe_43_inl.h:16: error: expected unqualified-id before ‘using’
../node_modules/nan/nan_maybe_43_inl.h:19: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:24: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:31: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:36: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:41: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:46: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:51: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:59: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:64: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:69: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:76: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:83: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:91: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:98: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:108: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:114: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:118: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:125: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:130: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:135: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:139: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:145: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:150: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:156: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:162: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:168: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:174: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:180: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:186: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:194: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:201: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:205: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:209: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:213: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:217: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:237: error: expected initializer before ‘<’ token
In file included from ../node_modules/nan/nan.h:195,
                 from ../src/posix.cc:1:
../node_modules/nan/nan_converters.h:14: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type
../node_modules/nan/nan_converters.h:14: error: expected ‘;’ before ‘<’ token
../node_modules/nan/nan_converters.h:16: error: ISO C++ forbids declaration of ‘Maybe’ with no type
../node_modules/nan/nan_converters.h:16: error: expected ‘;’ before ‘<’ token
../node_modules/nan/nan_converters.h:26: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:27: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:28: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:29: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:30: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:31: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:32: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:42: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:43: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:44: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:45: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:46: error: ‘return_t’ does not name a type
In file included from ../node_modules/nan/nan_converters.h:59,
                 from ../node_modules/nan/nan.h:195,
                 from ../src/posix.cc:1:
../node_modules/nan/nan_converters_43_inl.h:18: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Boolean>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:19: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Number>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:20: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::String>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:21: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Object>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:22: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Integer>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:23: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Uint32>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:24: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Int32>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:34: error: ‘return_t’ in class ‘Nan::imp::ToFactory<bool>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:35: error: ‘return_t’ in class ‘Nan::imp::ToFactory<double>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:36: error: ‘return_t’ in class ‘Nan::imp::ToFactory<long int>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:37: error: ‘return_t’ in class ‘Nan::imp::ToFactory<unsigned int>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:38: error: ‘return_t’ in class ‘Nan::imp::ToFactory<int>’ does not name a type
In file included from ../node_modules/nan/nan.h:196,
                 from ../src/posix.cc:1:
../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: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../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: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../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: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../node_modules/nan/nan_new.h: At global scope:
../node_modules/nan/nan_new.h:43: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type
../node_modules/nan/nan_new.h:43: error: expected ‘;’ before ‘<’ token
../node_modules/nan/nan_new.h:75: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:141: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:147: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:148: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:160: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:161: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:162: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:163: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:165: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:166: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:182: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:183: error: ‘return_t’ does not name a type
In file included from ../node_modules/nan/nan_new.h:189,
                 from ../node_modules/nan/nan.h:196,
                 from ../src/posix.cc:1:
../node_modules/nan/nan_implementation_12_inl.h:61: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Date>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::Function> Nan::imp::Factory<v8::Function>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’:
../node_modules/nan/nan_implementation_12_inl.h:95: error: ‘NewInstance’ was not declared in this scope
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: At global scope:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In instantiation of ‘v8::PersistentBase<v8::Value>’:
../node_modules/nan/nan_implementation_12_inl.h:101:   instantiated from here
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:637: error: initializer specified for non-virtual method ‘v8::PersistentBase<T>::PersistentBase(v8::PersistentBase<T>&) [with T = v8::Value]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:638: error: initializer specified for non-virtual method ‘void v8::PersistentBase<T>::operator=(v8::PersistentBase<T>&) [with T = v8::Value]’
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::FunctionTemplate> Nan::imp::Factory<v8::FunctionTemplate>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>, v8::Local<v8::Signature>)’:
../node_modules/nan/nan_implementation_12_inl.h:123: 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:202: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::RegExp>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:221: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Script>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:227: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Script>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:259: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:267: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:273: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:280: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:286: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:291: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:352: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::UnboundScript>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:359: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::UnboundScript>’ does not name a type
In file included from ../node_modules/nan/nan.h:196,
                 from ../src/posix.cc:1:
../node_modules/nan/nan_new.h:293: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_new.h:299: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_new.h:305: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_new.h:311: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_new.h:317: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_new.h:323: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_new.h:329: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_new.h:335: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::RegExp>’ does not name a type
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::Error(const char*)’:
../node_modules/nan/nan.h:655: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘void Nan::ThrowError(const char*)’:
../node_modules/nan/nan.h:655: error: ‘class v8::Local<v8::Boolean>’ 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:656: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘void Nan::ThrowRangeError(const char*)’:
../node_modules/nan/nan.h:656: error: ‘class v8::Local<v8::Boolean>’ 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:657: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘void Nan::ThrowReferenceError(const char*)’:
../node_modules/nan/nan.h:657: error: ‘class v8::Local<v8::Boolean>’ 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:658: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘void Nan::ThrowSyntaxError(const char*)’:
../node_modules/nan/nan.h:658: error: ‘class v8::Local<v8::Boolean>’ 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:659: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘void Nan::ThrowTypeError(const char*)’:
../node_modules/nan/nan.h:659: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:667: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:689: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:705: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:718: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:735: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:741: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:749: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:756: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:762: error: expected initializer before ‘<’ token
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In member function ‘void Nan::Callback::SetFunction(const v8::Local<v8::Function>&)’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:3021: error: argument dependent lookup finds ‘class v8::Set’
../node_modules/nan/nan.h:1398: error:   in call to ‘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:1518: error: ‘class v8::Local<v8::Boolean>’ 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:1536: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: At global scope:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In instantiation of ‘v8::PersistentBase<v8::String>’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:785:   instantiated from ‘v8::Global<v8::String>’
../node_modules/nan/nan_persistent_12_inl.h:61:   instantiated from ‘Nan::Global<v8::String>’
../node_modules/nan/nan.h:1570:   instantiated from here
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:637: error: initializer specified for non-virtual method ‘v8::PersistentBase<T>::PersistentBase(v8::PersistentBase<T>&) [with T = v8::String]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:638: error: initializer specified for non-virtual method ‘void v8::PersistentBase<T>::operator=(v8::PersistentBase<T>&) [with T = v8::String]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In instantiation of ‘v8::Global<v8::String>’:
../node_modules/nan/nan_persistent_12_inl.h:61:   instantiated from ‘Nan::Global<v8::String>’
../node_modules/nan/nan.h:1570:   instantiated from here
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:844: error: initializer specified for non-virtual method ‘v8::Global<T>::Global(v8::Global<T>&) [with T = v8::String]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:845: error: initializer specified for non-virtual method ‘void v8::Global<T>::operator=(v8::Global<T>&) [with T = v8::String]’
../node_modules/nan/nan.h: In member function ‘virtual void Nan::AsyncWorker::HandleErrorCallback()’:
../node_modules/nan/nan.h:1570: error: no matching function for call to ‘New(const char*)’
../node_modules/nan/nan.h: In function ‘void Nan::imp::SetMethodAux(T, v8::Local<v8::String>, v8::Local<v8::FunctionTemplate>, ...)’:
../node_modules/nan/nan.h:1872: error: there are no arguments to ‘GetFunction’ that depend on a template parameter, so a declaration of ‘GetFunction’ must be available
../node_modules/nan/nan.h:1872: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: At global scope:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In instantiation of ‘v8::PersistentBase<v8::FunctionTemplate>’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:785:   instantiated from ‘v8::Global<v8::FunctionTemplate>’
../node_modules/nan/nan_persistent_12_inl.h:61:   instantiated from ‘Nan::Global<v8::FunctionTemplate>’
../node_modules/nan/nan.h:1883:   instantiated from here
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:637: error: initializer specified for non-virtual method ‘v8::PersistentBase<T>::PersistentBase(v8::PersistentBase<T>&) [with T = v8::FunctionTemplate]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:638: error: initializer specified for non-virtual method ‘void v8::PersistentBase<T>::operator=(v8::PersistentBase<T>&) [with T = v8::FunctionTemplate]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In instantiation of ‘v8::Global<v8::FunctionTemplate>’:
../node_modules/nan/nan_persistent_12_inl.h:61:   instantiated from ‘Nan::Global<v8::FunctionTemplate>’
../node_modules/nan/nan.h:1883:   instantiated from here
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:844: error: initializer specified for non-virtual method ‘v8::Global<T>::Global(v8::Global<T>&) [with T = v8::FunctionTemplate]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:845: error: initializer specified for non-virtual method ‘void v8::Global<T>::operator=(v8::Global<T>&) [with T = v8::FunctionTemplate]’
../node_modules/nan/nan.h: In function ‘void Nan::SetMethod(HandleType<T>, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:
../node_modules/nan/nan.h:1884: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: At global scope:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In instantiation of ‘v8::PersistentBase<v8::Signature>’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:785:   instantiated from ‘v8::Global<v8::Signature>’
../node_modules/nan/nan_persistent_12_inl.h:61:   instantiated from ‘Nan::Global<v8::Signature>’
../node_modules/nan/nan.h:1898:   instantiated from here
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:637: error: initializer specified for non-virtual method ‘v8::PersistentBase<T>::PersistentBase(v8::PersistentBase<T>&) [with T = v8::Signature]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:638: error: initializer specified for non-virtual method ‘void v8::PersistentBase<T>::operator=(v8::PersistentBase<T>&) [with T = v8::Signature]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In instantiation of ‘v8::Global<v8::Signature>’:
../node_modules/nan/nan_persistent_12_inl.h:61:   instantiated from ‘Nan::Global<v8::Signature>’
../node_modules/nan/nan.h:1898:   instantiated from here
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:844: error: initializer specified for non-virtual method ‘v8::Global<T>::Global(v8::Global<T>&) [with T = v8::Signature]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:845: error: initializer specified for non-virtual method ‘void v8::Global<T>::operator=(v8::Global<T>&) [with T = v8::Signature]’
../node_modules/nan/nan.h: In function ‘void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:
../node_modules/nan/nan.h:1899: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
../node_modules/nan/nan.h:1924: error: ‘NewInstance’ was not declared in this scope
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: At global scope:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In instantiation of ‘v8::PersistentBase<v8::External>’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:785:   instantiated from ‘v8::Global<v8::External>’
../node_modules/nan/nan_persistent_12_inl.h:61:   instantiated from ‘Nan::Global<v8::External>’
../node_modules/nan/nan.h:1928:   instantiated from here
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:637: error: initializer specified for non-virtual method ‘v8::PersistentBase<T>::PersistentBase(v8::PersistentBase<T>&) [with T = v8::External]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:638: error: initializer specified for non-virtual method ‘void v8::PersistentBase<T>::operator=(v8::PersistentBase<T>&) [with T = v8::External]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In instantiation of ‘v8::Global<v8::External>’:
../node_modules/nan/nan_persistent_12_inl.h:61:   instantiated from ‘Nan::Global<v8::External>’
../node_modules/nan/nan.h:1928:   instantiated from here
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:844: error: initializer specified for non-virtual method ‘v8::Global<T>::Global(v8::Global<T>&) [with T = v8::External]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:845: error: initializer specified for non-virtual method ‘void v8::Global<T>::operator=(v8::Global<T>&) [with T = v8::External]’
../node_modules/nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’:
../node_modules/nan/nan.h:1967: error: ‘NewInstance’ was not declared in this scope
../node_modules/nan/nan.h: In function ‘void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)’:
../node_modules/nan/nan.h:2026: error: ‘NewInstance’ was not declared in this scope
../node_modules/nan/nan.h: In function ‘void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)’:
../node_modules/nan/nan.h:2096: error: ‘NewInstance’ was not declared in this scope
../node_modules/nan/nan.h: In function ‘void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate>, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’:
../node_modules/nan/nan.h:2151: error: ‘NewInstance’ was not declared in this scope
../node_modules/nan/nan.h: In function ‘void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate>, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’:
../node_modules/nan/nan.h:2173: error: ‘NewInstance’ was not declared in this scope
In file included from ../node_modules/nan/nan.h:2188,
                 from ../src/posix.cc:1:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In member function ‘void Nan::Persistent<T, M>::SetWeak(P*, typename Nan::WeakCallbackInfo<P>::Callback, Nan::WeakCallbackType)’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:472: error: object missing in reference to ‘v8::WeakCallbackType::kParameter’
../node_modules/nan/nan_weak.h:263: error: from this location
In file included from ../node_modules/nan/nan.h:2192,
                 from ../src/posix.cc:1:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:472: error: ‘int v8::WeakCallbackType::kParameter’ is private
../node_modules/nan/nan_object_wrap.h:66: error: within this context
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:472: error: object missing in reference to ‘v8::WeakCallbackType::kParameter’
../node_modules/nan/nan_object_wrap.h:66: error: from this location
In file included from ../src/posix.cc:1:
../node_modules/nan/nan.h: In function ‘void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:
../node_modules/nan/nan.h:2200: error: no matching function for call to ‘New(const char*&)’
../node_modules/nan/nan.h:2201: error: ‘GetFunction’ was not declared in this scope
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:3021: error: argument dependent lookup finds ‘class v8::Set’
../node_modules/nan/nan.h:2201: error:   in call to ‘Set’
../node_modules/nan/nan.h: In constructor ‘Nan::Tap::Tap(v8::Local<v8::Value>)’:
../node_modules/nan/nan.h:2208: error: no matching function for call to ‘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:2221: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In member function ‘void Nan::Tap::pass(const char*)’:
../node_modules/nan/nan.h:2227: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:2251: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type
../node_modules/nan/nan.h:2251: error: expected ‘;’ before ‘<’ token
../node_modules/nan/nan.h:2254: error: expected `;' before ‘}’ token
../node_modules/nan/nan.h:2256: error: ‘MaybeLocal’ was not declared in this scope
../node_modules/nan/nan.h:2256: error: template argument 1 is invalid
../node_modules/nan/nan.h:2256: error: expected unqualified-id before ‘>’ token
../node_modules/nan/nan.h:2265: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/posix.cc:13: error: ‘v8::Handle’ has not been declared
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In instantiation of ‘v8::PersistentBase<v8::Integer>’:
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:785:   instantiated from ‘v8::Global<v8::Integer>’
../node_modules/nan/nan_persistent_12_inl.h:61:   instantiated from ‘Nan::Global<v8::Integer>’
../src/posix.cc:28:   instantiated from here
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:637: error: initializer specified for non-virtual method ‘v8::PersistentBase<T>::PersistentBase(v8::PersistentBase<T>&) [with T = v8::Integer]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:638: error: initializer specified for non-virtual method ‘void v8::PersistentBase<T>::operator=(v8::PersistentBase<T>&) [with T = v8::Integer]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h: In instantiation of ‘v8::Global<v8::Integer>’:
../node_modules/nan/nan_persistent_12_inl.h:61:   instantiated from ‘Nan::Global<v8::Integer>’
../src/posix.cc:28:   instantiated from here
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:844: error: initializer specified for non-virtual method ‘v8::Global<T>::Global(v8::Global<T>&) [with T = v8::Integer]’
/export/home/grmf4qf2/.node-gyp/4.5.0/include/node/v8.h:845: error: initializer specified for non-virtual method ‘void v8::Global<T>::operator=(v8::Global<T>&) [with T = v8::Integer]’
../src/posix.cc:148: error: expected initializer before ‘<’ token
make: *** [Release/obj.target/posix/src/posix.o] Error 1
make: Leaving directory `/testProject/thirdparty/src/nodejs-extras/node_modules/posix/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/export/home/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/node_4.5.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276: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.0.76-0.11-default
gyp ERR! command "/export/home/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/node_4.5.0/bin/node" "/export/home/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/node_4.5.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /testProject/thirdparty/src/nodejs-extras/node_modules/posix
gyp ERR! node -v v4.5.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm ERR! Linux 3.0.76-0.11-default
npm ERR! argv "/export/home/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/node_4.5.0/bin/node" "/export/home/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/node_4.5.0/bin/npm" "install" "https://registry.npmjs.org/posix/-/posix-4.0.2.tgz"
npm ERR! node v4.5.0
npm ERR! npm  v2.15.9
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the posix 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 information on how to open an issue for this project with:
npm ERR!     npm bugs posix
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls posix
npm ERR! There is likely additional logging output above.

posix.setrlimit throws exceptions in AWS

Hi,

I have an instance in AWS with Ubuntu 14.04, and I get the following errors:

posix.setrlimit({ soft: 1000 }); returns Error: EINVAL, Invalid argument

posix.setrlimit({ soft: 1000, hard: 1000 }); Error: EPERM, Operation not permitted

I'm probably doing something wrong but if someone could help that would be great.

iojs 2.0.0 support

Installation fails on iojs 2.0.0 (released May 4, 2015).

In file included from ../node_modules/nan/nan_new.h:190:0,
                 from ../node_modules/nan/nan.h:74,
                 from ../src/posix.cc:1:
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::Signature>::return_t NanIntern::Factory<v8::Signature>::New(NanIntern::Factory<v8::Signature>::FTH, int, NanIntern::Factory<v8::Signature>::FTH*)’:
../node_modules/nan/nan_implementation_12_inl.h:181:76: error: no matching function for call to ‘v8::Signature::New(v8::Isolate*, NanIntern::Factory<v8::Signature>::FTH&, int&, NanIntern::Factory<v8::Signature>::FTH*&)’
../node_modules/nan/nan_implementation_12_inl.h:181:76: note: candidate is:
/home/travis/.node-gyp/2.0.0/deps/v8/include/v8.h:4188:27: note: static v8::Local<v8::Signature> v8::Signature::New(v8::Isolate*, v8::Handle<v8::FunctionTemplate>)
/home/travis/.node-gyp/2.0.0/deps/v8/include/v8.h:4188:27: note:   candidate expects 2 arguments, 4 provided
../src/posix.cc: In function ‘void node_setsid(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/posix.cc:77:60: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc: In function ‘void node_chroot(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/posix.cc:98:69: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc:102:60: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc: In function ‘void node_getrlimit(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/posix.cc:164:63: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc: In function ‘void node_setrlimit(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/posix.cc:236:67: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc:243:63: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc: In function ‘void node_getpwnam(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/posix.cc:262:66: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc:268:66: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc: In function ‘void node_getgrnam(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/posix.cc:303:66: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc:309:66: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc: In function ‘void node_initgroups(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/posix.cc:348:64: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc: In function ‘void node_seteuid(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/posix.cc:362:61: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc: In function ‘void node_setegid(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/posix.cc:376:61: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc: In function ‘void node_setregid(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/posix.cc:390:62: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc: In function ‘void node_setreuid(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/posix.cc:404:62: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc: In function ‘void node_gethostname(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/posix.cc:546:65: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
../src/posix.cc: In function ‘void node_sethostname(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/posix.cc:567:65: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at /home/travis/.node-gyp/2.0.0/src/node.h:80): Use UVException(isolate, ...) [-Wdeprecated-declarations]
make: *** [Release/obj.target/posix/src/posix.o] Error 1
make: Leaving directory `/home/travis/build/feross/instant.io/node_modules/posix/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/travis/.nvm/versions/io.js/v2.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:169:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1009:12)
gyp ERR! System Linux 2.6.32-042stab094.7
gyp ERR! command "/home/travis/.nvm/versions/io.js/v2.0.0/bin/iojs" "/home/travis/.nvm/versions/io.js/v2.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/travis/build/feross/instant.io/node_modules/posix
gyp ERR! node -v v2.0.0
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok 
npm WARN engine [email protected]: wanted: {"node":"0.6"} (current: {"node":"2.0.0","npm":"2.9.0"})
npm WARN engine [email protected]: wanted: {"node":"^0.10.3 || ^0.12.0"} (current: {"node":"2.0.0","npm":"2.9.0"})

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.