{"action":"opened","issue":{"url":"https://api.github.com/repos/chrisa/node-dtrace-provider/issues/58","labels_url":"https://api.github.com/repos/chrisa/node-dtrace-provider/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/chrisa/node-dtrace-provider/issues/58/comments","events_url":"https://api.github.com/repos/chrisa/node-dtrace-provider/issues/58/events","html_url":"https://github.com/chrisa/node-dtrace-provider/issues/58","id":57748089,"number":58,"title":"npm install failed on nodejs 0.12","user":{"login":"throrin19","id":1394778,"avatar_url":"https://avatars.githubusercontent.com/u/1394778?v=3","gravatar_id":"","url":"https://api.github.com/users/throrin19","html_url":"https://github.com/throrin19","followers_url":"https://api.github.com/users/throrin19/followers","following_url":"https://api.github.com/users/throrin19/following{/other_user}","gists_url":"https://api.github.com/users/throrin19/gists{/gist_id}","starred_url":"https://api.github.com/users/throrin19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/throrin19/subscriptions","organizations_url":"https://api.github.com/users/throrin19/orgs","repos_url":"https://api.github.com/users/throrin19/repos","events_url":"https://api.github.com/users/throrin19/events{/privacy}","received_events_url":"https://api.github.com/users/throrin19/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-15T21:58:38Z","updated_at":"2015-02-15T21:58:38Z","closed_at":null,"body":"Hello, i try to install this lib with new NodeJS version (0.12) and i have an error on node-gyp compilation : \r\n\r\n```\r\n> dtrace-provider@0.2.8 install /Users/throrin19/Documents/Programmation/Web/goomeoeventsapi/node_modules/restify/node_modules/dtrace-provider\r\n> node-gyp rebuild\r\n\r\nchild_process: customFds option is deprecated, use stdio instead.\r\n  ACTION binding_gyp_libusdt_target_build_libusdt .\r\nBuilding libusdt for x86_64\r\nrm -f *.gch\r\nrm -f *.o\r\nrm -f libusdt.a\r\nrm -f test_usdt\r\nrm -f test_usdt32\r\nrm -f test_usdt64\r\nrm -f test_mem_usage\r\ngcc -O2 -arch x86_64   -c -o usdt.o usdt.c\r\nusdt.c:212:9: warning: implicit declaration of function 'usdt_dof_section_free' is invalid in C99 [-Wimplicit-function-declaration]\r\n        usdt_dof_section_free(&strtab);\r\n        ^\r\nusdt.c:238:9: warning: implicit declaration of function 'usdt_dof_file_free' is invalid in C99 [-Wimplicit-function-declaration]\r\n        usdt_dof_file_free(provider->file);\r\n        ^\r\n2 warnings generated.\r\ngcc -O2 -arch x86_64   -c -o usdt_dof_file.o usdt_dof_file.c\r\ngcc -arch x86_64 -o usdt_tracepoints.o -c usdt_tracepoints_x86_64.s\r\ngcc -O2 -arch x86_64   -c -o usdt_probe.o usdt_probe.c\r\ngcc -O2 -arch x86_64   -c -o usdt_dof.o usdt_dof.c\r\ngcc -O2 -arch x86_64   -c -o usdt_dof_sections.o usdt_dof_sections.c\r\nrm -f libusdt.a\r\nar cru libusdt.a usdt.o usdt_dof_file.o usdt_tracepoints.o usdt_probe.o usdt_dof.o usdt_dof_sections.o \r\nranlib libusdt.a\r\n  TOUCH Release/obj.target/libusdt.stamp\r\n  CXX(target) Release/obj.target/DTraceProviderBindings/dtrace_provider.o\r\nIn file included from ../dtrace_provider.cc:1:\r\n../dtrace_provider.h:69:44: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n    static v8::Handle<v8::Value> New(const v8::Arguments& args);\r\n                                           ^~~~~~~~~~~~~\r\n                                           v8::internal::Arguments\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../dtrace_provider.cc:1:\r\n../dtrace_provider.h:70:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n    static v8::Handle<v8::Value> Fire(const v8::Arguments& args);\r\n                                            ^~~~~~~~~~~~~\r\n                                            v8::internal::Arguments\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../dtrace_provider.cc:1:\r\n../dtrace_provider.h:87:44: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n    static v8::Handle<v8::Value> New(const v8::Arguments& args);\r\n                                           ^~~~~~~~~~~~~\r\n                                           v8::internal::Arguments\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../dtrace_provider.cc:1:\r\n../dtrace_provider.h:88:49: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n    static v8::Handle<v8::Value> AddProbe(const v8::Arguments& args);\r\n                                                ^~~~~~~~~~~~~\r\n                                                v8::internal::Arguments\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../dtrace_provider.cc:1:\r\n../dtrace_provider.h:89:52: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n    static v8::Handle<v8::Value> RemoveProbe(const v8::Arguments& args);\r\n                                                   ^~~~~~~~~~~~~\r\n                                                   v8::internal::Arguments\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../dtrace_provider.cc:1:\r\n../dtrace_provider.h:90:47: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n    static v8::Handle<v8::Value> Enable(const v8::Arguments& args);\r\n                                              ^~~~~~~~~~~~~\r\n                                              v8::internal::Arguments\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../dtrace_provider.cc:1:\r\n../dtrace_provider.h:91:48: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n    static v8::Handle<v8::Value> Disable(const v8::Arguments& args);\r\n                                               ^~~~~~~~~~~~~\r\n                                               v8::internal::Arguments\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../dtrace_provider.cc:1:\r\n../dtrace_provider.h:92:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n    static v8::Handle<v8::Value> Fire(const v8::Arguments& args);\r\n                                            ^~~~~~~~~~~~~\r\n                                            v8::internal::Arguments\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\n../dtrace_provider.cc:23:17: error: calling a protected constructor of class 'v8::HandleScope'\r\n    HandleScope scope;\r\n                ^\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: note: declared protected here\r\n  V8_INLINE HandleScope() {}\r\n            ^\r\n../dtrace_provider.cc:25:55: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of type 'v8::Handle<v8::Value> (const v8::internal::Arguments &)'\r\n    Local<FunctionTemplate> t = FunctionTemplate::New(DTraceProvider::New);\r\n                                                      ^~~~~~~~~~~~~~~~~~~\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:3456:16: note: passing argument to parameter 'isolate' here\r\n      Isolate* isolate,\r\n               ^\r\n../dtrace_provider.cc:26:58: error: 'New' is a private member of 'v8::PersistentBase<v8::FunctionTemplate>'\r\n    constructor_template = Persistent<FunctionTemplate>::New(t);\r\n                                                         ^\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:572:23: note: declared private here\r\n  V8_INLINE static T* New(Isolate* isolate, T* that);\r\n                      ^\r\n../dtrace_provider.cc:26:28: error: too few arguments to function call, expected 2, have 1; did you mean 'DTraceProbe::New'?\r\n    constructor_template = Persistent<FunctionTemplate>::New(t);\r\n                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n                           DTraceProbe::New\r\n../dtrace_provider.h:69:34: note: 'DTraceProbe::New' declared here\r\n    static v8::Handle<v8::Value> New(const v8::Arguments& args);\r\n                                 ^\r\n../dtrace_provider.cc:27:25: error: member reference type 'Persistent<v8::FunctionTemplate>' is not a pointer; maybe you meant to use '.'?\r\n    constructor_template->InstanceTemplate()->SetInternalFieldCount(1);\r\n    ~~~~~~~~~~~~~~~~~~~~^~\r\n                        .\r\n../dtrace_provider.cc:27:27: error: no member named 'InstanceTemplate' in 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'\r\n    constructor_template->InstanceTemplate()->SetInternalFieldCount(1);\r\n    ~~~~~~~~~~~~~~~~~~~~  ^\r\n../dtrace_provider.cc:28:25: error: member reference type 'Persistent<v8::FunctionTemplate>' is not a pointer; maybe you meant to use '.'?\r\n    constructor_template->SetClassName(String::NewSymbol(\"DTraceProvider\"));\r\n    ~~~~~~~~~~~~~~~~~~~~^~\r\n                        .\r\n../dtrace_provider.cc:28:27: error: no member named 'SetClassName' in 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'\r\n    constructor_template->SetClassName(String::NewSymbol(\"DTraceProvider\"));\r\n    ~~~~~~~~~~~~~~~~~~~~  ^\r\n../dtrace_provider.cc:28:48: error: no member named 'NewSymbol' in 'v8::String'\r\n    constructor_template->SetClassName(String::NewSymbol(\"DTraceProvider\"));\r\n                                       ~~~~~~~~^\r\n../dtrace_provider.cc:30:31: error: no viable conversion from 'Persistent<v8::FunctionTemplate>' to 'v8::Handle<v8::FunctionTemplate>'\r\n    NODE_SET_PROTOTYPE_METHOD(constructor_template, \"addProbe\", DTraceProvider::AddProbe);\r\n                              ^~~~~~~~~~~~~~~~~~~~\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:196:26: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'Persistent<v8::FunctionTemplate>' to 'const v8::Handle<v8::FunctionTemplate> &' for 1st argument\r\ntemplate <class T> class Handle {\r\n                         ^\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:213:32: note: candidate template ignored: could not match 'Handle' against 'Persistent'\r\n  template <class S> V8_INLINE Handle(Handle<S> that)\r\n                               ^\r\n/Users/throrin19/.node-gyp/0.12.0/src/node.h:244:72: note: passing argument to parameter 'recv' here\r\ninline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,\r\n                                                                       ^\r\n../dtrace_provider.cc:31:31: error: no viable conversion from 'Persistent<v8::FunctionTemplate>' to 'v8::Handle<v8::FunctionTemplate>'\r\n    NODE_SET_PROTOTYPE_METHOD(constructor_template, \"removeProbe\", DTraceProvider::RemoveProbe);\r\n                              ^~~~~~~~~~~~~~~~~~~~\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:196:26: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'Persistent<v8::FunctionTemplate>' to 'const v8::Handle<v8::FunctionTemplate> &' for 1st argument\r\ntemplate <class T> class Handle {\r\n                         ^\r\n/Users/throrin19/.node-gyp/0.12.0/deps/v8/include/v8.h:213:32: note: candidate template ignored: could not match 'Handle' against 'Persistent'\r\n  template <class S> V8_INLINE Handle(Handle<S> that)\r\n                               ^\r\n/Users/throrin19/.node-gyp/0.12.0/src/node.h:244:72: note: passing argument to parameter 'recv' here\r\ninline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,\r\n                                                                       ^\r\nfatal error: too many errors emitted, stopping now [-ferror-limit=]\r\n20 errors generated.\r\nmake: *** [Release/obj.target/DTraceProviderBindings/dtrace_provider.o] Error 1\r\ngyp ERR! build error \r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:110:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)\r\ngyp ERR! System Darwin 14.1.0\r\ngyp ERR! command \"node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /Users/throrin19/Documents/Programmation/Web/goomeoeventsapi/node_modules/restify/node_modules/dtrace-provider\r\ngyp ERR! node -v v0.12.0\r\ngyp ERR! node-gyp -v v1.0.2\r\ngyp ERR! not ok \r\n```"}}