Skip to content
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

kafka-nodejs-console-sample does not build on MacOS Catalina 10.15.6 #68

Open
JurajNyiri opened this issue Sep 3, 2020 · 0 comments
Open

Comments

@JurajNyiri
Copy link

JurajNyiri commented Sep 3, 2020

After updating to node-rdkafka 2.9.1 npm install is successful.

Master build fails with:

../src/binding.cc:134:12: error: no matching member function for call to 'Set'
  exports->Set(Nan::New("errorCodes").ToLocalChecked(), errorCodes);
  ~~~~~~~~~^~~
/Users/jurajnyiri/Library/Caches/node-gyp/14.9.0/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/jurajnyiri/Library/Caches/node-gyp/14.9.0/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/binding.cc:145:12: error: no matching member function for call to 'Set'
  exports->Set(Nan::New("topic").ToLocalChecked(), topicConstants);
  ~~~~~~~~~^~~
/Users/jurajnyiri/Library/Caches/node-gyp/14.9.0/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/jurajnyiri/Library/Caches/node-gyp/14.9.0/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/binding.cc:147:12: error: no matching member function for call to 'Set'
  exports->Set(Nan::New("err2str").ToLocalChecked(),
  ~~~~~~~~~^~~
/Users/jurajnyiri/Library/Caches/node-gyp/14.9.0/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/jurajnyiri/Library/Caches/node-gyp/14.9.0/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/binding.cc:150:12: error: no matching member function for call to 'Set'
  exports->Set(Nan::New("features").ToLocalChecked(),
  ~~~~~~~~~^~~
/Users/jurajnyiri/Library/Caches/node-gyp/14.9.0/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/jurajnyiri/Library/Caches/node-gyp/14.9.0/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/binding.cc:155:3: warning: 'AtExit' is deprecated: Use the three-argument variant of AtExit() or AddEnvironmentCleanupHook() [-Wdeprecated-declarations]
  AtExit(RdKafkaCleanup);
  ^
/Users/jurajnyiri/Library/Caches/node-gyp/14.9.0/include/node/node.h:838:1: note: 'AtExit' has been explicitly marked deprecated here
NODE_DEPRECATED(
^
/Users/jurajnyiri/Library/Caches/node-gyp/14.9.0/include/node/node.h:108:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
../src/binding.cc:162:12: error: no matching member function for call to 'Set'
  exports->Set(Nan::New("librdkafkaVersion").ToLocalChecked(),
  ~~~~~~~~~^~~
/Users/jurajnyiri/Library/Caches/node-gyp/14.9.0/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/jurajnyiri/Library/Caches/node-gyp/14.9.0/include/node/v8.h:3673:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
1 warning and 5 errors generated.
make: *** [Release/obj.target/node-librdkafka/src/binding.o] Error 1
rm 11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate
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:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/usr/local/Cellar/node/14.9.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/jurajnyiri/repos/event-streams-samples/kafka-nodejs-console-sample/node_modules/node-rdkafka
gyp ERR! node -v v14.9.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant