Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

kurento-one2one-call nodejs tutorial npm install failed with building websoket on building bufferutil.o #606

Open
3 tasks done
AndNovAtor opened this issue Jul 4, 2021 · 1 comment

Comments

@AndNovAtor
Copy link

AndNovAtor commented Jul 4, 2021

Prerequisites

These are MANDATORY, otherwise the issue will be automatically closed.

Issue description

Trying to use kurento-one2one-call nodejs tutorial, master branch, with nodejs v8.0.17 (installing from apt or with nvm), with Ubuntu 18.04 (kms also from dev branch).

On npm install, build failed for dependencies, as I see, for websoket build on building bufferutil.o. On build error log, I see some of errors, for example
../../../../nan/nan.h:337:64: error: no matching function for call to ‘v8::Signature::New(v8::Isolate*&, v8::Handle<v8::FunctionTemplate>&, int&, v8 ::Handle<v8::FunctionTemplate>*&)’ return v8::Signature::New(nan_isolate, receiver, argc, argv);

../src/bufferutil.cc:31:50: error: call of overloaded ‘NODE_SET_METHOD(v8::Local<v8::FunctionTemplate>&, const char [6], void (&)(const v8::Function CallbackInfo<v8::Value>&))’ is ambiguous NODE_SET_METHOD(t, "merge", BufferUtil::Merge);

On one virtual machine, I also have this errors, but after some file clean up and nodejs reinstalling it goes away. Now on last virtual machine it still exists after complete nodejs reinstalling (now I use v8.0.17 from apt repository).

I saw some bug reports with simillar problem, when some dependencies was updated. Does it need to update again? npm audit shows 3 warnings. (btw, same result with latest nodejs lts v14.17.2)

Attached builerror.log from kurento-tutorial-node/kurento-one2one-call/node_modules/websocket-stream/node_modules/ws/
builderror.log

How to reproduce?

  1. Install Ubuntu 18.04
    1.2 Install kms from 6.16.1-dev branch with local installation
  2. Install nodejs kurento tutorial from master branch
  3. cd to kurento-tutorial-node/kurento-one2one-call
  4. run npm install
  5. get build error

About Kurento Media Server

  • Kurento version: 6.16.1-dev [6.16.1~5.gfde7b05]
  • Server OS: Ubuntu 18.04 (Bionic) [Ubuntu 18.04.5 LTS]
  • Installation method:
    • [apt-get]
    • [] [Docker]
    • [] [AWS CloudFormation]
    • [] [Built from sources]
  • kurento-tutorial:
    • nodejs
      • master branch
  • Ubuntu user:
    • root
@github-actions
Copy link

github-actions bot commented Jul 4, 2021

Hello @AndNovAtor! 👋 we're sorry you found a bug... so first of all, thank you very much for reporting it.

To know about progress, check in Triage. All issues are considered Backlog Candidates until work priorities align and the issue is selected for development. It will then become part of our official Backlog.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant