Skip to content

Use node-ffi failed for symbol not found #277

@XbinZh

Description

@XbinZh

Hi, there

A problem block me for several days, after install ref & ffi via npm. when using them the error is thrown:
"ffi/node_modules/ref/build/Release/binding.node: __snprintf_chk: symbol not found".
I have tried to find a way out, for example install glibc, install them on alpine image, etc. But the result is sad for me. Is there anyone could help me?
This is the information gotten by ldd:
ldd binding.node
ldd (0x7f75786b0000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f7578157000)
libpthread.so.0 => ldd (0x7f75786b0000)
libc.so.6 => ldd (0x7f75786b0000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f7577f44000)
Error relocating binding.node: _ZNK2v85Value8ToUint32ENS_5LocalINS_7ContextEEE: symbol not found
Error relocating binding.node: _ZN2v814ObjectTemplate21SetInternalFieldCountEi: symbol not found
Error relocating binding.node: _ZN2v87Isolate14ThrowExceptionENS_5LocalINS_5ValueEEE: symbol not found
Error relocating binding.node: _ZNK2v85Value12IntegerValueENS_5LocalINS_7ContextEEE: symbol not found
Error relocating binding.node: _ZN2v814ObjectTemplate11NewInstanceENS_5LocalINS_7ContextEEE: symbol not found
Error relocating binding.node: _ZN2v820EscapableHandleScopeC1EPNS_7IsolateE: symbol not found
Error relocating binding.node: _ZN2v811HandleScope12CreateHandleEPNS_8internal7IsolateEPNS1_6ObjectE: symbol not found
Error relocating binding.node: _ZN2v87Isolate17GetCurrentContextEv: symbol not found
Error relocating binding.node: _ZN2v816FunctionTemplate12SetClassNameENS_5LocalINS_6StringEEE: symbol not found
Error relocating binding.node: _ZN2v86String11NewFromUtf8EPNS_7IsolateEPKcNS_13NewStringTypeEi: symbol not found
Error relocating binding.node: _ZN4node6Buffer11HasInstanceEN2v85LocalINS1_5ValueEEE: symbol not found
Error relocating binding.node: _ZNK2v85Value11Uint32ValueEv: symbol not found
Error relocating binding.node: _ZN2v811HandleScopeC1EPNS_7IsolateE: symbol not found
Error relocating binding.node: _ZNK2v85Value12BooleanValueEv: symbol not found
Error relocating binding.node: _ZN2v87Integer15NewFromUnsignedEPNS_7IsolateEj: symbol not found
Error relocating binding.node: _ZN2v86Object20SlowGetInternalFieldEi: symbol not found
Error relocating binding.node: ZN2v86Object3SetENS_5LocalINS_5ValueEEES3: symbol not found
Error relocating binding.node: _ZN2v86Object8ForceSetENS_5LocalINS_5ValueEEES3_NS_17PropertyAttributeE: symbol not found
Error relocating binding.node: _ZN2v82V817FromJustIsNothingEv: symbol not found
Error relocating binding.node: ZN4node6Buffer3NewEPN2v87IsolateEPcmPFvS4_PvES5: symbol not found
Error relocating binding.node: _ZN2v86Number3NewEPNS_7IsolateEd: symbol not found
Error relocating binding.node: _ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEi: symbol not found
Error relocating binding.node: node_module_register: symbol not found
Error relocating binding.node: _ZNK2v88External5ValueEv: symbol not found
Error relocating binding.node: _ZN2v86String9Utf8ValueC1ENS_5LocalINS_5ValueEEE: symbol not found
Error relocating binding.node: _ZN2v816FunctionTemplate11GetFunctionENS_5LocalINS_7ContextEEE: symbol not found
Error relocating binding.node: _ZN2v86Object16SetInternalFieldEiNS_5LocalINS_5ValueEEE: symbol not found
Error relocating binding.node: _ZN2v811HandleScopeD2Ev: symbol not found
Error relocating binding.node: _ZN2v88External3NewEPNS_7IsolateEPv: symbol not found
Error relocating binding.node: _ZN2v82V812ToLocalEmptyEv: symbol not found
Error relocating binding.node: _ZN2v814ObjectTemplate3NewEPNS_7IsolateENS_5LocalINS_16FunctionTemplateEEE: symbol not found
Error relocating binding.node: _ZN2v82V813DisposeGlobalEPPNS_8internal6ObjectE: symbol not found
Error relocating binding.node: _ZN2v811HandleScope12CreateHandleEPNS_8internal10HeapObjectEPNS1_6ObjectE: symbol not found
Error relocating binding.node: _ZN2v811HandleScopeD1Ev: symbol not found
Error relocating binding.node: _ZN2v820EscapableHandleScope6EscapeEPPNS_8internal6ObjectE: symbol not found
Error relocating binding.node: _ZN2v82V818GlobalizeReferenceEPNS_8internal7IsolateEPPNS1_6ObjectE: symbol not found
Error relocating binding.node: _ZN2v86Object3NewEPNS_7IsolateE: symbol not found
Error relocating binding.node: __snprintf_chk: symbol not found
Error relocating binding.node: _ZN2v89Exception5ErrorENS_5LocalINS_6StringEEE: symbol not found
Error relocating binding.node: _ZN2v87Isolate10GetCurrentEv: symbol not found
Error relocating binding.node: _ZN2v89Exception9TypeErrorENS_5LocalINS_6StringEEE: symbol not found
Error relocating binding.node: _ZN4node6Buffer4DataEN2v85LocalINS1_6ObjectEEE: symbol not found
Error relocating binding.node: _ZNK2v85Value8IsNumberEv: symbol not found
Error relocating binding.node: _ZN2v82V88MakeWeakEPPNS_8internal6ObjectEPvPFvRKNS_16WeakCallbackInfoIvEEENS_16WeakCallbackTypeE: symbol not found
Error relocating binding.node: _ZN2v86String9Utf8ValueD1Ev: symbol not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions