You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then I followed the first tip and ran "make":
gale@gale-ThinkPad-T450s:/Code/chirp/node_modules/kerberos/build$ make
make: Nothing to be done for `all'.
the second tip's output:
gale@gale-ThinkPad-T450s:/Code/chirp/node_modules/kerberos/build$ cd /home/gale/Code/chirp/node_modules/bson/build
gale@gale-ThinkPad-T450s:~/Code/chirp/node_modules/bson/build$ make
CXX(target) Release/obj.target/bson/ext/bson.o
In file included from ../ext/bson.h:17:0,
from ../ext/bson.cc:36:
../../nan/nan.h:261:25: error: redefinition of ‘template v8::Local NanEnsureLocal(v8::Local)’
NAN_INLINE v8::Local NanEnsureLocal(v8::Local val) {
^
../../nan/nan.h:256:25: error: ‘template v8::Local NanEnsureLocal(v8::Handle)’ previously declared here
NAN_INLINE v8::Local NanEnsureLocal(v8::Handle val) {
^
../../nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^
../../nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(char, size_t, int)’:
../../nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../../nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(const char, uint32_t)’:
../../nan/nan.h:672:67: error: call of overloaded ‘New(v8::Isolate, const char&, uint32_t&)’ is ambiguous
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
../../nan/nan.h:672:67: note: candidates are:
In file included from ../ext/bson.cc:24:0:
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
^
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:43:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, char_, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from ‘const char_’ to ‘char_’
In file included from ../ext/bson.h:17:0,
from ../ext/bson.cc:36:
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(uint32_t)’:
../../nan/nan.h:676:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocalv8::Object’ to ‘v8::Localv8::Object’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^
../../nan/nan.h: In function ‘v8::Localv8::Object NanBufferUse(char_, uint32_t)’:
../../nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^
../ext/bson.cc: In static member function ‘static void BSON::BSONDeserialize(const v8::FunctionCallbackInfov8::Value&)’:
../ext/bson.cc:825:44: warning: ‘ssize_t node::DecodeBytes(v8::Localv8::Value, node::encoding)’ is deprecated (declared at /home/gale/.node-gyp/5.2.0/include/node/node.h:317): Use DecodeBytes(isolate, ...) [-Wdeprecated-declarations]
ssize_t len = DecodeBytes(args[0], BINARY);
^
../ext/bson.cc:833:41: warning: ‘ssize_t node::DecodeWrite(char_, size_t, v8::Localv8::Value, node::encoding)’ is deprecated (declared at /home/gale/.node-gyp/5.2.0/include/node/node.h:330): Use DecodeWrite(isolate, ...) [-Wdeprecated-declarations]
DecodeWrite(data, len, args[0], BINARY);
^
../ext/bson.cc: In static member function ‘static void BSON::BSONSerialize(const v8::FunctionCallbackInfov8::Value&)’:
../ext/bson.cc:928:73: warning: ‘v8::Localv8::Value node::Encode(const void_, size_t, node::encoding)’ is deprecated (declared at /home/gale/.node-gyp/5.2.0/include/node/node.h:298): Use Encode(isolate, ...) [-Wdeprecated-declarations]
Local bin_value = Encode(serialized_object, object_size, BINARY)->ToString();
^
In file included from ../ext/bson.h:17:0,
from ../ext/bson.cc:36:
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(const char_, uint32_t)’:
../../nan/nan.h:673:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *** [Release/obj.target/bson/ext/bson.o] Error 1
And then I absolutely had no idea with this, please help me, thanks a lot.
The text was updated successfully, but these errors were encountered:
I couldn't install the app, the errors will be listed below:
First, I got the output like this after I ran "sudo npm install":
make: Entering directory
/home/gale/Code/chirp/node_modules/kerberos/build' SOLINK_MODULE(target) Release/obj.target/kerberos.node COPY Release/kerberos.node make: Leaving directory
/home/gale/Code/chirp/node_modules/kerberos/build'make: Entering directory
/home/gale/Code/chirp/node_modules/bson/build' CXX(target) Release/obj.target/bson/ext/bson.o make: Leaving directory
/home/gale/Code/chirp/node_modules/bson/build'[email protected] /home/gale/Code/chirp
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ └── [email protected]
└── [email protected]
then I followed the first tip and ran "make":
gale@gale-ThinkPad-T450s:
/Code/chirp/node_modules/kerberos/build$ make/Code/chirp/node_modules/kerberos/build$ cd /home/gale/Code/chirp/node_modules/bson/buildmake: Nothing to be done for `all'.
the second tip's output:
gale@gale-ThinkPad-T450s:
gale@gale-ThinkPad-T450s:~/Code/chirp/node_modules/bson/build$ make
CXX(target) Release/obj.target/bson/ext/bson.o
In file included from ../ext/bson.h:17:0,
from ../ext/bson.cc:36:
../../nan/nan.h:261:25: error: redefinition of ‘template v8::Local NanEnsureLocal(v8::Local)’
NAN_INLINE v8::Local NanEnsureLocal(v8::Local val) {
^
../../nan/nan.h:256:25: error: ‘template v8::Local NanEnsureLocal(v8::Handle)’ previously declared here
NAN_INLINE v8::Local NanEnsureLocal(v8::Handle val) {
^
../../nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^
../../nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(char, size_t, int)’:
../../nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../../nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(const char, uint32_t)’:
../../nan/nan.h:672:67: error: call of overloaded ‘New(v8::Isolate, const char&, uint32_t&)’ is ambiguous
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
../../nan/nan.h:672:67: note: candidates are:
In file included from ../ext/bson.cc:24:0:
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
^
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:43:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, char_, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from ‘const char_’ to ‘char_’
In file included from ../ext/bson.h:17:0,
from ../ext/bson.cc:36:
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(uint32_t)’:
../../nan/nan.h:676:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocalv8::Object’ to ‘v8::Localv8::Object’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^
../../nan/nan.h: In function ‘v8::Localv8::Object NanBufferUse(char_, uint32_t)’:
../../nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^
../ext/bson.cc: In static member function ‘static void BSON::BSONDeserialize(const v8::FunctionCallbackInfov8::Value&)’:
../ext/bson.cc:825:44: warning: ‘ssize_t node::DecodeBytes(v8::Localv8::Value, node::encoding)’ is deprecated (declared at /home/gale/.node-gyp/5.2.0/include/node/node.h:317): Use DecodeBytes(isolate, ...) [-Wdeprecated-declarations]
ssize_t len = DecodeBytes(args[0], BINARY);
^
../ext/bson.cc:833:41: warning: ‘ssize_t node::DecodeWrite(char_, size_t, v8::Localv8::Value, node::encoding)’ is deprecated (declared at /home/gale/.node-gyp/5.2.0/include/node/node.h:330): Use DecodeWrite(isolate, ...) [-Wdeprecated-declarations]
DecodeWrite(data, len, args[0], BINARY);
^
../ext/bson.cc: In static member function ‘static void BSON::BSONSerialize(const v8::FunctionCallbackInfov8::Value&)’:
../ext/bson.cc:928:73: warning: ‘v8::Localv8::Value node::Encode(const void_, size_t, node::encoding)’ is deprecated (declared at /home/gale/.node-gyp/5.2.0/include/node/node.h:298): Use Encode(isolate, ...) [-Wdeprecated-declarations]
Local bin_value = Encode(serialized_object, object_size, BINARY)->ToString();
^
In file included from ../ext/bson.h:17:0,
from ../ext/bson.cc:36:
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(const char_, uint32_t)’:
../../nan/nan.h:673:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *** [Release/obj.target/bson/ext/bson.o] Error 1
And then I absolutely had no idea with this, please help me, thanks a lot.
The text was updated successfully, but these errors were encountered: