Comments (15)
I have this issue now too on node 10
> [email protected] install /Users/n.gerritsen/Projects/hector/node_modules/unix-dgram
> node-gyp rebuild
CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
In file included from ../src/unix_dgram.cc:5:
In file included from ../node_modules/nan/nan.h:190:
../node_modules/nan/nan_maybe_43_inl.h:88:15: error: no member named 'ForceSet' in 'v8::Object'
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
~~~ ^
In file included from ../src/unix_dgram.cc:5:
In file included from ../node_modules/nan/nan.h:196:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:345:28: warning: 'New' is deprecated [-Wdeprecated-declarations]
return v8::StringObject::New(value).As<v8::StringObject>();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:5052:3: note: 'New' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate* version",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/unix_dgram.cc:5:
../node_modules/nan/nan.h:816:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:175:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/unix_dgram.cc:5:
../node_modules/nan/nan.h:830:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:168:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/unix_dgram.cc:5:
../node_modules/nan/nan.h:844:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:161:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/unix_dgram.cc:5:
../node_modules/nan/nan.h:890:44: warning: 'ToString' is deprecated [-Wdeprecated-declarations]
v8::Local<v8::String> string = from->ToString();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2454:10: note: 'ToString' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/unix_dgram.cc:5:
../node_modules/nan/nan.h:900:27: warning: 'WriteUtf8' is deprecated [-Wdeprecated-declarations]
length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2658:3: note: 'WriteUtf8' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate* version",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/unix_dgram.cc:5:
../node_modules/nan/nan.h:1457:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return scope.Escape(node::MakeCallback(
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:175:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
../src/unix_dgram.cc:189:26: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
domain = info[0]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:190:26: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
type = info[1]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:191:26: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
protocol = info[2]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:230:17: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
fd = info[0]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:231:21: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]
String::Utf8Value path(info[1]);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2891:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:258:17: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
fd = info[0]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:259:18: warning: 'ToObject' is deprecated [-Wdeprecated-declarations]
buf = info[1]->ToObject();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2455:10: note: 'ToObject' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:260:21: warning: 'Uint32Value' is deprecated [-Wdeprecated-declarations]
offset = info[2]->Uint32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2477:3: note: 'Uint32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:261:21: warning: 'Uint32Value' is deprecated [-Wdeprecated-declarations]
length = info[3]->Uint32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2477:3: note: 'Uint32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:262:21: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]
String::Utf8Value path(info[4]);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2891:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:302:17: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
fd = info[0]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:303:18: warning: 'ToObject' is deprecated [-Wdeprecated-declarations]
buf = info[1]->ToObject();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2455:10: note: 'ToObject' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:340:17: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
fd = info[0]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:341:21: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]
String::Utf8Value path(info[1]);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2891:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:361:17: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
fd = info[0]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
22 warnings and 1 error generated.
make: *** [Release/obj.target/unix_dgram/src/unix_dgram.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:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 18.0.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/n.gerritsen/Projects/hector/node_modules/unix-dgram
gyp ERR! node -v v10.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
> [email protected] postinstall /Users/n.gerritsen/Projects/hector/node_modules/cucumber-expressions
> node scripts/postinstall.js
> [email protected] postinstall /Users/n.gerritsen/Projects/hector/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/unix-dgram):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
added 1215 packages from 1208 contributors and audited 14408 packages in 30.865s
found 8 vulnerabilities (4 low, 4 high)
run `npm audit fix` to fix them, or `npm audit` for details
➜ hector git:(uas-823-upgrade-tc) npm install winston-syslog
> [email protected] install /Users/n.gerritsen/Projects/hector/node_modules/fsevents
> node install
[fsevents] Success: "/Users/n.gerritsen/Projects/hector/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
> [email protected] install /Users/n.gerritsen/Projects/hector/node_modules/unix-dgram
> node-gyp rebuild
CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
In file included from ../src/unix_dgram.cc:5:
In file included from ../../nan/nan.h:190:
../../nan/nan_maybe_43_inl.h:88:15: error: no member named 'ForceSet' in 'v8::Object'
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
~~~ ^
In file included from ../src/unix_dgram.cc:5:
In file included from ../../nan/nan.h:196:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:345:28: warning: 'New' is deprecated [-Wdeprecated-declarations]
return v8::StringObject::New(value).As<v8::StringObject>();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:5052:3: note: 'New' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate* version",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/unix_dgram.cc:5:
../../nan/nan.h:816:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:175:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/unix_dgram.cc:5:
../../nan/nan.h:830:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:168:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/unix_dgram.cc:5:
../../nan/nan.h:844:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:161:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/unix_dgram.cc:5:
../../nan/nan.h:890:44: warning: 'ToString' is deprecated [-Wdeprecated-declarations]
v8::Local<v8::String> string = from->ToString();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2454:10: note: 'ToString' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/unix_dgram.cc:5:
../../nan/nan.h:900:27: warning: 'WriteUtf8' is deprecated [-Wdeprecated-declarations]
length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2658:3: note: 'WriteUtf8' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate* version",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/unix_dgram.cc:5:
../../nan/nan.h:1457:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return scope.Escape(node::MakeCallback(
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:175:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
../src/unix_dgram.cc:189:26: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
domain = info[0]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:190:26: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
type = info[1]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:191:26: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
protocol = info[2]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:230:17: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
fd = info[0]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:231:21: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]
String::Utf8Value path(info[1]);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2891:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:258:17: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
fd = info[0]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:259:18: warning: 'ToObject' is deprecated [-Wdeprecated-declarations]
buf = info[1]->ToObject();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2455:10: note: 'ToObject' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:260:21: warning: 'Uint32Value' is deprecated [-Wdeprecated-declarations]
offset = info[2]->Uint32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2477:3: note: 'Uint32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:261:21: warning: 'Uint32Value' is deprecated [-Wdeprecated-declarations]
length = info[3]->Uint32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2477:3: note: 'Uint32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:262:21: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]
String::Utf8Value path(info[4]);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2891:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:302:17: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
fd = info[0]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:303:18: warning: 'ToObject' is deprecated [-Wdeprecated-declarations]
buf = info[1]->ToObject();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2455:10: note: 'ToObject' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:340:17: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
fd = info[0]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:341:21: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]
String::Utf8Value path(info[1]);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2891:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../src/unix_dgram.cc:361:17: warning: 'Int32Value' is deprecated [-Wdeprecated-declarations]
fd = info[0]->Int32Value();
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8.h:2478:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/n.gerritsen/.node-gyp/10.14.1/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
22 warnings and 1 error generated.
make: *** [Release/obj.target/unix_dgram/src/unix_dgram.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:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 18.0.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/n.gerritsen/Projects/hector/node_modules/unix-dgram
gyp ERR! node -v v10.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/unix-dgram):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ [email protected]
It does install because it is skipping the dependency but it does work without errors on node 8.
from winston-syslog.
@quantonganh I don't know. It's working for me. What OS are you using? Can you try installing unix-dgram
only in some tmp path to see if it works for you? Run: npm install -d unix-dgram
and paste the output if it fails
from winston-syslog.
node.js 10.11 do not support, has the same issue.
from winston-syslog.
What OS are you using?
Ubuntu 12.04.5 LTS \n \l
Run: npm install -d unix-dgram and paste the output if it fails
gyp ERR! build error [19/3766]
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269: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.2.0-95-generic
gyp ERR! command "/usr/bin/iojs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/node_modules/unix-dgram
gyp ERR! node -v v3.1.0
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
npm info [email protected] Failed to exec install script
npm ERR! Linux 3.2.0-95-generic
npm ERR! argv "/usr/bin/iojs" "/usr/bin/npm" "install" "-d" "unix-dgram"
npm ERR! node v3.1.0
npm ERR! npm v2.13.3
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! This is most likely a problem with the unix-dgram 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 unix-dgram
npm ERR! There is likely additional logging output above.
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm info postuninstall [email protected]
npm ERR! Linux 3.2.0-95-generic
npm ERR! argv "/usr/bin/iojs" "/usr/bin/npm" "install" "-d" "unix-dgram"
npm ERR! node v3.1.0
npm ERR! npm v2.13.3
npm ERR! path npm-debug.log.2254dc10ff7c53eaf313b28b5e68b935
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 'npm-debug.log.2254dc10ff7c53eaf313b28b5e68b935' -> 'npm-debug.log'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, rename 'npm-debug.log.2254dc10ff7c53eaf313b28b5e68b935' -> 'npm-debug.log']
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'npm-debug.log.2254dc10ff7c53eaf313b28b5e68b935',
npm ERR! dest: 'npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/npm-debug.log
from winston-syslog.
@quantonganh are you able to install other binary(C++) addons at all? What version of python and g++ do you have installed? The minimum requirements are: https://github.com/nodejs/node/tree/v3.1.0#unix--macintosh
from winston-syslog.
are you able to install other binary(C++) addons at all?
Here're my installed packages list:
├── [email protected] [10/3884]
├── [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]
└── UNMET DEPENDENCY winston-syslog@^1.1.2
What version of python and g++ do you have installed?
python -V
Python 2.7.3
g++ -v [9/3941]
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languag
es=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-
included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --ena
ble-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=g
eneric --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
The minimum requirements are: https://github.com/nodejs/node/tree/v3.1.0#unix--macintosh
Oh, it requires g++ 4.8?
from winston-syslog.
Yes. It needs a C++ 11
compatible compiler. Anyway, just to be sure. Can you try these steps:
cd /tmp
git clone https://github.com/bnoordhuis/node-unix-dgram
cd node-unix-dgram
npm install -g node-gyp # probably with sudo
npm install nan bindings
node-gyp configure
node-gyp build
and paste the output?
from winston-syslog.
npm install -g node-gyp
/usr/bin/node-gyp -> /usr/lib/node_modules/node-gyp/bin/node-gyp.js
[email protected] /usr/lib/node_modules/node-gyp
├── [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], isst
[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
.8, [email protected], [email protected], [email protected], [email protected])
npm install nan bindings
npm WARN package.json [email protected] license should be a valid SPDX license expression
[email protected] node_modules/bindings
[email protected] node_modules/nan
node-gyp configure
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp http GET https://iojs.org/download/release/v3.1.0/iojs-v3.1.0-headers.tar.gz
gyp http 200 https://iojs.org/download/release/v3.1.0/iojs-v3.1.0-headers.tar.gz
gyp http GET https://iojs.org/download/release/v3.1.0/SHASUMS256.txt
gyp http 200 https://iojs.org/download/release/v3.1.0/SHASUMS256.txt
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/tmp/node-unix-dgram/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.node-gyp/iojs-3.1.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/iojs-3.1.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=iojs.lib',
gyp info spawn args '-Dmodule_root_dir=/tmp/node-unix-dgram',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info ok
node-gyp build
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn make
make: Entering directory `/tmp/node-unix-dgram/build'
gyp CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
In file included from /root/.node-gyp/iojs-3.1.0/include/node/node.h:42:0,
from ../node_modules/nan/nan.h:24,
from ../src/unix_dgram.cc:5:
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:336:1: error: expected unqualified-id before ‘using’
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:468:1: error: expected unqualified-id before ‘using’
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:499:48: error: ‘Handle’ does not name a type
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:499:48: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:499:54: error: expected ‘,’ or ‘...’ before ‘<’ token
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:520:54: error: ‘Handle’ does not name a type
...
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:7092:3: error: no matching function for call to ‘v8::ReturnValue<v8::Value>::Set(v8::Local<v8::Integer>)’
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:7092:3: note: candidates are:
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:2952:40: note: template<class S> void v8::ReturnValue::Set(const v8::Persistent<S>&) [with S = S, T = v8::Value]
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:2953:40: note: template<class S> void v8::ReturnValue::Set(int) [with S = S, T = v8::Value]
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:7108:6: note: void v8::ReturnValue<T>::Set(bool) [with T = v8::Value]
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:7108:6: note: no known conversion for argument 1 from ‘v8::Local<v8::Integer>’ to ‘bool’
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:7079:6: note: void v8::ReturnValue<T>::Set(double) [with T = v8::Value]
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:7079:6: note: no known conversion for argument 1 from ‘v8::Local<v8::Integer>’ to ‘double’
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:7085:6: note: void v8::ReturnValue<T>::Set(int32_t) [with T = v8::Value, int32_t = int]
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:7085:6: note: no known conversion for argument 1 from ‘v8::Local<v8::Integer>’ to ‘int’
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:7096:6: note: void v8::ReturnValue<T>::Set(uint32_t) [with T = v8::Value, uint32_t = unsigned int]
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:7096:6: note: no known conversion for argument 1 from ‘v8::Local<v8::Integer>’ to ‘unsigned int’
/root/.node-gyp/iojs-3.1.0/include/node/v8.h:2968:18: note: template<class S> void v8::ReturnValue::Set(S*) [with S = S, T = v8::Value]
../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) cons
t’:
../node_modules/nan/nan.h:1433:3: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [Release/obj.target/unix_dgram/src/unix_dgram.o] Error 1
make: Leaving directory `/tmp/node-unix-dgram/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/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 3.2.0-95-generic
gyp ERR! command "/usr/bin/iojs" "/usr/bin/node-gyp" "build"
gyp ERR! cwd /tmp/node-unix-dgram
gyp ERR! node -v v3.1.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
from winston-syslog.
@quantonganh confirmed, you need a C++11
capable compiler. Anyway, what underlying protocol are you planning to use with winston-syslog? udp, tcp, unix-dgram?
from winston-syslog.
@santigimeno: Thank you very much!
I confirmed that it worked fine on the trusty (gcc 4.8):
npm ls
:
└─┬ [email protected]
├── [email protected]
├── [email protected]
└─┬ [email protected]
├── [email protected]
└── [email protected]
Anyway, what underlying protocol are you planning to use with winston-syslog? udp, tcp, unix-dgram?
It's UDP to send log messages to Graylog2 via GELF.
from winston-syslog.
@quantonganh That's great news!
I was asking about the transport because starting with the next version (to be released soon), unix-dgram
will be an optional dependency and you would not need to add it. See: 8facb6d
from winston-syslog.
Now that 1.2.0
is tagged would it be possible to get a corresponding release on NPM? I'm tagged to this repo currently :\
from winston-syslog.
@NickTomlin I'm waiting for @indexzero to publish it. I hope it's soon. :)
from winston-syslog.
Closing this as original issue was resolved
from winston-syslog.
from winston-syslog.
Related Issues (20)
- Winston-syslog doesn't handle connection loss? HOT 5
- Support critical as loglevel
- mTLS connection is not working
- Syslog logs not flushed until app exits, and multiples are concatenated? HOT 6
- Logging via UNIX domains sockets is not quite conformant
- App doesn't stop when I use this library HOT 4
- Timestamp is incorrect when milliseconds < 100
- Usage: please correct "type" options HOT 1
- InFlight counter going negative
- Error healthCheck(dgram)
- Occasional ECONNRESET and EPIPE errors HOT 1
- No logs when running in docker container HOT 1
- Unable to change Destination via Syslog Configuration HOT 1
- cloudflare workers support HOT 7
- winston-syslog hardcodes log level to 'info' HOT 1
- Unable to change appName without reinstantiation HOT 1
- Error Handling on Creating TCP Socket HOT 1
- Winston containers problem with winston-syslog and solution HOT 2
- Implementing in nuxt 3
- Dependency glossy is unmaintained HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winston-syslog.