Skip to content

npm install error  #6

@Indeserpen

Description

@Indeserpen

Hello have some problems during install
system:
root@kali:# uname -a
Linux kali 4.6.0-kali1-amd64 #1 SMP Debian 4.6.4-1kali1 (2016-07-21) x86_64 GNU/Linux
root@kali:
# nodejs -v
v4.3.1
root@kali:#
Here is output of error:
root@kali:
/Malware/malcontrol# npm install

v8-profiler@4.0.1 install /root/Malware/malcontrol/node_modules/v8-profiler
node-gyp rebuild

make: Entering directory '/root/Malware/malcontrol/node_modules/v8-profiler/build'
CXX(target) Release/obj.target/profiler/cpu_profiler.o
In file included from ../cpu_profiler.cc:1:0:
../cpu_profiler.h:19:57: error: ‘Arguments’ does not name a type
static Handle GetProfilesCount(const Arguments& args);
^~~~~~~~~
../cpu_profiler.h:20:51: error: ‘Arguments’ does not name a type
static Handle GetProfile(const Arguments& args);
^~~~~~~~~
../cpu_profiler.h:21:52: error: ‘Arguments’ does not name a type
static Handle FindProfile(const Arguments& args);
^~~~~~~~~
../cpu_profiler.h:22:55: error: ‘Arguments’ does not name a type
static Handle StartProfiling(const Arguments& args);
^~~~~~~~~
../cpu_profiler.h:23:54: error: ‘Arguments’ does not name a type
static Handle StopProfiling(const Arguments& args);
^~~~~~~~~
../cpu_profiler.h:24:58: error: ‘Arguments’ does not name a type
static Handle DeleteAllProfiles(const Arguments& args);
^~~~~~~~~
In file included from ../cpu_profiler.cc:2:0:
../profile.h:15:61: error: ‘AccessorInfo’ does not name a type
static Handle GetUid(Local property, const AccessorInfo& info);
^~~~~~~~~~~~
../profile.h:16:63: error: ‘AccessorInfo’ does not name a type
static Handle GetTitle(Local property, const AccessorInfo& info);
^~~~~~~~~~~~
../profile.h:17:65: error: ‘AccessorInfo’ does not name a type
static Handle GetTopRoot(Local property, const AccessorInfo& info);
^~~~~~~~~~~~
../profile.h:18:68: error: ‘AccessorInfo’ does not name a type
static Handle GetBottomRoot(Local property, const AccessorInfo& info);
^~~~~~~~~~~~
../profile.h:19:37: error: ‘Arguments’ does not name a type
static Handle Delete(const Arguments& args);
^~~~~~~~~
../cpu_profiler.cc: In static member function ‘static void nodex::CpuProfiler::Initialize(v8::Handlev8::Object)’:
../cpu_profiler.cc:8:21: error: ‘v8::HandleScope::HandleScope()’ is protected within this context
HandleScope scope;
^~~~~
In file included from /usr/include/nodejs/deps/v8/include/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../cpu_profiler.cc:10:87: error: no matching function for call to ‘v8::Persistentv8::ObjectTemplate::New(v8::Localv8::ObjectTemplate)’
pu_profiler_template_ = Persistent::New(ObjectTemplate::New());
^
In file included from /usr/include/nodejs/deps/v8/include/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:7181:4: note: candidate: static T* v8::PersistentBase::New(v8::Isolate_, T_) [with T = v8::ObjectTemplate]
T* PersistentBase::New(Isolate* isolate, T* that) {
^~~~~~~~~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8.h:7181:4: note: candidate expects 2 arguments, 1 provided
../cpu_profiler.cc:11:31: error: base operand of ‘->’ has non-pointer type ‘v8::Persistentv8::ObjectTemplate’
cpu_profiler_template_->SetInternalFieldCount(1);
^~
../cpu_profiler.cc:13:62: error: base operand of ‘->’ has non-pointer type ‘v8::Persistentv8::ObjectTemplate’
Local cpuProfilerObj = cpu_profiler_template_->NewInstance();
^~
../cpu_profiler.cc:15:90: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [17], v8::Handlev8::Value (&)(const int&))’
SET_METHOD(cpuProfilerObj, "getProfilesCount", CpuProfiler::GetProfilesCount);
^
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/src/node.h:236:13: note: candidate: template void node::NODE_SET_METHOD(const TypeName&, const char
, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:15:90: note: cannot convert ‘nodex::CpuProfiler::GetProfilesCount’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
SET_METHOD(cpuProfilerObj, "getProfilesCount", CpuProfiler::GetProfilesCount);
^
../cpu_profiler.cc:16:78: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [11], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "getProfile", CpuProfiler::GetProfile);
^
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/src/node.h:236:13: note: candidate: template void node::NODE_SET_METHOD(const TypeName&, const char
, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:16:78: note: cannot convert ‘nodex::CpuProfiler::GetProfile’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void (
)(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "getProfile", CpuProfiler::GetProfile);
^
../cpu_profiler.cc:17:80: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [12], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "findProfile", CpuProfiler::FindProfile);
^
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/src/node.h:236:13: note: candidate: template void node::NODE_SET_METHOD(const TypeName&, const char_, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:17:80: note: cannot convert ‘nodex::CpuProfiler::FindProfile’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "findProfile", CpuProfiler::FindProfile);
^
../cpu_profiler.cc:18:86: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [15], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "startProfiling", CpuProfiler::StartProfiling);
^
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/src/node.h:236:13: note: candidate: template void node::NODE_SET_METHOD(const TypeName&, const char
, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:18:86: note: cannot convert ‘nodex::CpuProfiler::StartProfiling’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "startProfiling", CpuProfiler::StartProfiling);
^
../cpu_profiler.cc:19:84: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [14], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "stopProfiling", CpuProfiler::StopProfiling);
^
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/src/node.h:236:13: note: candidate: template void node::NODE_SET_METHOD(const TypeName&, const char
, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:19:84: note: cannot convert ‘nodex::CpuProfiler::StopProfiling’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "stopProfiling", CpuProfiler::StopProfiling);
^
../cpu_profiler.cc:20:92: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [18], v8::Handlev8::Value (&)(const int&))’
ET_METHOD(cpuProfilerObj, "deleteAllProfiles", CpuProfiler::DeleteAllProfiles);
^
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/src/node.h:236:13: note: candidate: template void node::NODE_SET_METHOD(const TypeName&, const char
, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^~~~~~~~~~~~~~~
/usr/include/nodejs/src/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:20:92: note: cannot convert ‘nodex::CpuProfiler::DeleteAllProfiles’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
ET_METHOD(cpuProfilerObj, "deleteAllProfiles", CpuProfiler::DeleteAllProfiles);
^
../cpu_profiler.cc:22:21: error: ‘NewSymbol’ is not a member of ‘v8::String’
target->Set(String::NewSymbol("cpuProfiler"), cpuProfilerObj);
^~~~~~
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:28:55: error: ‘Arguments’ does not name a type
Handle CpuProfiler::GetProfilesCount(const Arguments& args) {
^~~~~~~~~
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::GetProfilesCount(const int&)’:
../cpu_profiler.cc:29:21: error: ‘v8::HandleScope::HandleScope()’ is protected within this context
HandleScope scope;
^~~~~
In file included from /usr/include/nodejs/deps/v8/include/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../cpu_profiler.cc:30:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Integer::New(v8::CpuProfiler::GetProfilesCount()));
^~~~~
../cpu_profiler.cc:30:41: error: ‘GetProfilesCount’ is not a member of ‘v8::CpuProfiler’
return scope.Close(Integer::New(v8::CpuProfiler::GetProfilesCount()));
^~
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:33:49: error: ‘Arguments’ does not name a type
Handle CpuProfiler::GetProfile(const Arguments& args) {
^~~~~~~~~
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::GetProfile(const int&)’:
../cpu_profiler.cc:34:21: error: ‘v8::HandleScope::HandleScope()’ is protected within this context
HandleScope scope;
^~~~~
In file included from /usr/include/nodejs/deps/v8/include/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../cpu_profiler.cc:35:18: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1) {
^~~~~~
../cpu_profiler.cc:36:52: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::Error(String::New("No index specified")));
^~~~~~
../cpu_profiler.cc:36:86: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::Error(String::New("No index specified")));
^
../cpu_profiler.cc:37:27: error: invalid types ‘const int[int]’ for array subscript
} else if (!args[0]->IsInt32()) {
^
../cpu_profiler.cc:38:56: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::TypeError(String::New("Argument must be an integer")));
^~~~~~
../cpu_profiler.cc:38:99: error: ‘ThrowException’ was not declared in this scope
rowException(Exception::TypeError(String::New("Argument must be an integer")));
^
../cpu_profiler.cc:40:31: error: invalid types ‘const int[int]’ for array subscript
int32_t index = args[0]->Int32Value();
^
../cpu_profiler.cc:41:37: error: ‘GetProfile’ is not a member of ‘v8::CpuProfiler’
const CpuProfile* profile = v8::CpuProfiler::GetProfile(index);
^~
../cpu_profiler.cc:42:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Profile::New(profile));
^~~~~
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:45:50: error: ‘Arguments’ does not name a type
Handle CpuProfiler::FindProfile(const Arguments& args) {
^~~~~~~~~
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::FindProfile(const int&)’:
../cpu_profiler.cc:46:21: error: ‘v8::HandleScope::HandleScope()’ is protected within this context
HandleScope scope;
^~~~~
In file included from /usr/include/nodejs/deps/v8/include/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../cpu_profiler.cc:47:18: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1) {
^~~~~~
../cpu_profiler.cc:48:52: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::Error(String::New("No index specified")));
^~~~~~
../cpu_profiler.cc:48:86: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::Error(String::New("No index specified")));
^
../cpu_profiler.cc:49:27: error: invalid types ‘const int[int]’ for array subscript
} else if (!args[0]->IsInt32()) {
^
../cpu_profiler.cc:50:56: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::TypeError(String::New("Argument must be an integer")));
^~~~~~
../cpu_profiler.cc:50:99: error: ‘ThrowException’ was not declared in this scope
rowException(Exception::TypeError(String::New("Argument must be an integer")));
^
../cpu_profiler.cc:52:30: error: invalid types ‘const int[int]’ for array subscript
uint32_t uid = args[0]->Uint32Value();
^
../cpu_profiler.cc:53:37: error: ‘FindProfile’ is not a member of ‘v8::CpuProfiler’
const CpuProfile* profile = v8::CpuProfiler::FindProfile(uid);
^~
../cpu_profiler.cc:54:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Profile::New(profile));
^~~~~
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:57:53: error: ‘Arguments’ does not name a type
Handle CpuProfiler::StartProfiling(const Arguments& args) {
^~~~~~~~~
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::StartProfiling(const int&)’:
../cpu_profiler.cc:58:21: error: ‘v8::HandleScope::HandleScope()’ is protected within this context
HandleScope scope;
^~~~~
In file included from /usr/include/nodejs/deps/v8/include/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../cpu_profiler.cc:59:36: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^~~~~~
../cpu_profiler.cc:59:57: error: invalid types ‘const int[int]’ for array subscript
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:59:73: error: ‘New’ is not a member of ‘v8::String’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^~~~~~
../cpu_profiler.cc:60:46: error: cannot call member function ‘void v8::CpuProfiler::StartProfiling(v8::Localv8::String, bool)’ without object
v8::CpuProfiler::StartProfiling(title);
^
../cpu_profiler.cc:61:26: error: too few arguments to function ‘v8::Localv8::Primitive v8::Undefined(v8::Isolate
)’
return Undefined();
^
In file included from /usr/include/nodejs/deps/v8/include/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:315:27: note: declared here
friend Local Undefined(Isolate_ isolate);
^~~~~~~~~
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:64:52: error: ‘Arguments’ does not name a type
Handle CpuProfiler::StopProfiling(const Arguments& args) {
^~~~~~~~~
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::StopProfiling(const int&)’:
../cpu_profiler.cc:65:21: error: ‘v8::HandleScope::HandleScope()’ is protected within this context
HandleScope scope;
^~~~~
In file included from /usr/include/nodejs/deps/v8/include/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../cpu_profiler.cc:66:36: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^~~~~~
../cpu_profiler.cc:66:57: error: invalid types ‘const int[int]’ for array subscript
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:66:73: error: ‘New’ is not a member of ‘v8::String’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^~~~~~
../cpu_profiler.cc:67:73: error: cannot call member function ‘v8::CpuProfile* v8::CpuProfiler::StopProfiling(v8::Localv8::String)’ without object
const CpuProfile* profile = v8::CpuProfiler::StopProfiling(title);
^
../cpu_profiler.cc:68:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Profile::New(profile));
^~~~~
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:71:56: error: ‘Arguments’ does not name a type
Handle CpuProfiler::DeleteAllProfiles(const Arguments& args) {
^~~~~~~~~
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::DeleteAllProfiles(const int&)’:
../cpu_profiler.cc:72:9: error: ‘DeleteAllProfiles’ is not a member of ‘v8::CpuProfiler’
v8::CpuProfiler::DeleteAllProfiles();
^~
../cpu_profiler.cc:73:26: error: too few arguments to function ‘v8::Localv8::Primitive v8::Undefined(v8::Isolate_)’
return Undefined();
^
In file included from /usr/include/nodejs/deps/v8/include/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:315:27: note: declared here
friend Local Undefined(Isolate_ isolate);
^~~~~~~~~
profiler.target.mk:99: recipe for target 'Release/obj.target/profiler/cpu_profiler.o' failed
make: *** [Release/obj.target/profiler/cpu_profiler.o] Error 1
make: Leaving directory '/root/Malware/malcontrol/node_modules/v8-profiler/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/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 4.6.0-kali1-amd64
command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /root/Malware/malcontrol/node_modules/v8-profiler
gyp ERR! node -v v4.3.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! v8-profiler@4.0.1 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-profiler@4.0.1 install script.
npm ERR! This is most likely a problem with the v8-profiler 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 v8-profiler
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 4.6.0-kali1-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /root/Malware/malcontrol
npm ERR! node -v v4.3.1
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
\

toobusy@0.2.4 install /root/Malware/malcontrol/node_modules/toobusy
node-gyp rebuild

make: Entering directory '/root/Malware/malcontrol/node_modules/toobusy/build'
CXX(target) Release/obj.target/toobusy/toobusy.o
../toobusy.cc:25:29: error: ‘Arguments’ does not name a type
Handle TooBusy(const Arguments& args) {
^~~~~~~~~
../toobusy.cc: In function ‘v8::Handlev8::Value TooBusy(const int&)’:
../toobusy.cc:37:25: error: too few arguments to function ‘v8::Localv8::Boolean v8::True(v8::Isolate_)’
return block ? True() : False();
^
In file included from ../toobusy.cc:1:0:
/usr/include/nodejs/deps/v8/include/v8.h:8139:16: note: declared here
Local True(Isolate_ isolate) {
^~~~
../toobusy.cc:37:35: error: too few arguments to function ‘v8::Localv8::Boolean v8::False(v8::Isolate_)’
return block ? True() : False();
^
In file included from ../toobusy.cc:1:0:
/usr/include/nodejs/deps/v8/include/v8.h:8148:16: note: declared here
Local False(Isolate_ isolate) {
^~~~~
../toobusy.cc: At global scope:
../toobusy.cc:40:30: error: ‘Arguments’ does not name a type
Handle ShutDown(const Arguments& args) {
^~~~~~~~~
../toobusy.cc: In function ‘v8::Handlev8::Value ShutDown(const int&)’:
../toobusy.cc:45:22: error: too few arguments to function ‘v8::Localv8::Primitive v8::Undefined(v8::Isolate_)’
return Undefined();
^
In file included from ../toobusy.cc:1:0:
/usr/include/nodejs/deps/v8/include/v8.h:315:27: note: declared here
friend Local Undefined(Isolate_ isolate);
^~~~~~~~~
../toobusy.cc: At global scope:
../toobusy.cc:48:25: error: ‘Arguments’ does not name a type
Handle Lag(const Arguments& args) {
^~~~~~~~~
../toobusy.cc: In function ‘v8::Handlev8::Value Lag(const int&)’:
../toobusy.cc:49:17: error: ‘v8::HandleScope::HandleScope()’ is protected within this context
HandleScope scope;
^~~~~
In file included from ../toobusy.cc:1:0:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../toobusy.cc:50:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Integer::New(s_currentLag));
^~~~~
../toobusy.cc:50:49: error: no matching function for call to ‘v8::Integer::New(uint32_t&)’
return scope.Close(Integer::New(s_currentLag));
^
In file included from ../toobusy.cc:1:0:
/usr/include/nodejs/deps/v8/include/v8.h:2499:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate_, int32_t)
static Local New(Isolate_ isolate, int32_t value);
^~~
/usr/include/nodejs/deps/v8/include/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided
../toobusy.cc: At global scope:
../toobusy.cc:53:35: error: ‘Arguments’ does not name a type
Handle HighWaterMark(const Arguments& args) {
^~~~~~~~~
../toobusy.cc: In function ‘v8::Handlev8::Value HighWaterMark(const int&)’:
../toobusy.cc:54:17: error: ‘v8::HandleScope::HandleScope()’ is protected within this context
HandleScope scope;
^~~~~
In file included from ../toobusy.cc:1:0:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../toobusy.cc:56:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() >= 1) {
^~~~~~
../toobusy.cc:57:20: error: invalid types ‘const int[int]’ for array subscript
if (!args[0]->IsNumber()) {
^
../toobusy.cc:58:20: error: ‘ThrowException’ is not a member of ‘v8’
return v8::ThrowException(
^~
../toobusy.cc:60:21: error: ‘New’ is not a member of ‘v8::String’
v8::String::New("expected numeric first argument")));
^~
../toobusy.cc:62:25: error: invalid types ‘const int[int]’ for array subscript
int hwm = args[0]->Int32Value();
^
../toobusy.cc:64:20: error: ‘ThrowException’ is not a member of ‘v8’
return v8::ThrowException(
^~
../toobusy.cc:66:21: error: ‘New’ is not a member of ‘v8::String’
v8::String::New("maximum lag should be greater than 10ms")));
^~
../toobusy.cc:71:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Number::New(HIGH_WATER_MARK_MS));
^~~~~
../toobusy.cc:71:54: error: no matching function for call to ‘v8::Number::New(unsigned int&)’
return scope.Close(Number::New(HIGH_WATER_MARK_MS));
^
In file included from ../toobusy.cc:1:0:
/usr/include/nodejs/deps/v8/include/v8.h:2486:24: note: candidate: static v8::Localv8::Number v8::Number::New(v8::Isolate_, double)
static Local New(Isolate_ isolate, double value);
^~~
/usr/include/nodejs/deps/v8/include/v8.h:2486:24: note: candidate expects 2 arguments, 1 provided
../toobusy.cc: In function ‘void init(v8::Handlev8::Object)’:
../toobusy.cc:89:17: error: ‘v8::HandleScope::HandleScope()’ is protected within this context
HandleScope scope;
^~~~~
In file included from ../toobusy.cc:1:0:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../toobusy.cc:91:17: error: ‘New’ is not a member of ‘v8::String’
target->Set(String::New("toobusy"), FunctionTemplate::New(TooBusy)->GetFunction());
^~~~~~
../toobusy.cc:91:70: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
target->Set(String::New("toobusy"), FunctionTemplate::New(TooBusy)->GetFunction());
^
In file included from ../toobusy.cc:1:0:
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate_, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int)
static Local New(
^~~
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate_’
../toobusy.cc:92:17: error: ‘New’ is not a member of ‘v8::String’
target->Set(String::New("shutdown"), FunctionTemplate::New(ShutDown)->GetFunction());
^~~~~~
../toobusy.cc:92:72: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
target->Set(String::New("shutdown"), FunctionTemplate::New(ShutDown)->GetFunction());
^
In file included from ../toobusy.cc:1:0:
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate_, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int)
static Local New(
^~~
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate_’
../toobusy.cc:93:17: error: ‘New’ is not a member of ‘v8::String’
target->Set(String::New("lag"), FunctionTemplate::New(Lag)->GetFunction());
^~~~~~
../toobusy.cc:93:62: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
target->Set(String::New("lag"), FunctionTemplate::New(Lag)->GetFunction());
^
In file included from ../toobusy.cc:1:0:
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate_, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int)
static Local New(
^~~
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate_’
../toobusy.cc:94:17: error: ‘New’ is not a member of ‘v8::String’
target->Set(String::New("maxLag"), FunctionTemplate::New(HighWaterMark)->GetFunction());
^~~~~~
../toobusy.cc:94:75: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
rget->Set(String::New("maxLag"), FunctionTemplate::New(HighWaterMark)->GetFunction());
^
In file included from ../toobusy.cc:1:0:
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate_, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int)
static Local New(
^~~
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate_’
../toobusy.cc:96:74: error: invalid conversion from ‘void ()(uv_timer_t, int) {aka void ()(uv_timer_s, int)}’ to ‘uv_timer_cb {aka void ()(uv_timer_s)}’ [-fpermissive]
uv_timer_start(&s_timer, every_second, POLL_PERIOD_MS, POLL_PERIOD_MS);
^
In file included from ../toobusy.cc:3:0:
/usr/include/nodejs/deps/uv/include/uv.h:782:15: note: initializing argument 2 of ‘int uv_timer_start(uv_timer_t_, uv_timer_cb, uint64_t, uint64_t)’
UV_EXTERN int uv_timer_start(uv_timer_t_ handle,
^~~~~~~~~~~~~~
toobusy.target.mk:94: recipe for target 'Release/obj.target/toobusy/toobusy.o' failed
make: *** [Release/obj.target/toobusy/toobusy.o] Error 1
make: Leaving directory '/root/Malware/malcontrol/node_modules/toobusy/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/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 4.6.0-kali1-amd64
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /root/Malware/malcontrol/node_modules/toobusy
gyp ERR! node -v v4.3.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

contextify@0.1.15 install /root/Malware/malcontrol/node_modules/jsdom/node_modules/contextify
node-gyp rebuild

/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:304:16)
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 4.6.0-kali1-amd64
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /root/Malware/malcontrol/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v4.3.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/Malware/malcontrol/npm-debug.log
npm ERR! not ok code 0
root@kali:~/Malware/malcontrol#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions