Skip to content

Instantly share code, notes, and snippets.

@dolftax
Created November 20, 2015 15:32
Show Gist options
  • Save dolftax/c676fa79fe80d1d37f46 to your computer and use it in GitHub Desktop.
Save dolftax/c676fa79fe80d1d37f46 to your computer and use it in GitHub Desktop.
pty.js build fails on node v4.2.0
> pty.js@0.2.3 install /home/jai/altair/node_modules/vfs-local/node_modules/pty.js
> node-gyp rebuild
make: Entering directory `/home/jai/altair/node_modules/vfs-local/node_modules/pty.js/build'
CXX(target) Release/obj.target/pty/src/unix/pty.o
../src/unix/pty.cc:65:15: error: ‘Arguments’ does not name a type
PtyFork(const Arguments&);
^
../src/unix/pty.cc:65:24: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
PtyFork(const Arguments&);
^
../src/unix/pty.cc:68:15: error: ‘Arguments’ does not name a type
PtyOpen(const Arguments&);
^
../src/unix/pty.cc:68:24: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
PtyOpen(const Arguments&);
^
../src/unix/pty.cc:71:17: error: ‘Arguments’ does not name a type
PtyResize(const Arguments&);
^
../src/unix/pty.cc:71:26: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
PtyResize(const Arguments&);
^
../src/unix/pty.cc:74:18: error: ‘Arguments’ does not name a type
PtyGetProc(const Arguments&);
^
../src/unix/pty.cc:74:27: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
PtyGetProc(const Arguments&);
^
../src/unix/pty.cc:104:15: error: ‘Arguments’ does not name a type
PtyFork(const Arguments& args) {
^
../src/unix/pty.cc:104:26: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
PtyFork(const Arguments& args) {
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h: In function ‘v8::Handle<v8::Value> PtyFork(const int&)’:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/unix/pty.cc:105:15: error: within this context
HandleScope scope;
^
../src/unix/pty.cc:107:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 6
^
../src/unix/pty.cc:108:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[0]->IsString()
^
../src/unix/pty.cc:109:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[1]->IsArray()
^
../src/unix/pty.cc:110:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[2]->IsArray()
^
../src/unix/pty.cc:111:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[3]->IsString()
^
../src/unix/pty.cc:112:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[4]->IsNumber()
^
../src/unix/pty.cc:113:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[5]->IsNumber()
^
../src/unix/pty.cc:114:16: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
|| (args.Length() >= 8 && !args[6]->IsNumber())
^
../src/unix/pty.cc:114:40: error: invalid types ‘const int[int]’ for array subscript
|| (args.Length() >= 8 && !args[6]->IsNumber())
^
../src/unix/pty.cc:115:16: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
|| (args.Length() >= 8 && !args[7]->IsNumber())) {
^
../src/unix/pty.cc:115:40: error: invalid types ‘const int[int]’ for array subscript
|| (args.Length() >= 8 && !args[7]->IsNumber())) {
^
../src/unix/pty.cc:117:7: error: ‘New’ is not a member of ‘v8::String’
String::New("Usage: pty.fork(file, args, env, cwd, cols, rows[, uid, gid])")));
^
../src/unix/pty.cc:117:84: error: ‘ThrowException’ was not declared in this scope
String::New("Usage: pty.fork(file, args, env, cwd, cols, rows[, uid, gid])")));
^
../src/unix/pty.cc:123:32: error: invalid types ‘const int[int]’ for array subscript
String::Utf8Value file(args[0]->ToString());
^
../src/unix/pty.cc:127:49: error: invalid types ‘const int[int]’ for array subscript
Local<Array> argv_ = Local<Array>::Cast(args[1]);
^
../src/unix/pty.cc:134:52: error: no matching function for call to ‘v8::Integer::New(int&)’
String::Utf8Value arg(argv_->Get(Integer::New(i))->ToString());
^
../src/unix/pty.cc:134:52: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2499:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
static Local<Integer> New(Isolate* isolate, int32_t value);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:140:48: error: invalid types ‘const int[int]’ for array subscript
Local<Array> env_ = Local<Array>::Cast(args[2]);
^
../src/unix/pty.cc:145:52: error: no matching function for call to ‘v8::Integer::New(int&)’
String::Utf8Value pair(env_->Get(Integer::New(i))->ToString());
^
../src/unix/pty.cc:145:52: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2499:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
static Local<Integer> New(Isolate* isolate, int32_t value);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:150:32: error: invalid types ‘const int[int]’ for array subscript
String::Utf8Value cwd_(args[3]->ToString());
^
../src/unix/pty.cc:155:23: error: invalid types ‘const int[int]’ for array subscript
winp.ws_col = args[4]->IntegerValue();
^
../src/unix/pty.cc:156:23: error: invalid types ‘const int[int]’ for array subscript
winp.ws_row = args[5]->IntegerValue();
^
../src/unix/pty.cc:163:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() >= 8) {
^
../src/unix/pty.cc:164:17: error: invalid types ‘const int[int]’ for array subscript
uid = args[6]->IntegerValue();
^
../src/unix/pty.cc:165:17: error: invalid types ‘const int[int]’ for array subscript
gid = args[7]->IntegerValue();
^
../src/unix/pty.cc:184:9: error: ‘New’ is not a member of ‘v8::String’
String::New("forkpty(3) failed.")));
^
../src/unix/pty.cc:184:43: error: ‘ThrowException’ was not declared in this scope
String::New("forkpty(3) failed.")));
^
../src/unix/pty.cc:206:11: error: ‘New’ is not a member of ‘v8::String’
String::New("Could not set master fd to nonblocking.")));
^
../src/unix/pty.cc:209:39: error: no matching function for call to ‘v8::Object::New()’
Local<Object> obj = Object::New();
^
../src/unix/pty.cc:209:39: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2933:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
static Local<Object> New(Isolate* isolate);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2933:24: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:210:16: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("fd"), Number::New(master));
^
../src/unix/pty.cc:210:53: error: no matching function for call to ‘v8::Number::New(int&)’
obj->Set(String::New("fd"), Number::New(master));
^
../src/unix/pty.cc:210:53: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:211:16: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("pid"), Number::New(pid));
^
../src/unix/pty.cc:211:51: error: no matching function for call to ‘v8::Number::New(pid_t&)’
obj->Set(String::New("pid"), Number::New(pid));
^
../src/unix/pty.cc:211:51: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:212:16: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("pty"), String::New(name));
^
../src/unix/pty.cc:212:36: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("pty"), String::New(name));
^
../src/unix/pty.cc:214:20: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(obj);
^
../src/unix/pty.cc:217:20: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
return Undefined();
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:315:27: note: declared here
friend Local<Primitive> Undefined(Isolate* isolate);
^
../src/unix/pty.cc: At global scope:
../src/unix/pty.cc:226:15: error: ‘Arguments’ does not name a type
PtyOpen(const Arguments& args) {
^
../src/unix/pty.cc:226:26: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
PtyOpen(const Arguments& args) {
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h: In function ‘v8::Handle<v8::Value> PtyOpen(const int&)’:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/unix/pty.cc:227:15: error: within this context
HandleScope scope;
^
../src/unix/pty.cc:229:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() != 2
^
../src/unix/pty.cc:230:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[0]->IsNumber()
^
../src/unix/pty.cc:231:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[1]->IsNumber()) {
^
../src/unix/pty.cc:233:7: error: ‘New’ is not a member of ‘v8::String’
String::New("Usage: pty.open(cols, rows)")));
^
../src/unix/pty.cc:233:50: error: ‘ThrowException’ was not declared in this scope
String::New("Usage: pty.open(cols, rows)")));
^
../src/unix/pty.cc:238:23: error: invalid types ‘const int[int]’ for array subscript
winp.ws_col = args[0]->IntegerValue();
^
../src/unix/pty.cc:239:23: error: invalid types ‘const int[int]’ for array subscript
winp.ws_row = args[1]->IntegerValue();
^
../src/unix/pty.cc:250:7: error: ‘New’ is not a member of ‘v8::String’
String::New("openpty(3) failed.")));
^
../src/unix/pty.cc:250:41: error: ‘ThrowException’ was not declared in this scope
String::New("openpty(3) failed.")));
^
../src/unix/pty.cc:255:7: error: ‘New’ is not a member of ‘v8::String’
String::New("Could not set master fd to nonblocking.")));
^
../src/unix/pty.cc:255:62: error: ‘ThrowException’ was not declared in this scope
String::New("Could not set master fd to nonblocking.")));
^
../src/unix/pty.cc:260:7: error: ‘New’ is not a member of ‘v8::String’
String::New("Could not set slave fd to nonblocking.")));
^
../src/unix/pty.cc:260:61: error: ‘ThrowException’ was not declared in this scope
String::New("Could not set slave fd to nonblocking.")));
^
../src/unix/pty.cc:263:35: error: no matching function for call to ‘v8::Object::New()’
Local<Object> obj = Object::New();
^
../src/unix/pty.cc:263:35: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2933:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
static Local<Object> New(Isolate* isolate);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2933:24: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:264:12: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("master"), Number::New(master));
^
../src/unix/pty.cc:264:53: error: no matching function for call to ‘v8::Number::New(int&)’
obj->Set(String::New("master"), Number::New(master));
^
../src/unix/pty.cc:264:53: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:265:12: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("slave"), Number::New(slave));
^
../src/unix/pty.cc:265:51: error: no matching function for call to ‘v8::Number::New(int&)’
obj->Set(String::New("slave"), Number::New(slave));
^
../src/unix/pty.cc:265:51: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:266:12: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("pty"), String::New(name));
^
../src/unix/pty.cc:266:32: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("pty"), String::New(name));
^
../src/unix/pty.cc:268:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(obj);
^
../src/unix/pty.cc: At global scope:
../src/unix/pty.cc:277:17: error: ‘Arguments’ does not name a type
PtyResize(const Arguments& args) {
^
../src/unix/pty.cc:277:28: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
PtyResize(const Arguments& args) {
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h: In function ‘v8::Handle<v8::Value> PtyResize(const int&)’:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/unix/pty.cc:278:15: error: within this context
HandleScope scope;
^
../src/unix/pty.cc:280:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() != 3
^
../src/unix/pty.cc:281:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[0]->IsNumber()
^
../src/unix/pty.cc:282:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[1]->IsNumber()
^
../src/unix/pty.cc:283:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[2]->IsNumber()) {
^
../src/unix/pty.cc:285:7: error: ‘New’ is not a member of ‘v8::String’
String::New("Usage: pty.resize(fd, cols, rows)")));
^
../src/unix/pty.cc:285:56: error: ‘ThrowException’ was not declared in this scope
String::New("Usage: pty.resize(fd, cols, rows)")));
^
../src/unix/pty.cc:288:18: error: invalid types ‘const int[int]’ for array subscript
int fd = args[0]->IntegerValue();
^
../src/unix/pty.cc:291:23: error: invalid types ‘const int[int]’ for array subscript
winp.ws_col = args[1]->IntegerValue();
^
../src/unix/pty.cc:292:23: error: invalid types ‘const int[int]’ for array subscript
winp.ws_row = args[2]->IntegerValue();
^
../src/unix/pty.cc:298:7: error: ‘New’ is not a member of ‘v8::String’
String::New("ioctl(2) failed.")));
^
../src/unix/pty.cc:298:39: error: ‘ThrowException’ was not declared in this scope
String::New("ioctl(2) failed.")));
^
../src/unix/pty.cc:301:20: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
return Undefined();
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:315:27: note: declared here
friend Local<Primitive> Undefined(Isolate* isolate);
^
../src/unix/pty.cc: At global scope:
../src/unix/pty.cc:311:18: error: ‘Arguments’ does not name a type
PtyGetProc(const Arguments& args) {
^
../src/unix/pty.cc:311:29: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
PtyGetProc(const Arguments& args) {
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h: In function ‘v8::Handle<v8::Value> PtyGetProc(const int&)’:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/unix/pty.cc:312:15: error: within this context
HandleScope scope;
^
../src/unix/pty.cc:314:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() != 2
^
../src/unix/pty.cc:315:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[0]->IsNumber()
^
../src/unix/pty.cc:316:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[1]->IsString()) {
^
../src/unix/pty.cc:318:7: error: ‘New’ is not a member of ‘v8::String’
String::New("Usage: pty.process(fd, tty)")));
^
../src/unix/pty.cc:318:50: error: ‘ThrowException’ was not declared in this scope
String::New("Usage: pty.process(fd, tty)")));
^
../src/unix/pty.cc:321:18: error: invalid types ‘const int[int]’ for array subscript
int fd = args[0]->IntegerValue();
^
../src/unix/pty.cc:323:32: error: invalid types ‘const int[int]’ for array subscript
String::Utf8Value tty_(args[1]->ToString());
^
../src/unix/pty.cc:329:22: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
return Undefined();
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:315:27: note: declared here
friend Local<Primitive> Undefined(Isolate* isolate);
^
../src/unix/pty.cc:332:25: error: ‘New’ is not a member of ‘v8::String’
Local<String> name_ = String::New(name);
^
../src/unix/pty.cc:334:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(name_);
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h: In function ‘void init(v8::Handle<v8::Object>)’:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/unix/pty.cc:555:15: error: within this context
HandleScope scope;
^
../src/unix/pty.cc:556:42: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [5], v8::Handle<v8::Value> (&)(const int&))’
NODE_SET_METHOD(target, "fork", PtyFork);
^
../src/unix/pty.cc:556:42: note: candidate is:
In file included from ../src/unix/pty.cc:17:0:
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../src/unix/pty.cc:556:42: note: cannot convert ‘PtyFork’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
NODE_SET_METHOD(target, "fork", PtyFork);
^
../src/unix/pty.cc:557:42: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [5], v8::Handle<v8::Value> (&)(const int&))’
NODE_SET_METHOD(target, "open", PtyOpen);
^
../src/unix/pty.cc:557:42: note: candidate is:
In file included from ../src/unix/pty.cc:17:0:
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../src/unix/pty.cc:557:42: note: cannot convert ‘PtyOpen’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
NODE_SET_METHOD(target, "open", PtyOpen);
^
../src/unix/pty.cc:558:46: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [7], v8::Handle<v8::Value> (&)(const int&))’
NODE_SET_METHOD(target, "resize", PtyResize);
^
../src/unix/pty.cc:558:46: note: candidate is:
In file included from ../src/unix/pty.cc:17:0:
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../src/unix/pty.cc:558:46: note: cannot convert ‘PtyResize’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
NODE_SET_METHOD(target, "resize", PtyResize);
^
../src/unix/pty.cc:559:48: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [8], v8::Handle<v8::Value> (&)(const int&))’
NODE_SET_METHOD(target, "process", PtyGetProc);
^
../src/unix/pty.cc:559:48: note: candidate is:
In file included from ../src/unix/pty.cc:17:0:
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../src/unix/pty.cc:559:48: note: cannot convert ‘PtyGetProc’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
NODE_SET_METHOD(target, "process", PtyGetProc);
^
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
make: Leaving directory `/home/jai/altair/node_modules/vfs-local/node_modules/pty.js/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/jai/.nvm/v4.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.13.0-44-generic
gyp ERR! command "/home/jai/.nvm/v4.2.0/bin/node" "/home/jai/.nvm/v4.2.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/jai/altair/node_modules/vfs-local/node_modules/pty.js
gyp ERR! node -v v4.2.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Linux 3.13.0-44-generic
npm ERR! argv "/home/jai/.nvm/v4.2.0/bin/node" "/home/jai/.nvm/v4.2.0/bin/npm" "install"
npm ERR! node v4.2.0
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! pty.js@0.2.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pty.js@0.2.3 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the pty.js 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 pty.js
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/jai/altair/npm-debug.log
Reply to this snippet →
> pty.js@0.2.3 install /home/jai/altair/node_modules/vfs-local/node_modules/pty.js
> node-gyp rebuild
make: Entering directory `/home/jai/altair/node_modules/vfs-local/node_modules/pty.js/build'
CXX(target) Release/obj.target/pty/src/unix/pty.o
../src/unix/pty.cc:65:15: error: ‘Arguments’ does not name a type
PtyFork(const Arguments&);
^
../src/unix/pty.cc:65:24: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
PtyFork(const Arguments&);
^
../src/unix/pty.cc:68:15: error: ‘Arguments’ does not name a type
PtyOpen(const Arguments&);
^
../src/unix/pty.cc:68:24: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
PtyOpen(const Arguments&);
^
../src/unix/pty.cc:71:17: error: ‘Arguments’ does not name a type
PtyResize(const Arguments&);
^
../src/unix/pty.cc:71:26: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
PtyResize(const Arguments&);
^
../src/unix/pty.cc:74:18: error: ‘Arguments’ does not name a type
PtyGetProc(const Arguments&);
^
../src/unix/pty.cc:74:27: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
PtyGetProc(const Arguments&);
^
../src/unix/pty.cc:104:15: error: ‘Arguments’ does not name a type
PtyFork(const Arguments& args) {
^
../src/unix/pty.cc:104:26: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
PtyFork(const Arguments& args) {
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h: In function ‘v8::Handle<v8::Value> PtyFork(const int&)’:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/unix/pty.cc:105:15: error: within this context
HandleScope scope;
^
../src/unix/pty.cc:107:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 6
^
../src/unix/pty.cc:108:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[0]->IsString()
^
../src/unix/pty.cc:109:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[1]->IsArray()
^
../src/unix/pty.cc:110:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[2]->IsArray()
^
../src/unix/pty.cc:111:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[3]->IsString()
^
../src/unix/pty.cc:112:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[4]->IsNumber()
^
../src/unix/pty.cc:113:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[5]->IsNumber()
^
../src/unix/pty.cc:114:16: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
|| (args.Length() >= 8 && !args[6]->IsNumber())
^
../src/unix/pty.cc:114:40: error: invalid types ‘const int[int]’ for array subscript
|| (args.Length() >= 8 && !args[6]->IsNumber())
^
../src/unix/pty.cc:115:16: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
|| (args.Length() >= 8 && !args[7]->IsNumber())) {
^
../src/unix/pty.cc:115:40: error: invalid types ‘const int[int]’ for array subscript
|| (args.Length() >= 8 && !args[7]->IsNumber())) {
^
../src/unix/pty.cc:117:7: error: ‘New’ is not a member of ‘v8::String’
String::New("Usage: pty.fork(file, args, env, cwd, cols, rows[, uid, gid])")));
^
../src/unix/pty.cc:117:84: error: ‘ThrowException’ was not declared in this scope
String::New("Usage: pty.fork(file, args, env, cwd, cols, rows[, uid, gid])")));
^
../src/unix/pty.cc:123:32: error: invalid types ‘const int[int]’ for array subscript
String::Utf8Value file(args[0]->ToString());
^
../src/unix/pty.cc:127:49: error: invalid types ‘const int[int]’ for array subscript
Local<Array> argv_ = Local<Array>::Cast(args[1]);
^
../src/unix/pty.cc:134:52: error: no matching function for call to ‘v8::Integer::New(int&)’
String::Utf8Value arg(argv_->Get(Integer::New(i))->ToString());
^
../src/unix/pty.cc:134:52: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2499:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
static Local<Integer> New(Isolate* isolate, int32_t value);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:140:48: error: invalid types ‘const int[int]’ for array subscript
Local<Array> env_ = Local<Array>::Cast(args[2]);
^
../src/unix/pty.cc:145:52: error: no matching function for call to ‘v8::Integer::New(int&)’
String::Utf8Value pair(env_->Get(Integer::New(i))->ToString());
^
../src/unix/pty.cc:145:52: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2499:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
static Local<Integer> New(Isolate* isolate, int32_t value);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:150:32: error: invalid types ‘const int[int]’ for array subscript
String::Utf8Value cwd_(args[3]->ToString());
^
../src/unix/pty.cc:155:23: error: invalid types ‘const int[int]’ for array subscript
winp.ws_col = args[4]->IntegerValue();
^
../src/unix/pty.cc:156:23: error: invalid types ‘const int[int]’ for array subscript
winp.ws_row = args[5]->IntegerValue();
^
../src/unix/pty.cc:163:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() >= 8) {
^
../src/unix/pty.cc:164:17: error: invalid types ‘const int[int]’ for array subscript
uid = args[6]->IntegerValue();
^
../src/unix/pty.cc:165:17: error: invalid types ‘const int[int]’ for array subscript
gid = args[7]->IntegerValue();
^
../src/unix/pty.cc:184:9: error: ‘New’ is not a member of ‘v8::String’
String::New("forkpty(3) failed.")));
^
../src/unix/pty.cc:184:43: error: ‘ThrowException’ was not declared in this scope
String::New("forkpty(3) failed.")));
^
../src/unix/pty.cc:206:11: error: ‘New’ is not a member of ‘v8::String’
String::New("Could not set master fd to nonblocking.")));
^
../src/unix/pty.cc:209:39: error: no matching function for call to ‘v8::Object::New()’
Local<Object> obj = Object::New();
^
../src/unix/pty.cc:209:39: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2933:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
static Local<Object> New(Isolate* isolate);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2933:24: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:210:16: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("fd"), Number::New(master));
^
../src/unix/pty.cc:210:53: error: no matching function for call to ‘v8::Number::New(int&)’
obj->Set(String::New("fd"), Number::New(master));
^
../src/unix/pty.cc:210:53: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:211:16: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("pid"), Number::New(pid));
^
../src/unix/pty.cc:211:51: error: no matching function for call to ‘v8::Number::New(pid_t&)’
obj->Set(String::New("pid"), Number::New(pid));
^
../src/unix/pty.cc:211:51: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:212:16: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("pty"), String::New(name));
^
../src/unix/pty.cc:212:36: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("pty"), String::New(name));
^
../src/unix/pty.cc:214:20: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(obj);
^
../src/unix/pty.cc:217:20: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
return Undefined();
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:315:27: note: declared here
friend Local<Primitive> Undefined(Isolate* isolate);
^
../src/unix/pty.cc: At global scope:
../src/unix/pty.cc:226:15: error: ‘Arguments’ does not name a type
PtyOpen(const Arguments& args) {
^
../src/unix/pty.cc:226:26: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
PtyOpen(const Arguments& args) {
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h: In function ‘v8::Handle<v8::Value> PtyOpen(const int&)’:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/unix/pty.cc:227:15: error: within this context
HandleScope scope;
^
../src/unix/pty.cc:229:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() != 2
^
../src/unix/pty.cc:230:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[0]->IsNumber()
^
../src/unix/pty.cc:231:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[1]->IsNumber()) {
^
../src/unix/pty.cc:233:7: error: ‘New’ is not a member of ‘v8::String’
String::New("Usage: pty.open(cols, rows)")));
^
../src/unix/pty.cc:233:50: error: ‘ThrowException’ was not declared in this scope
String::New("Usage: pty.open(cols, rows)")));
^
../src/unix/pty.cc:238:23: error: invalid types ‘const int[int]’ for array subscript
winp.ws_col = args[0]->IntegerValue();
^
../src/unix/pty.cc:239:23: error: invalid types ‘const int[int]’ for array subscript
winp.ws_row = args[1]->IntegerValue();
^
../src/unix/pty.cc:250:7: error: ‘New’ is not a member of ‘v8::String’
String::New("openpty(3) failed.")));
^
../src/unix/pty.cc:250:41: error: ‘ThrowException’ was not declared in this scope
String::New("openpty(3) failed.")));
^
../src/unix/pty.cc:255:7: error: ‘New’ is not a member of ‘v8::String’
String::New("Could not set master fd to nonblocking.")));
^
../src/unix/pty.cc:255:62: error: ‘ThrowException’ was not declared in this scope
String::New("Could not set master fd to nonblocking.")));
^
../src/unix/pty.cc:260:7: error: ‘New’ is not a member of ‘v8::String’
String::New("Could not set slave fd to nonblocking.")));
^
../src/unix/pty.cc:260:61: error: ‘ThrowException’ was not declared in this scope
String::New("Could not set slave fd to nonblocking.")));
^
../src/unix/pty.cc:263:35: error: no matching function for call to ‘v8::Object::New()’
Local<Object> obj = Object::New();
^
../src/unix/pty.cc:263:35: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2933:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
static Local<Object> New(Isolate* isolate);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2933:24: note: candidate expects 1 argument, 0 provided
../src/unix/pty.cc:264:12: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("master"), Number::New(master));
^
../src/unix/pty.cc:264:53: error: no matching function for call to ‘v8::Number::New(int&)’
obj->Set(String::New("master"), Number::New(master));
^
../src/unix/pty.cc:264:53: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:265:12: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("slave"), Number::New(slave));
^
../src/unix/pty.cc:265:51: error: no matching function for call to ‘v8::Number::New(int&)’
obj->Set(String::New("slave"), Number::New(slave));
^
../src/unix/pty.cc:265:51: note: candidate is:
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jai/.node-gyp/4.2.0/include/node/v8.h:2486:24: note: candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:266:12: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("pty"), String::New(name));
^
../src/unix/pty.cc:266:32: error: ‘New’ is not a member of ‘v8::String’
obj->Set(String::New("pty"), String::New(name));
^
../src/unix/pty.cc:268:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(obj);
^
../src/unix/pty.cc: At global scope:
../src/unix/pty.cc:277:17: error: ‘Arguments’ does not name a type
PtyResize(const Arguments& args) {
^
../src/unix/pty.cc:277:28: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
PtyResize(const Arguments& args) {
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h: In function ‘v8::Handle<v8::Value> PtyResize(const int&)’:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/unix/pty.cc:278:15: error: within this context
HandleScope scope;
^
../src/unix/pty.cc:280:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() != 3
^
../src/unix/pty.cc:281:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[0]->IsNumber()
^
../src/unix/pty.cc:282:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[1]->IsNumber()
^
../src/unix/pty.cc:283:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[2]->IsNumber()) {
^
../src/unix/pty.cc:285:7: error: ‘New’ is not a member of ‘v8::String’
String::New("Usage: pty.resize(fd, cols, rows)")));
^
../src/unix/pty.cc:285:56: error: ‘ThrowException’ was not declared in this scope
String::New("Usage: pty.resize(fd, cols, rows)")));
^
../src/unix/pty.cc:288:18: error: invalid types ‘const int[int]’ for array subscript
int fd = args[0]->IntegerValue();
^
../src/unix/pty.cc:291:23: error: invalid types ‘const int[int]’ for array subscript
winp.ws_col = args[1]->IntegerValue();
^
../src/unix/pty.cc:292:23: error: invalid types ‘const int[int]’ for array subscript
winp.ws_row = args[2]->IntegerValue();
^
../src/unix/pty.cc:298:7: error: ‘New’ is not a member of ‘v8::String’
String::New("ioctl(2) failed.")));
^
../src/unix/pty.cc:298:39: error: ‘ThrowException’ was not declared in this scope
String::New("ioctl(2) failed.")));
^
../src/unix/pty.cc:301:20: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
return Undefined();
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:315:27: note: declared here
friend Local<Primitive> Undefined(Isolate* isolate);
^
../src/unix/pty.cc: At global scope:
../src/unix/pty.cc:311:18: error: ‘Arguments’ does not name a type
PtyGetProc(const Arguments& args) {
^
../src/unix/pty.cc:311:29: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
PtyGetProc(const Arguments& args) {
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h: In function ‘v8::Handle<v8::Value> PtyGetProc(const int&)’:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/unix/pty.cc:312:15: error: within this context
HandleScope scope;
^
../src/unix/pty.cc:314:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() != 2
^
../src/unix/pty.cc:315:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[0]->IsNumber()
^
../src/unix/pty.cc:316:17: error: invalid types ‘const int[int]’ for array subscript
|| !args[1]->IsString()) {
^
../src/unix/pty.cc:318:7: error: ‘New’ is not a member of ‘v8::String’
String::New("Usage: pty.process(fd, tty)")));
^
../src/unix/pty.cc:318:50: error: ‘ThrowException’ was not declared in this scope
String::New("Usage: pty.process(fd, tty)")));
^
../src/unix/pty.cc:321:18: error: invalid types ‘const int[int]’ for array subscript
int fd = args[0]->IntegerValue();
^
../src/unix/pty.cc:323:32: error: invalid types ‘const int[int]’ for array subscript
String::Utf8Value tty_(args[1]->ToString());
^
../src/unix/pty.cc:329:22: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
return Undefined();
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:315:27: note: declared here
friend Local<Primitive> Undefined(Isolate* isolate);
^
../src/unix/pty.cc:332:25: error: ‘New’ is not a member of ‘v8::String’
Local<String> name_ = String::New(name);
^
../src/unix/pty.cc:334:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(name_);
^
In file included from ../src/unix/pty.cc:16:0:
/home/jai/.node-gyp/4.2.0/include/node/v8.h: In function ‘void init(v8::Handle<v8::Object>)’:
/home/jai/.node-gyp/4.2.0/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/unix/pty.cc:555:15: error: within this context
HandleScope scope;
^
../src/unix/pty.cc:556:42: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [5], v8::Handle<v8::Value> (&)(const int&))’
NODE_SET_METHOD(target, "fork", PtyFork);
^
../src/unix/pty.cc:556:42: note: candidate is:
In file included from ../src/unix/pty.cc:17:0:
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../src/unix/pty.cc:556:42: note: cannot convert ‘PtyFork’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
NODE_SET_METHOD(target, "fork", PtyFork);
^
../src/unix/pty.cc:557:42: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [5], v8::Handle<v8::Value> (&)(const int&))’
NODE_SET_METHOD(target, "open", PtyOpen);
^
../src/unix/pty.cc:557:42: note: candidate is:
In file included from ../src/unix/pty.cc:17:0:
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../src/unix/pty.cc:557:42: note: cannot convert ‘PtyOpen’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
NODE_SET_METHOD(target, "open", PtyOpen);
^
../src/unix/pty.cc:558:46: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [7], v8::Handle<v8::Value> (&)(const int&))’
NODE_SET_METHOD(target, "resize", PtyResize);
^
../src/unix/pty.cc:558:46: note: candidate is:
In file included from ../src/unix/pty.cc:17:0:
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../src/unix/pty.cc:558:46: note: cannot convert ‘PtyResize’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
NODE_SET_METHOD(target, "resize", PtyResize);
^
../src/unix/pty.cc:559:48: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [8], v8::Handle<v8::Value> (&)(const int&))’
NODE_SET_METHOD(target, "process", PtyGetProc);
^
../src/unix/pty.cc:559:48: note: candidate is:
In file included from ../src/unix/pty.cc:17:0:
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/home/jai/.node-gyp/4.2.0/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../src/unix/pty.cc:559:48: note: cannot convert ‘PtyGetProc’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
NODE_SET_METHOD(target, "process", PtyGetProc);
^
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
make: Leaving directory `/home/jai/altair/node_modules/vfs-local/node_modules/pty.js/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/jai/.nvm/v4.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.13.0-44-generic
gyp ERR! command "/home/jai/.nvm/v4.2.0/bin/node" "/home/jai/.nvm/v4.2.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/jai/altair/node_modules/vfs-local/node_modules/pty.js
gyp ERR! node -v v4.2.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Linux 3.13.0-44-generic
npm ERR! argv "/home/jai/.nvm/v4.2.0/bin/node" "/home/jai/.nvm/v4.2.0/bin/npm" "install"
npm ERR! node v4.2.0
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! pty.js@0.2.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pty.js@0.2.3 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the pty.js 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 pty.js
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/jai/altair/npm-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment