Skip to content

When node is build with --fully-static option, node cannot use c++ addon. #3600

Closed

Description

@Darshanpd

When node is compiled with --fully-static option. Node gives an error while using c++ addon as shown below,

Error: /sd/addon.node: undefined symbol: node_module_register

The issue is that even though node_module_register is present in the compiled node, since it is statically build dlopen() fails to load this symbol.

Activity

  1. mscdex commented on Oct 30, 2015

    @mscdex
    Contributor

    This is already noted in the wiki and is a known limitation of fully static executables.

    There are some workarounds/hacks to deal with this, but they are not particularly pretty and some of them may not work for all applications/scenarios. For more detailed information, you might start by reading this discussion thread on the musl-libc mailing list.

  2. added
    c++Issues and PRs that require attention from people who are familiar with C++.
    buildIssues and PRs related to Node.js builds or CI infrastructure.
    on Oct 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to Node.js builds or CI infrastructure.c++Issues and PRs that require attention from people who are familiar with C++.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions