-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
调用build.sh出现以下错误,node版本14.17.0,node-gyp版本7.1.0 #49
Comments
The same problem for me also:( |
same error too :( |
ed-result] |
I've installed ubuntu 12.04 and node v.0.8.9 to install this package. But the distributions are too old to run. |
I've the same error as well |
hi guys. sorry nodejs 14 has been supported in dev/nodejs14 branch. |
Is this error resolved? I'm facing some failed builds with node14. I don't know if this is the same error. gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info find Python using Python version 3.9.7 found at "/usr/bin/python3"
gyp http GET https://unofficial-builds.nodejs.org/download/release/v14.19.1/node-v14.19.1-headers.tar.gz
gyp http 200 https://unofficial-builds.nodejs.org/download/release/v14.19.1/node-v14.19.1-headers.tar.gz
gyp http GET https://unofficial-builds.nodejs.org/download/release/v14.19.1/SHASUMS256.txt
gyp http 200 https://unofficial-builds.nodejs.org/download/release/v14.19.1/SHASUMS256.txt
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/usr/local/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 '/usr/src/app/record/src/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.cache/node-gyp/14.19.1/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/.cache/node-gyp/14.19.1',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/14.19.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/usr/src/app/record/src',
gyp info spawn args '-Dnode_engine=v8',
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 spawn args ]
gyp info ok
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
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/usr/src/app/record/src/build'
CXX(target) Release/obj.target/agorasdk/agora_node_ext/AgoraSdk.o
In file included from ../agora_node_ext/AgoraSdk.h:14,
from ../agora_node_ext/AgoraSdk.cpp:11:
../sdk/include/base/atomic.h:4:18: error: missing binary operator before token "("
4 | #if __GNUC_PREREQ(4, 6)
| ^
../sdk/include/base/atomic.h:8:20: error: missing binary operator before token "("
8 | #elif __GNUC_PREREQ(4, 4)
| ^
../sdk/include/base/atomic.h:65:2: error: #error "version should be at least 4.4"
65 | #error "version should be at least 4.4"
| ^~~~~
In file included from ../agora_node_ext/AgoraSdk.cpp:11:
../agora_node_ext/AgoraSdk.h:160:9: error: 'atomic_bool_t' does not name a type
160 | atomic_bool_t m_stopped;
| ^~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp: In constructor 'agora::AgoraSdk::AgoraSdk()':
../agora_node_ext/AgoraSdk.cpp:135:3: error: 'm_stopped' was not declared in this scope; did you mean 'stopped'?
135 | m_stopped.store(false);
| ^~~~~~~~~
| stopped
../agora_node_ext/AgoraSdk.cpp: In member function 'virtual bool agora::AgoraSdk::stopped() const':
../agora_node_ext/AgoraSdk.cpp:147:10: error: 'm_stopped' was not declared in this scope; did you mean 'stopped'?
147 | return m_stopped;
| ^~~~~~~~~
| stopped
../agora_node_ext/AgoraSdk.cpp: In member function 'virtual bool agora::AgoraSdk::leaveChannel()':
../agora_node_ext/AgoraSdk.cpp:176:5: error: 'm_stopped' was not declared in this scope; did you mean 'stopped'?
176 | m_stopped = true;
| ^~~~~~~~~
| stopped
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:50:85: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
50 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 2, argv);\
| ^
../agora_node_ext/AgoraSdk.cpp:232:9: note: in expansion of macro 'MAKE_JS_CALL_2'
232 | MAKE_JS_CALL_2(REC_EVENT_ERROR, int32, error, int32, stat_code);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:50:85: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
50 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 2, argv);\
| ^
../agora_node_ext/AgoraSdk.cpp:245:9: note: in expansion of macro 'MAKE_JS_CALL_2'
245 | MAKE_JS_CALL_2(REC_EVENT_JOIN_CHANNEL, string, channelName.c_str(), uid, uid);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:25:88: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
25 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 0, nullptr);\
| ^
../agora_node_ext/AgoraSdk.cpp:252:9: note: in expansion of macro 'MAKE_JS_CALL_0'
252 | MAKE_JS_CALL_0(REC_EVENT_LEAVE_CHANNEL);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:37:85: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
37 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 1, argv);\
| ^
../agora_node_ext/AgoraSdk.cpp:270:9: note: in expansion of macro 'MAKE_JS_CALL_1'
270 | MAKE_JS_CALL_1(REC_EVENT_USER_JOIN, uid, uid);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:37:85: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
37 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 1, argv);\
| ^
../agora_node_ext/AgoraSdk.cpp:283:9: note: in expansion of macro 'MAKE_JS_CALL_1'
283 | MAKE_JS_CALL_1(REC_EVENT_USER_LEAVE, uid, uid);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:37:85: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
37 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 1, argv);\
| ^
../agora_node_ext/AgoraSdk.cpp:289:9: note: in expansion of macro 'MAKE_JS_CALL_1'
289 | MAKE_JS_CALL_1(REC_EVENT_ACTIVE_SPEAKER, uid, uid);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:50:85: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
50 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 2, argv);\
| ^
../agora_node_ext/AgoraSdk.cpp:412:9: note: in expansion of macro 'MAKE_JS_CALL_2'
412 | MAKE_JS_CALL_2(REC_EVENT_ERROR, int32, err, int32, stat_code);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In member function 'void agora::AgoraSdk::onAudioVolumeIndication_node(const agora::linuxsdk::AudioVolumeInfo*, unsigned int)':
../agora_node_ext/AgoraSdk.cpp:424:26: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
424 | for(int i = 0; i < speakerNumber; i++) {
| ~~^~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:426:110: warning: ignoring return value of 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)',
declared with attribute 'warn_unused_result' [-Wunused-result]
426 | obj->Set(context, napi_create_string_(isolate, "uid"), napi_create_uid_(isolate, speakers[i].uid));
| ^
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:3670:37: note: declared here
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
../agora_node_ext/AgoraSdk.cpp:427:119: warning: ignoring return value of 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)',
declared with attribute 'warn_unused_result' [-Wunused-result]
427 | obj->Set(context, napi_create_string_(isolate, "volume"), napi_create_uint32_(isolate, speakers[i].volume));
| ^
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:3670:37: note: declared here
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
../agora_node_ext/AgoraSdk.cpp:428:45: warning: ignoring return value of 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)', declared with attribute 'warn_unused_result' [-Wunused-result]
428 | arrSpeakers->Set(context, i, obj);
| ^
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:3673:37: note: declared here
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
../agora_node_ext/AgoraSdk.cpp:435:81: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
435 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 2, argv);
| ^
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In member function 'virtual void agora::AgoraSdk::onAudioVolumeIndication(const agora::linuxsdk::AudioVolumeInfo*, unsigned int)':
../agora_node_ext/AgoraSdk.cpp:442:26: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
442 | for(int i = 0; i < speakerNum; i++) {
| ~~^~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:79:85: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
79 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 4, argv);\
| ^
../agora_node_ext/AgoraSdk.cpp:456:9: note: in expansion of macro 'MAKE_JS_CALL_4'
456 | MAKE_JS_CALL_4(REC_EVENT_FIRST_VIDEO_FRAME, uid, uid, int32, width, int32, height, int32, elapsed);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:50:85: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
50 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 2, argv);\
| ^
../agora_node_ext/AgoraSdk.cpp:462:9: note: in expansion of macro 'MAKE_JS_CALL_2'
462 | MAKE_JS_CALL_2(REC_EVENT_FIRST_AUDIO_FRAME, uid, uid, int32, elapsed);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:50:85: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
50 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 2, argv);\
| ^
../agora_node_ext/AgoraSdk.cpp:468:9: note: in expansion of macro 'MAKE_JS_CALL_2'
468 | MAKE_JS_CALL_2(REC_EVENT_STREAM_CHANGED, bool, receivingAudio, bool, receivingVideo);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:25:88: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
25 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 0, nullptr);\
| ^
../agora_node_ext/AgoraSdk.cpp:474:9: note: in expansion of macro 'MAKE_JS_CALL_0'
474 | MAKE_JS_CALL_0(REC_EVENT_CONN_LOST);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:25:88: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
25 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 0, nullptr);\
| ^
../agora_node_ext/AgoraSdk.cpp:480:9: note: in expansion of macro 'MAKE_JS_CALL_0'
480 | MAKE_JS_CALL_0(REC_EVENT_CONN_INTER);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:64:85: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
64 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 3, argv);\
| ^
../agora_node_ext/AgoraSdk.cpp:486:9: note: in expansion of macro 'MAKE_JS_CALL_3'
486 | MAKE_JS_CALL_3(REC_EVENT_REMOTE_VIDEO_STREAM_STATE_CHANGED, uid, uid, int32, state, int32, reason);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:64:85: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
64 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 3, argv);\
| ^
../agora_node_ext/AgoraSdk.cpp:492:9: note: in expansion of macro 'MAKE_JS_CALL_3'
492 | MAKE_JS_CALL_3(REC_EVENT_REMOTE_AUDIO_STREAM_STATE_CHANGED, uid, uid, int32, state, int32, reason);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:50:85: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
50 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 2, argv);\
| ^
../agora_node_ext/AgoraSdk.cpp:499:9: note: in expansion of macro 'MAKE_JS_CALL_2'
499 | MAKE_JS_CALL_2(REC_EVENT_REJOIN_SUCCESS, string, sChannelId.c_str(), uid, uid);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:50:85: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
50 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 2, argv);\
| ^
../agora_node_ext/AgoraSdk.cpp:505:9: note: in expansion of macro 'MAKE_JS_CALL_2'
505 | MAKE_JS_CALL_2(REC_EVENT_CONN_STATE_CHANGED, int32, state, int32, reason);
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:525:106: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
525 | it->second->callback.Get(isolate)->Call(context, it->second->js_this.Get(isolate), 2, arg); \
| ^
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:546:106: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
546 | it->second->callback.Get(isolate)->Call(context, it->second->js_this.Get(isolate), 2, arg); \
| ^
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:572:106: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
572 | it->second->callback.Get(isolate)->Call(context, it->second->js_this.Get(isolate), 1, arg); \
| ^
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:50:85: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
50 | cb.callback.Get(isolate)->Call(context, cb.js_this.Get(isolate), 2, argv);\
| ^
../agora_node_ext/AgoraSdk.cpp:581:9: note: in expansion of macro 'MAKE_JS_CALL_2'
581 | MAKE_JS_CALL_2(REC_EVENT_LOCAL_USER_REGISTER, uid, uid, string, sUserAccount.c_str());
| ^~~~~~~~~~~~~~
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
../agora_node_ext/AgoraSdk.cpp: In lambda function:
../agora_node_ext/AgoraSdk.cpp:602:106: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)', declared with attribute 'warn_unused_result' [-Wunused-result]
602 | it->second->callback.Get(isolate)->Call(context, it->second->js_this.Get(isolate), 2, arg); \
| ^
In file included from /root/.cache/node-gyp/14.19.1/include/node/node.h:67,
from ../agora_node_ext/node_napi_api.h:17,
from ../agora_node_ext/AgoraSdk.h:8,
from ../agora_node_ext/AgoraSdk.cpp:11:
/root/.cache/node-gyp/14.19.1/include/node/v8.h:4468:43: note: declared here
4468 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
make: *** [agorasdk.target.mk:119: Release/obj.target/agorasdk/agora_node_ext/AgoraSdk.o] Error 1
make: Leaving directory '/usr/src/app/record/src/build'
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/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)
gyp ERR! System Linux 4.19.128-microsoft-standard
gyp ERR! command "/usr/local/bin/node" "/usr/local/bin/node-gyp" "build"
gyp ERR! cwd /usr/src/app/record/src
gyp ERR! node -v v14.19.1
gyp ERR! node-gyp -v v9.0.0
gyp ERR! not ok |
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info find Python using Python version 3.9.1 found at "/usr/local/opt/[email protected]/bin/python3.9"
gyp info spawn /usr/local/opt/[email protected]/bin/python3.9
gyp info spawn args [
gyp info spawn args '/usr/local/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 '/Users/shealtiel/CodeBase/Personal/Basic-Recording/On-Premise-Recording-Nodejs/record/src/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/shealtiel/Library/Caches/node-gyp/14.17.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=/Users/shealtiel/Library/Caches/node-gyp/14.17.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/shealtiel/Library/Caches/node-gyp/14.17.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/shealtiel/CodeBase/Personal/Basic-Recording/On-Premise-Recording-Nodejs/record/src',
gyp info spawn args '-Dnode_engine=v8',
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 spawn args ]
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/agorasdk/agora_node_ext/AgoraSdk.o
In file included from ../agora_node_ext/AgoraSdk.cpp:11:
In file included from ../agora_node_ext/AgoraSdk.h:14:
../sdk/include/base/atomic.h:4:5: error: function-like macro '__GNUC_PREREQ' is not defined
#if __GNUC_PREREQ(4, 6)
^
../sdk/include/base/atomic.h:8:7: error: function-like macro 'GNUC_PREREQ' is not defined
#elif GNUC_PREREQ(4, 4)
^
../sdk/include/base/atomic.h:65:2: error: "version should be at least 4.4"
#error "version should be at least 4.4"
^
In file included from ../agora_node_ext/AgoraSdk.cpp:11:
../agora_node_ext/AgoraSdk.h:160:9: error: unknown type name 'atomic_bool_t'; did you mean 'std::atomic_bool'?
atomic_bool_t m_stopped;
^~~~~~~~~~~~~
std::atomic_bool
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/atomic:2387:36: note: 'std::atomic_bool' declared here
typedef atomic atomic_bool;
^
../agora_node_ext/AgoraSdk.cpp:226:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_2(REC_EVENT_ERROR, int32, error, int32, stat_code);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:47:76: note: expanded from macro 'MAKE_JS_CALL_2'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 2, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:239:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_2(REC_EVENT_JOIN_CHANNEL, string, channelName.c_str(), uid, uid);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:47:76: note: expanded from macro 'MAKE_JS_CALL_2'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 2, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:246:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_0(REC_EVENT_LEAVE_CHANNEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:24:79: note: expanded from macro 'MAKE_JS_CALL_0'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 0, nullptr);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:264:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_1(REC_EVENT_USER_JOIN, uid, uid);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:35:76: note: expanded from macro 'MAKE_JS_CALL_1'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 1, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:277:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_1(REC_EVENT_USER_LEAVE, uid, uid);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:35:76: note: expanded from macro 'MAKE_JS_CALL_1'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 1, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:283:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_1(REC_EVENT_ACTIVE_SPEAKER, uid, uid);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:35:76: note: expanded from macro 'MAKE_JS_CALL_1'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 1, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:406:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_2(REC_EVENT_ERROR, int32, err, int32, stat_code);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:47:76: note: expanded from macro 'MAKE_JS_CALL_2'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 2, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:419:18: error: no matching member function for call to 'Set'
obj->Set(napi_create_string(isolate, "uid"), napi_create_uid(isolate, speakers[i].uid));
~~~~~^~~
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe Set(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
^
../agora_node_ext/AgoraSdk.cpp:420:18: error: no matching member function for call to 'Set'
obj->Set(napi_create_string(isolate, "volume"), napi_create_uint32(isolate, speakers[i].volume));
~~~~~^~~
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe Set(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
^
../agora_node_ext/AgoraSdk.cpp:421:26: error: no matching member function for call to 'Set'
arrSpeakers->Set(i, obj);
~~~~~~~~~~~~~^~~
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe Set(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
^
../agora_node_ext/AgoraSdk.cpp:428:72: error: too few arguments to function call, expected 4, have 3
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 2, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:417:26: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for(int i = 0; i < speakerNumber; i++) {
~ ^ ~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:435:26: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for(int i = 0; i < speakerNum; i++) {
~ ^ ~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:449:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_4(REC_EVENT_FIRST_VIDEO_FRAME, uid, uid, int32, width, int32, height, int32, elapsed);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:74:76: note: expanded from macro 'MAKE_JS_CALL_4'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 4, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:455:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_2(REC_EVENT_FIRST_AUDIO_FRAME, uid, uid, int32, elapsed);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:47:76: note: expanded from macro 'MAKE_JS_CALL_2'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 2, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:461:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_2(REC_EVENT_STREAM_CHANGED, bool, receivingAudio, bool, receivingVideo);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:47:76: note: expanded from macro 'MAKE_JS_CALL_2'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 2, argv);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../agora_node_ext/AgoraSdk.cpp:467:9: error: too few arguments to function call, expected 4, have 3
MAKE_JS_CALL_0(REC_EVENT_CONN_LOST);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../agora_node_ext/AgoraSdk.cpp:24:79: note: expanded from macro 'MAKE_JS_CALL_0'
cb.callback.Get(isolate)->Call(cb.js_this.Get(isolate), 0, nullptr);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8.h:4468:3: note: 'Call' declared here
V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context,
^
/Users/shealtiel/Library/Caches/node-gyp/14.17.0/include/node/v8config.h:431:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
make: *** [Release/obj.target/agorasdk/agora_node_ext/AgoraSdk.o] Error 1
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:376:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Darwin 20.4.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/bin/node-gyp" "build"
gyp ERR! cwd /Users/shealtiel/CodeBase/Personal/Basic-Recording/On-Premise-Recording-Nodejs/record/src
gyp ERR! node -v v14.17.0
gyp ERR! node-gyp -v v7.1.0
gyp ERR! not ok
cp: build/Release/agorasdk.node: No such file or directory
The text was updated successfully, but these errors were encountered: