Skip to content

Instantly share code, notes, and snippets.

@zramsay
Created January 11, 2019 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zramsay/1b365bd3c459695098303e3bc3fbf08d to your computer and use it in GitHub Desktop.
Save zramsay/1b365bd3c459695098303e3bc3fbf08d to your computer and use it in GitHub Desktop.
root@ubuntu-s-2vcpu-4gb-tor1-01:~/go/src/github.com/wtf# npm install lotion
> utp-native@1.7.3 install /root/go/src/github.com/wtf/node_modules/utp-native
> node-gyp-build
make: Entering directory '/root/go/src/github.com/wtf/node_modules/utp-native/build'
CXX(target) Release/obj.target/libutp/deps/libutp/utp_internal.o
../deps/libutp/utp_internal.cpp: In function ‘size_t utp_process_incoming(UTPSocket*, const byte*, size_t, bool)’:
../deps/libutp/utp_internal.cpp:1970:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (conn->mtu_probe_seq && seq == conn->mtu_probe_seq) {
^
CXX(target) Release/obj.target/libutp/deps/libutp/utp_utils.o
CXX(target) Release/obj.target/libutp/deps/libutp/utp_hash.o
CXX(target) Release/obj.target/libutp/deps/libutp/utp_callbacks.o
CXX(target) Release/obj.target/libutp/deps/libutp/utp_api.o
CXX(target) Release/obj.target/libutp/deps/libutp/utp_packedsockaddr.o
AR(target) Release/obj.target/deps/utp.a
COPY Release/utp.a
CXX(target) Release/obj.target/utp/src/utp_uv.o
../src/utp_uv.cc:219:1: warning: ‘uint64 on_utp_schedule_ack(utp_callback_arguments*)’ defined but not used [-Wunused-function]
on_utp_schedule_ack (utp_callback_arguments *a) {
^
CXX(target) Release/obj.target/utp/src/socket_wrap.o
../src/socket_wrap.cc: In member function ‘int SocketWrap::Drain()’:
../src/socket_wrap.cc:69:40: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
this->on_drain->Call(ctx, 0, NULL);
^
In file included from ../src/socket_wrap.h:4:0,
from ../src/socket_wrap.cc:1:
../../nan/nan.h:1652:3: note: declared here
Call(v8::Local<v8::Object> target
^
../src/socket_wrap.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE SocketWrap::Context(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/socket_wrap.cc:99:45: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Object> context = info[0]->ToObject();
^
In file included from /root/.node-gyp/11.6.0/include/node/node.h:63:0,
from ../../nan/nan.h:53,
from ../src/socket_wrap.h:4,
from ../src/socket_wrap.cc:1:
/root/.node-gyp/11.6.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^
../src/socket_wrap.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE SocketWrap::Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/socket_wrap.cc:113:43: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Value> buffer = info[0]->ToObject();
^
In file included from /root/.node-gyp/11.6.0/include/node/node.h:63:0,
from ../../nan/nan.h:53,
from ../src/socket_wrap.h:4,
from ../src/socket_wrap.cc:1:
/root/.node-gyp/11.6.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^
../src/socket_wrap.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE SocketWrap::Writev(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/socket_wrap.cc:141:61: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Value> buffer = Nan::Get(writes->Get(i)->ToObject(), chunk).ToLocalCh
^
In file included from /root/.node-gyp/11.6.0/include/node/node.h:63:0,
from ../../nan/nan.h:53,
from ../src/socket_wrap.h:4,
from ../src/socket_wrap.cc:1:
/root/.node-gyp/11.6.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^
CXX(target) Release/obj.target/utp/src/utp_wrap.o
../src/utp_wrap.cc: In function ‘void callback_on_message(utp_uv_t*, char*, size_t, int, char*)’:
../src/utp_wrap.cc:25:38: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
wrap->on_message->Call(ctx, 2, argv);
^
In file included from ../src/utp_wrap.h:4:0,
from ../src/utp_wrap.cc:1:
../../nan/nan.h:1652:3: note: declared here
Call(v8::Local<v8::Object> target
^
../src/utp_wrap.cc: In function ‘void callback_on_send(utp_uv_t*, uv_udp_send_t*, int)’:
../src/utp_wrap.cc:39:35: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
wrap->on_send->Call(ctx, 2, argv);
^
In file included from ../src/utp_wrap.h:4:0,
from ../src/utp_wrap.cc:1:
../../nan/nan.h:1652:3: note: declared here
Call(v8::Local<v8::Object> target
^
../src/utp_wrap.cc: In function ‘void callback_on_close(utp_uv_t*)’:
../src/utp_wrap.cc:49:36: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
wrap->on_close->Call(ctx, 0, NULL);
^
In file included from ../src/utp_wrap.h:4:0,
from ../src/utp_wrap.cc:1:
../../nan/nan.h:1652:3: note: declared here
Call(v8::Local<v8::Object> target
^
../src/utp_wrap.cc: In function ‘void callback_on_error(utp_uv_t*)’:
../src/utp_wrap.cc:59:36: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
wrap->on_error->Call(ctx, 0, NULL);
^
In file included from ../src/utp_wrap.h:4:0,
from ../src/utp_wrap.cc:1:
../../nan/nan.h:1652:3: note: declared here
Call(v8::Local<v8::Object> target
^
../src/utp_wrap.cc: In function ‘void callback_on_socket_read(utp_uv_t*, utp_socket*, char*, size_t)’:
../src/utp_wrap.cc:72:35: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
wrap->on_data->Call(ctx, 1, argv);
^
In file included from ../src/utp_wrap.h:4:0,
from ../src/utp_wrap.cc:1:
../../nan/nan.h:1652:3: note: declared here
Call(v8::Local<v8::Object> target
^
../src/utp_wrap.cc: In function ‘void callback_on_socket_end(utp_uv_t*, utp_socket*)’:
../src/utp_wrap.cc:86:34: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
wrap->on_end->Call(ctx, 0, NULL);
^
In file included from ../src/utp_wrap.h:4:0,
from ../src/utp_wrap.cc:1:
../../nan/nan.h:1652:3: note: declared here
Call(v8::Local<v8::Object> target
^
../src/utp_wrap.cc: In function ‘void callback_on_socket_error(utp_uv_t*, utp_socket*, int)’:
../src/utp_wrap.cc:107:36: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
wrap->on_error->Call(ctx, 1, argv);
^
In file included from ../src/utp_wrap.h:4:0,
from ../src/utp_wrap.cc:1:
../../nan/nan.h:1652:3: note: declared here
Call(v8::Local<v8::Object> target
^
../src/utp_wrap.cc: In function ‘void callback_on_socket_close(utp_uv_t*, utp_socket*)’:
../src/utp_wrap.cc:117:36: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
wrap->on_close->Call(ctx, 0, NULL);
^
In file included from ../src/utp_wrap.h:4:0,
from ../src/utp_wrap.cc:1:
../../nan/nan.h:1652:3: note: declared here
Call(v8::Local<v8::Object> target
^
../src/utp_wrap.cc: In function ‘void callback_on_socket_connect(utp_uv_t*, utp_socket*)’:
../src/utp_wrap.cc:129:38: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
wrap->on_connect->Call(ctx, 0, NULL);
^
In file included from ../src/utp_wrap.h:4:0,
from ../src/utp_wrap.cc:1:
../../nan/nan.h:1652:3: note: declared here
Call(v8::Local<v8::Object> target
^
../src/utp_wrap.cc: In function ‘void callback_on_socket(utp_uv_t*, utp_socket*’:
../src/utp_wrap.cc:144:89: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
*socket_unwrap = Nan::ObjectWrap::Unwrap<SocketWrap>(socket_wrap->ToObject());
^
In file included from /root/.node-gyp/11.6.0/include/node/node.h:63:0,
from ../../nan/nan.h:53,
from ../src/utp_wrap.h:4,
from ../src/utp_wrap.cc:1:
/root/.node-gyp/11.6.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^
../src/utp_wrap.cc:149:37: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
wrap->on_socket->Call(ctx, 1, argv);
^
In file included from ../src/utp_wrap.h:4:0,
from ../src/utp_wrap.cc:1:
../../nan/nan.h:1652:3: note: declared here
Call(v8::Local<v8::Object> target
^
../src/utp_wrap.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE UTPWrap::Bind(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/utp_wrap.cc:205:35: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int port = info[0]->Uint32Value();
^
In file included from /root/.node-gyp/11.6.0/include/node/v8.h:26:0,
from /root/.node-gyp/11.6.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/utp_wrap.h:4,
from ../src/utp_wrap.cc:1:
/root/.node-gyp/11.6.0/include/node/v8.h:2571:47: note: declared here
V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
^
/root/.node-gyp/11.6.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/utp_wrap.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE UTPWrap::Context(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/utp_wrap.cc:218:45: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Object> context = info[0]->ToObject();
^
In file included from /root/.node-gyp/11.6.0/include/node/node.h:63:0,
from ../../nan/nan.h:53,
from ../src/utp_wrap.h:4,
from ../src/utp_wrap.cc:1:
/root/.node-gyp/11.6.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^
../src/utp_wrap.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE UTPWrap::MaxSockets(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/utp_wrap.cc:250:55: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
handle->max_sockets = (size_t) info[0]->Uint32Value();
^
In file included from /root/.node-gyp/11.6.0/include/node/v8.h:26:0,
from /root/.node-gyp/11.6.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/utp_wrap.h:4,
from ../src/utp_wrap.cc:1:
/root/.node-gyp/11.6.0/include/node/v8.h:2571:47: note: declared here
V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
^
/root/.node-gyp/11.6.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/utp_wrap.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE UTPWrap::Send(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/utp_wrap.cc:257:45: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
size_t id = (size_t) info[0]->Uint32Value();
^
In file included from /root/.node-gyp/11.6.0/include/node/v8.h:26:0,
from /root/.node-gyp/11.6.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/utp_wrap.h:4,
from ../src/utp_wrap.cc:1:
/root/.node-gyp/11.6.0/include/node/v8.h:2571:47: note: declared here
V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
^
/root/.node-gyp/11.6.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/utp_wrap.cc:259:44: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Object> buffer = info[1]->ToObject();
^
In file included from /root/.node-gyp/11.6.0/include/node/node.h:63:0,
from ../../nan/nan.h:53,
from ../src/utp_wrap.h:4,
from ../src/utp_wrap.cc:1:
/root/.node-gyp/11.6.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^
../src/utp_wrap.cc:260:37: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int offset = info[2]->Uint32Value();
^
In file included from /root/.node-gyp/11.6.0/include/node/v8.h:26:0,
from /root/.node-gyp/11.6.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/utp_wrap.h:4,
from ../src/utp_wrap.cc:1:
/root/.node-gyp/11.6.0/include/node/v8.h:2571:47: note: declared here
V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
^
/root/.node-gyp/11.6.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/utp_wrap.cc:261:34: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int len = info[3]->Uint32Value();
^
In file included from /root/.node-gyp/11.6.0/include/node/v8.h:26:0,
from /root/.node-gyp/11.6.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/utp_wrap.h:4,
from ../src/utp_wrap.cc:1:
/root/.node-gyp/11.6.0/include/node/v8.h:2571:47: note: declared here
V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
^
/root/.node-gyp/11.6.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/utp_wrap.cc:262:35: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int port = info[4]->Uint32Value();
^
In file included from /root/.node-gyp/11.6.0/include/node/v8.h:26:0,
from /root/.node-gyp/11.6.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/utp_wrap.h:4,
from ../src/utp_wrap.cc:1:
/root/.node-gyp/11.6.0/include/node/v8.h:2571:47: note: declared here
V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
^
/root/.node-gyp/11.6.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/utp_wrap.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE UTPWrap::Connect(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/utp_wrap.cc:284:35: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int port = info[0]->Uint32Value();
^
In file included from /root/.node-gyp/11.6.0/include/node/v8.h:26:0,
from /root/.node-gyp/11.6.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/utp_wrap.h:4,
from ../src/utp_wrap.cc:1:
/root/.node-gyp/11.6.0/include/node/v8.h:2571:47: note: declared here
V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
^
/root/.node-gyp/11.6.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/utp_wrap.cc:296:89: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
*socket_unwrap = Nan::ObjectWrap::Unwrap<SocketWrap>(socket_wrap->ToObject());
^
In file included from /root/.node-gyp/11.6.0/include/node/node.h:63:0,
from ../../nan/nan.h:53,
from ../src/utp_wrap.h:4,
from ../src/utp_wrap.cc:1:
/root/.node-gyp/11.6.0/include/node/v8.h:10254:15: note: declared here
Local<Object> Value::ToObject() const {
^
CXX(target) Release/obj.target/utp/binding.o
SOLINK_MODULE(target) Release/obj.target/utp.node
COPY Release/utp.node
make: Leaving directory '/root/go/src/github.com/wtf/node_modules/utp-native/build'
npm WARN saveError ENOENT: no such file or directory, open '/root/go/src/github.com/wtf/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/root/go/src/github.com/wtf/package.json'
npm WARN wtf No description
npm WARN wtf No repository field.
npm WARN wtf No README data
npm WARN wtf No license field.
+ lotion@0.4.3
added 8 packages from 3 contributors and audited 8437 packages in 16.777s
found 56 moderate severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment