Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More osx installing issues #250

Open
duncanmckerracher opened this issue Feb 3, 2017 · 1 comment
Open

More osx installing issues #250

duncanmckerracher opened this issue Feb 3, 2017 · 1 comment

Comments

@duncanmckerracher
Copy link

Cant install the package. Ive seen a few other issues on older versions of node. Ive tried a bunch of fixes but nothing has worked. Anyone found a solution?

node v7.40
npm 4.0.5

`npm install --save snmpjs
npm WARN prefer global [email protected] should be installed with -g

[email protected] install /Users/duncanmckerracher1/Slimkid/node/snmpadapter/node_modules/snmpjs/node_modules/dtrace-provider
node-gyp rebuild

ACTION binding_gyp_libusdt_target_build_libusdt .
Building libusdt for x86_64
rm -f .gch
rm -f .o
rm -f libusdt.a
rm -f test_usdt
rm -f test_usdt32
rm -f test_usdt64
rm -f test_mem_usage
gcc -O2 -arch x86_64 -c -o usdt.o usdt.c
usdt.c:212:9: warning: implicit declaration of function 'usdt_dof_section_free'
is invalid in C99 [-Wimplicit-function-declaration]
usdt_dof_section_free(&strtab);
^
usdt.c:238:9: warning: implicit declaration of function 'usdt_dof_file_free' is
invalid in C99 [-Wimplicit-function-declaration]
usdt_dof_file_free(provider->file);
^
2 warnings generated.
gcc -O2 -arch x86_64 -c -o usdt_dof_file.o usdt_dof_file.c
gcc -arch x86_64 -o usdt_tracepoints.o -c usdt_tracepoints_x86_64.s
gcc -O2 -arch x86_64 -c -o usdt_probe.o usdt_probe.c
gcc -O2 -arch x86_64 -c -o usdt_dof.o usdt_dof.c
gcc -O2 -arch x86_64 -c -o usdt_dof_sections.o usdt_dof_sections.c
rm -f libusdt.a
ar cru libusdt.a usdt.o usdt_dof_file.o usdt_tracepoints.o usdt_probe.o usdt_dof.o usdt_dof_sections.o
ranlib libusdt.a
TOUCH Release/obj.target/libusdt.stamp
CXX(target) Release/obj.target/DTraceProviderBindings/dtrace_provider.o
In file included from ../dtrace_provider.cc:1:
../dtrace_provider.h:69:44: error: no type named 'Arguments' in namespace 'v8';
did you mean 'v8::internal::Arguments'?
static v8::Handlev8::Value New(const v8::Arguments& args);
^~~~~~~~~~~~~
v8::internal::Arguments
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:148:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../dtrace_provider.cc:1:
../dtrace_provider.h:70:45: error: no type named 'Arguments' in namespace 'v8';
did you mean 'v8::internal::Arguments'?
static v8::Handlev8::Value Fire(const v8::Arguments& args);
^~~~~~~~~~~~~
v8::internal::Arguments
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:148:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../dtrace_provider.cc:1:
../dtrace_provider.h:87:44: error: no type named 'Arguments' in namespace 'v8';
did you mean 'v8::internal::Arguments'?
static v8::Handlev8::Value New(const v8::Arguments& args);
^~~~~~~~~~~~~
v8::internal::Arguments
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:148:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../dtrace_provider.cc:1:
../dtrace_provider.h:88:49: error: no type named 'Arguments' in namespace 'v8';
did you mean 'v8::internal::Arguments'?
static v8::Handlev8::Value AddProbe(const v8::Arguments& args);
^~~~~~~~~~~~~
v8::internal::Arguments
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:148:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../dtrace_provider.cc:1:
../dtrace_provider.h:89:52: error: no type named 'Arguments' in namespace 'v8';
did you mean 'v8::internal::Arguments'?
static v8::Handlev8::Value RemoveProbe(const v8::Arguments& args);
^~~~~~~~~~~~~
v8::internal::Arguments
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:148:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../dtrace_provider.cc:1:
../dtrace_provider.h:90:47: error: no type named 'Arguments' in namespace 'v8';
did you mean 'v8::internal::Arguments'?
static v8::Handlev8::Value Enable(const v8::Arguments& args);
^~~~~~~~~~~~~
v8::internal::Arguments
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:148:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../dtrace_provider.cc:1:
../dtrace_provider.h:91:48: error: no type named 'Arguments' in namespace 'v8';
did you mean 'v8::internal::Arguments'?
static v8::Handlev8::Value Disable(const v8::Arguments& args);
^~~~~~~~~~~~~
v8::internal::Arguments
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:148:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../dtrace_provider.cc:1:
../dtrace_provider.h:92:45: error: no type named 'Arguments' in namespace 'v8';
did you mean 'v8::internal::Arguments'?
static v8::Handlev8::Value Fire(const v8::Arguments& args);
^~~~~~~~~~~~~
v8::internal::Arguments
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:148:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
../dtrace_provider.cc:23:17: error: calling a protected constructor of class
'v8::HandleScope'
HandleScope scope;
^
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:882:13: note:
declared protected here
V8_INLINE HandleScope() {}
^
../dtrace_provider.cc:25:55: error: cannot initialize a parameter of type
'v8::Isolate ' with an lvalue of type 'v8::Handlev8::Value (const
v8::internal::Arguments &)' (aka 'v8::Localv8::Value (const
v8::internal::Arguments &)')
Local t = FunctionTemplate::New(DTraceProvider::New);
^~~~~~~~~~~~~~~~~~~
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:4511:16: note:
passing argument to parameter 'isolate' here
Isolate
isolate, FunctionCallback callback = 0,
^
../dtrace_provider.cc:26:58: error: 'New' is a private member of
'v8::PersistentBasev8::FunctionTemplate'
constructor_template = Persistent::New(t);
^
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:635:23: note:
declared private here
V8_INLINE static T
New(Isolate
isolate, T* that);
^
../dtrace_provider.cc:26:28: error: too few arguments to function call, expected
2, have 1; did you mean 'DTraceProbe::New'?
constructor_template = Persistent::New(t);
^~~~~~~~~~
DTraceProbe::New
../dtrace_provider.h:69:34: note: 'DTraceProbe::New' declared here
static v8::Handlev8::Value New(const v8::Arguments& args);
^
../dtrace_provider.cc:27:25: error: member reference type
'Persistentv8::FunctionTemplate' is not a pointer; did you mean to use
'.'?
constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
~~~~~~~~~~~~~~~~~~~~^~
.
../dtrace_provider.cc:27:27: error: no member named 'InstanceTemplate' in
'v8::Persistent<v8::FunctionTemplate,
v8::NonCopyablePersistentTraitsv8::FunctionTemplate >'
constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
~~~~~~~~~~~~~~~~~~~~ ^
../dtrace_provider.cc:28:25: error: member reference type
'Persistentv8::FunctionTemplate' is not a pointer; did you mean to use
'.'?
constructor_template->SetClassName(String::NewSymbol("DTraceProvider"));
~~~~~~~~~~~~~~~~~~~~^~
.
../dtrace_provider.cc:28:27: error: no member named 'SetClassName' in
'v8::Persistent<v8::FunctionTemplate,
v8::NonCopyablePersistentTraitsv8::FunctionTemplate >'
constructor_template->SetClassName(String::NewSymbol("DTraceProvider"));
~~~~~~~~~~~~~~~~~~~~ ^
../dtrace_provider.cc:28:48: error: no member named 'NewSymbol' in 'v8::String'
constructor_template->SetClassName(String::NewSymbol("DTraceProvider"));
~~~~~~~~^
../dtrace_provider.cc:30:31: error: no viable conversion from
'Persistentv8::FunctionTemplate' to 'v8::Localv8::FunctionTemplate'
NODE_SET_PROTOTYPE_METHOD(constructor_template, "addProbe", DTracePr...
^~~~~~~~~~~~~~~~~~~~
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:219:7: note:
candidate constructor (the implicit copy constructor) not viable: no known
conversion from 'Persistentv8::FunctionTemplate' to 'const
v8::Localv8::FunctionTemplate &' for 1st argument
class Local {
^
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:219:7: note:
candidate constructor (the implicit move constructor) not viable: no known
conversion from 'Persistentv8::FunctionTemplate' to
'v8::Localv8::FunctionTemplate &&' for 1st argument
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:223:13: note:
candidate template ignored: could not match 'Local' against 'Persistent'
V8_INLINE Local(Local that)
^
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/node.h:267:71: note:
passing argument to parameter 'recv' here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Localv8::FunctionTemplate recv,
^
../dtrace_provider.cc:31:31: error: no viable conversion from
'Persistentv8::FunctionTemplate' to 'v8::Localv8::FunctionTemplate'
NODE_SET_PROTOTYPE_METHOD(constructor_template, "removeProbe", DTrac...
^~~~~~~~~~~~~~~~~~~~
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:219:7: note:
candidate constructor (the implicit copy constructor) not viable: no known
conversion from 'Persistentv8::FunctionTemplate' to 'const
v8::Localv8::FunctionTemplate &' for 1st argument
class Local {
^
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:219:7: note:
candidate constructor (the implicit move constructor) not viable: no known
conversion from 'Persistentv8::FunctionTemplate' to
'v8::Localv8::FunctionTemplate &&' for 1st argument
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/v8.h:223:13: note:
candidate template ignored: could not match 'Local' against 'Persistent'
V8_INLINE Local(Local that)
^
/Users/duncanmckerracher1/.node-gyp/7.4.0/include/node/node.h:267:71: note:
passing argument to parameter 'recv' here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Localv8::FunctionTemplate recv,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/DTraceProviderBindings/dtrace_provider.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:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 15.6.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/duncanmckerracher1/Slimkid/node/snmpadapter/node_modules/snmpjs/node_modules/dtrace-provider
gyp ERR! node -v v7.4.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
[email protected] /Users/duncanmckerracher1/Slimkid/node/snmpadapter
├── [email protected] extraneous
└── [email protected] extraneous

npm WARN [email protected] No repository field.
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "snmpjs"
npm ERR! node v7.4.0
npm ERR! npm v4.0.5
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 dtrace-provider 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 dtrace-provider
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls dtrace-provider
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/duncanmckerracher1/Slimkid/node/snmpadapter/npm-debug.log`

@carvilsi
Copy link

carvilsi commented Mar 24, 2017

Hi @duncanmckerracher try switch to node v0.10.45 working on os x 10.10.5

In the other hand I tried this fork https://github.com/VoltServer/node-snmpjs and it is working with node v6.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants