You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to install naudiodon on a fedora 30 distro with nodejs 12.x and I get the messages below. It appears the there is a mismatch in the libraries and function names: '../src/binding.cc:30:38: error: no matching function for call to ‘v8::Value::Int32Value()’
30 | ao->channels = info[1]->Int32Value(); /* channels */''. However I cant figure out what to change so as to get it to compile. Some pointers would be appreciated.
make: Entering directory '/home/user/myapp/node_modules/speaker/build'
CC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o
../deps/mpg123/src/output/alsa.c: In function ‘initialize_device’:
../deps/mpg123/src/output/alsa.c:78:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
78 | for (i = 0; i < NUM_FORMATS; ++i) {
| ^
../deps/mpg123/src/output/alsa.c: In function ‘get_formats_alsa’:
../deps/mpg123/src/output/alsa.c:201:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
201 | for (i = 0; i < NUM_FORMATS; ++i) {
| ^
AR(target) Release/obj.target/deps/mpg123/liboutput.a
COPY Release/liboutput.a
CXX(target) Release/obj.target/binding/src/binding.o
In file included from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cc:30:38: error: no matching function for call to ‘v8::Value::Int32Value()’
30 | ao->channels = info[1]->Int32Value(); /* channels /
| ^
In file included from /home/jp/.cache/node-gyp/12.8.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2576 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
| ^~~~~~~~~~
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate expects 1 argument, 0 provided
../src/binding.cc:31:34: error: no matching function for call to ‘v8::Value::Int32Value()’
31 | ao->rate = info[2]->Int32Value(); / sample rate /
| ^
In file included from /home/jp/.cache/node-gyp/12.8.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2576 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
| ^~~~~~~~~~
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate expects 1 argument, 0 provided
../src/binding.cc:32:36: error: no matching function for call to ‘v8::Value::Int32Value()’
32 | ao->format = info[3]->Int32Value(); / MPG123_ENC_* format /
| ^
In file included from /home/jp/.cache/node-gyp/12.8.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2576 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
| ^~~~~~~~~~
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate expects 1 argument, 0 provided
../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cc:51:33: error: no matching function for call to ‘v8::Value::Int32Value()’
51 | int len = info[2]->Int32Value();
| ^
In file included from /home/jp/.cache/node-gyp/12.8.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2576 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
| ^~~~~~~~~~
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate expects 1 argument, 0 provided
../src/binding.cc:62:78: warning: cast between incompatible function types from ‘void ()(uv_work_t*)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
62 | uv_queue_work(uv_default_loop(), &req->req, write_async, (uv_after_work_cb)write_after);
| ^~~~~~~~~~~
../src/binding.cc: In function ‘void {anonymous}::write_after(uv_work_t*)’:
../src/binding.cc:80:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
80 | wreq->callback->Call(1, argv);
| ^
In file included from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Localv8::Value argv[]) const {
| ^~~~
../src/binding.cc: At global scope:
../src/binding.cc:104:17: error: variable or field ‘Initialize’ declared void
104 | void Initialize(Handle target) {
| ^~~~~~
../src/binding.cc:104:17: error: ‘Handle’ was not declared in this scope
../src/binding.cc:104:30: error: expected primary-expression before ‘>’ token
104 | void Initialize(Handle target) {
| ^
../src/binding.cc:104:32: error: ‘target’ was not declared in this scope
104 | void Initialize(Handle target) {
| ^~~~~~
In file included from ../../nan/nan.h:54,
from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
../src/binding.cc:155:22: error: ‘Initialize’ was not declared in this scope
155 | NODE_MODULE(binding, Initialize)
| ^~~~~~~~~~
/home/jp/.cache/node-gyp/12.8.0/include/node/node.h:556:36: note: in definition of macro ‘NODE_MODULE_X’
556 | (node::addon_register_func) (regfunc),
| ^~~~~~~
../src/binding.cc:155:1: note: in expansion of macro ‘NODE_MODULE’
155 | NODE_MODULE(binding, Initialize)
| ^~~~~~~~~~~
In file included from /home/jp/.cache/node-gyp/12.8.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo
::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/home/jp/.cache/node-gyp/12.8.0/include/node/node_object_wrap.h:84:78: required from here
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
9853 | reinterpret_cast(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo
::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../../nan/nan_object_wrap.h:65:61: required from here
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
In file included from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
../src/binding.cc:93:12: warning: ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Close(Nan::NAN_METHOD_ARGS_TYPE)’ defined but not used [-Wunused-function]
93 | NAN_METHOD(Close) {
| ^~~~~
../../nan/nan.h:1566:33: note: in definition of macro ‘NAN_METHOD’
1566 | Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
| ^~~~
../src/binding.cc:85:12: warning: ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Flush(Nan::NAN_METHOD_ARGS_TYPE)’ defined but not used [-Wunused-function]
85 | NAN_METHOD(Flush) {
| ^~~~~
../../nan/nan.h:1566:33: note: in definition of macro ‘NAN_METHOD’
1566 | Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
| ^~~~
../src/binding.cc:47:12: warning: ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Write(Nan::NAN_METHOD_ARGS_TYPE)’ defined but not used [-Wunused-function]
47 | NAN_METHOD(Write) {
| ^~~~~
../../nan/nan.h:1566:33: note: in definition of macro ‘NAN_METHOD’
1566 | Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
| ^~~~
../src/binding.cc:24:12: warning: ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Open(Nan::NAN_METHOD_ARGS_TYPE)’ defined but not used [-Wunused-function]
24 | NAN_METHOD(Open) {
| ^~~~
../../nan/nan.h:1566:33: note: in definition of macro ‘NAN_METHOD’
1566 | Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
| ^~~~
make: *** [binding.target.mk:120: Release/obj.target/binding/src/binding.o] Error 1
make: Leaving directory '/home/user/myapp/node_modules/speaker/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/npm/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:203:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 5.2.7-200.fc30.x86_64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/user/myapp/node_modules/speaker
gyp ERR! node -v v12.8.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
make: Entering directory '/home/user/myapp/node_modules/segfault-handler/build'
CXX(target) Release/obj.target/segfault-handler/src/segfault-handler.o
In file included from ../src/segfault-handler.cpp:2:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
In file included from ../../nan/nan.h:54,
from ../src/segfault-handler.cpp:2:
../src/segfault-handler.cpp: At global scope:
/home/jp/.cache/node-gyp/12.8.0/include/node/node.h:556:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
556 | (node::addon_register_func) (regfunc),
| ^
/home/jp/.cache/node-gyp/12.8.0/include/node/node.h:590:3: note: in expansion of macro ‘NODE_MODULE_X’
590 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/segfault-handler.cpp:346:3: note: in expansion of macro ‘NODE_MODULE’
346 | NODE_MODULE(segfault_handler, init)
| ^~~~~~~~~~~
In file included from /home/jp/.cache/node-gyp/12.8.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/segfault-handler.cpp:2:
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo
::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/home/jp/.cache/node-gyp/12.8.0/include/node/node_object_wrap.h:84:78: required from here
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
9853 | reinterpret_cast(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo
::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../../nan/nan_object_wrap.h:65:61: required from here
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
SOLINK_MODULE(target) Release/obj.target/segfault-handler.node
COPY Release/segfault-handler.node
make: Leaving directory '/home/user/myapp/node_modules/segfault-handler/build'
I'm trying to install naudiodon on a fedora 30 distro with nodejs 12.x and I get the messages below. It appears the there is a mismatch in the libraries and function names: '../src/binding.cc:30:38: error: no matching function for call to ‘v8::Value::Int32Value()’
30 | ao->channels = info[1]->Int32Value(); /* channels */''. However I cant figure out what to change so as to get it to compile. Some pointers would be appreciated.
=======================================
npm install naudiodon --save
make: Entering directory '/home/user/myapp/node_modules/speaker/build'
CC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o
../deps/mpg123/src/output/alsa.c: In function ‘initialize_device’:
../deps/mpg123/src/output/alsa.c:78:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
78 | for (i = 0; i < NUM_FORMATS; ++i) {
| ^
../deps/mpg123/src/output/alsa.c: In function ‘get_formats_alsa’:
../deps/mpg123/src/output/alsa.c:201:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
201 | for (i = 0; i < NUM_FORMATS; ++i) {
| ^
AR(target) Release/obj.target/deps/mpg123/liboutput.a
COPY Release/liboutput.a
CXX(target) Release/obj.target/binding/src/binding.o
In file included from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cc:30:38: error: no matching function for call to ‘v8::Value::Int32Value()’
30 | ao->channels = info[1]->Int32Value(); /* channels /
| ^
In file included from /home/jp/.cache/node-gyp/12.8.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2576 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
| ^~~~~~~~~~
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate expects 1 argument, 0 provided
../src/binding.cc:31:34: error: no matching function for call to ‘v8::Value::Int32Value()’
31 | ao->rate = info[2]->Int32Value(); / sample rate /
| ^
In file included from /home/jp/.cache/node-gyp/12.8.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2576 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
| ^~~~~~~~~~
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate expects 1 argument, 0 provided
../src/binding.cc:32:36: error: no matching function for call to ‘v8::Value::Int32Value()’
32 | ao->format = info[3]->Int32Value(); / MPG123_ENC_* format /
| ^
In file included from /home/jp/.cache/node-gyp/12.8.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2576 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
| ^~~~~~~~~~
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate expects 1 argument, 0 provided
../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cc:51:33: error: no matching function for call to ‘v8::Value::Int32Value()’
51 | int len = info[2]->Int32Value();
| ^
In file included from /home/jp/.cache/node-gyp/12.8.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2576 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
| ^~~~~~~~~~
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:2576:40: note: candidate expects 1 argument, 0 provided
../src/binding.cc:62:78: warning: cast between incompatible function types from ‘void ()(uv_work_t*)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
62 | uv_queue_work(uv_default_loop(), &req->req, write_async, (uv_after_work_cb)write_after);
| ^~~~~~~~~~~
../src/binding.cc: In function ‘void {anonymous}::write_after(uv_work_t*)’:
../src/binding.cc:80:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations]
80 | wreq->callback->Call(1, argv);
| ^
In file included from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Localv8::Value argv[]) const {
| ^~~~
../src/binding.cc: At global scope:
../src/binding.cc:104:17: error: variable or field ‘Initialize’ declared void
104 | void Initialize(Handle target) {
| ^~~~~~
../src/binding.cc:104:17: error: ‘Handle’ was not declared in this scope
../src/binding.cc:104:30: error: expected primary-expression before ‘>’ token
104 | void Initialize(Handle target) {
| ^
../src/binding.cc:104:32: error: ‘target’ was not declared in this scope
104 | void Initialize(Handle target) {
| ^~~~~~
In file included from ../../nan/nan.h:54,
from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
../src/binding.cc:155:22: error: ‘Initialize’ was not declared in this scope
155 | NODE_MODULE(binding, Initialize)
| ^~~~~~~~~~
/home/jp/.cache/node-gyp/12.8.0/include/node/node.h:556:36: note: in definition of macro ‘NODE_MODULE_X’
556 | (node::addon_register_func) (regfunc),
| ^~~~~~~
../src/binding.cc:155:1: note: in expansion of macro ‘NODE_MODULE’
155 | NODE_MODULE(binding, Initialize)
| ^~~~~~~~~~~
In file included from /home/jp/.cache/node-gyp/12.8.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo
::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/home/jp/.cache/node-gyp/12.8.0/include/node/node_object_wrap.h:84:78: required from here
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
9853 | reinterpret_cast(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo
::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../../nan/nan_object_wrap.h:65:61: required from here
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
In file included from ../src/node_pointer.h:6,
from ../src/binding.cc:5:
../src/binding.cc:93:12: warning: ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Close(Nan::NAN_METHOD_ARGS_TYPE)’ defined but not used [-Wunused-function]
93 | NAN_METHOD(Close) {
| ^~~~~
../../nan/nan.h:1566:33: note: in definition of macro ‘NAN_METHOD’
1566 | Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
| ^~~~
../src/binding.cc:85:12: warning: ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Flush(Nan::NAN_METHOD_ARGS_TYPE)’ defined but not used [-Wunused-function]
85 | NAN_METHOD(Flush) {
| ^~~~~
../../nan/nan.h:1566:33: note: in definition of macro ‘NAN_METHOD’
1566 | Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
| ^~~~
../src/binding.cc:47:12: warning: ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Write(Nan::NAN_METHOD_ARGS_TYPE)’ defined but not used [-Wunused-function]
47 | NAN_METHOD(Write) {
| ^~~~~
../../nan/nan.h:1566:33: note: in definition of macro ‘NAN_METHOD’
1566 | Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
| ^~~~
../src/binding.cc:24:12: warning: ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Open(Nan::NAN_METHOD_ARGS_TYPE)’ defined but not used [-Wunused-function]
24 | NAN_METHOD(Open) {
| ^~~~
../../nan/nan.h:1566:33: note: in definition of macro ‘NAN_METHOD’
1566 | Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
| ^~~~
make: *** [binding.target.mk:120: Release/obj.target/binding/src/binding.o] Error 1
make: Leaving directory '/home/user/myapp/node_modules/speaker/build'
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:203:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 5.2.7-200.fc30.x86_64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/user/myapp/node_modules/speaker
gyp ERR! node -v v12.8.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
make: Entering directory '/home/user/myapp/node_modules/segfault-handler/build'
CXX(target) Release/obj.target/segfault-handler/src/segfault-handler.o
In file included from ../src/segfault-handler.cpp:2:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
In file included from ../../nan/nan.h:54,
from ../src/segfault-handler.cpp:2:
../src/segfault-handler.cpp: At global scope:
/home/jp/.cache/node-gyp/12.8.0/include/node/node.h:556:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
556 | (node::addon_register_func) (regfunc),
| ^
/home/jp/.cache/node-gyp/12.8.0/include/node/node.h:590:3: note: in expansion of macro ‘NODE_MODULE_X’
590 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/segfault-handler.cpp:346:3: note: in expansion of macro ‘NODE_MODULE’
346 | NODE_MODULE(segfault_handler, init)
| ^~~~~~~~~~~
In file included from /home/jp/.cache/node-gyp/12.8.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/segfault-handler.cpp:2:
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo
::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/home/jp/.cache/node-gyp/12.8.0/include/node/node_object_wrap.h:84:78: required from here
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
9853 | reinterpret_cast(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo
::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../../nan/nan_object_wrap.h:65:61: required from here
/home/jp/.cache/node-gyp/12.8.0/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
SOLINK_MODULE(target) Release/obj.target/segfault-handler.node
COPY Release/segfault-handler.node
make: Leaving directory '/home/user/myapp/node_modules/segfault-handler/build'
make: Entering directory '/home/user/myapp/node_modules/naudiodon/build'
CC(target) Release/obj.target/nothing/../node-addon-api/src/nothing.o
AR(target) Release/obj.target/../node-addon-api/src/nothing.a
COPY Release/nothing.a
COPY ../build/Release/libportaudio.so.2
CXX(target) Release/obj.target/naudiodon/src/naudiodon.o
CXX(target) Release/obj.target/naudiodon/src/GetDevices.o
CXX(target) Release/obj.target/naudiodon/src/GetHostAPIs.o
CXX(target) Release/obj.target/naudiodon/src/AudioIO.o
CXX(target) Release/obj.target/naudiodon/src/PaContext.o
SOLINK_MODULE(target) Release/obj.target/naudiodon.node
COPY Release/naudiodon.node
make: Leaving directory '/home/user/myapp/node_modules/naudiodon/build'
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/speaker):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install:
node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
added 3 packages from 50 contributors, removed 1 package and audited 9558 packages in 13.627s
found 0 vulnerabilities
The text was updated successfully, but these errors were encountered: