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

Problem with prebuild module #231

Closed
rahmonzoda opened this issue Sep 27, 2018 · 6 comments
Closed

Problem with prebuild module #231

rahmonzoda opened this issue Sep 27, 2018 · 6 comments

Comments

@rahmonzoda
Copy link

rahmonzoda commented Sep 27, 2018

Hi guys, thanks for the excellent library, but i have an error that i can't fix.
I creaded prebuild module and publish that here https://github.com/rahmonzoda/node-desktop-idle/releases
The module is also installed normally, but I get this error when i try use that

os: osx 10.14
node: node v10.11.0
npm: 6.4.1

dyld: lazy symbol binding failed: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
Referenced from: /Users/ubayd/Work/chronos/simple-samples/activity-monitor/node_modules/desktop-idle/build/Release/desktopIdle.node
Expected in: flat namespace

dyld: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
Referenced from: /Users/ubayd/Work/chronos/simple-samples/activity-monitor/node_modules/desktop-idle/build/Release/desktopIdle.node
Expected in: flat namespace

@ralphtheninja
Copy link
Member

My guess is you're linking with something that can't be found on the target system, i.e. where you are downloading it.

@lovell
Copy link
Member

lovell commented Nov 5, 2018

@rahmonzoda If you're using Electron then electron-rebuild is required - see electron/electron#14167

@maxbrunsfeld
Copy link

maxbrunsfeld commented Nov 9, 2018

I'm seeing something similar with the mac os binaries here: https://github.com/tree-sitter/node-tree-sitter/releases/tag/v0.13.19.

The binaries were compiled on a macOS worker on Travis-CI. But users who download them on macOS 10.14 Mojave are getting the same dynamic linking error when loading the module

dyld: lazy symbol binding failed: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
  Referenced from: /the/project/node_modules/tree-sitter/build/Release/tree_sitter_runtime_binding.node
  Expected in: flat namespace

@maxbrunsfeld
Copy link

Disregard the above comment; it was actually an electron / node incompatibility.

@bendemboski
Copy link

I suspect the issue you are seeing is caused by this bug.

@vweevers
Copy link
Member

vweevers commented Mar 3, 2019

@rahmonzoda As noted above, the problem might be an Electron incompatibility, which can be solved by using electron-rebuild and/or (if caused by the ABI bug) by updating prebuild-install.

If that is not the case (e.g. you're not using Electron), feel free to reopen with more information. Thanks!

@vweevers vweevers closed this as completed Mar 3, 2019
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

6 participants