Skip to content

Windows Node 6.3.0 binary exports SSL symbols #7608

Closed
@Flarna

Description

@Flarna
  • Version: 6.3.0
  • Platform: Windows (32 + 64 bit)
  • Subsystem: build/deps

I work on a project using a native addon where libcurl is used.
If I build with node 6.3.0 headers/libs I get a linker error because of duplicate symbols:

1>libcurl_a.lib(cversion.obj) : error LNK2005: _SSLeay_version already defined in node.lib(node.exe)
1>libcurl_a.lib(ssl_lib.obj) : error LNK2005: _SSL_CTX_ctrl already defined in node.lib(node.exe)
1>libcurl_a.lib(cryptlib.obj) : error LNK2005: _CRYPTO_num_locks already defined in node.lib(node.exe)
1>libcurl_a.lib(cryptlib.obj) : error LNK2005: _CRYPTO_set_dynlock_create_callback already defined in node.lib(node.exe)
1>libcurl_a.lib(cryptlib.obj) : error LNK2005: _CRYPTO_set_dynlock_destroy_callback already defined in node.lib(node.exe)
1>libcurl_a.lib(cryptlib.obj) : error LNK2005: _CRYPTO_set_dynlock_lock_callback already defined in node.lib(node.exe)
1>libcurl_a.lib(cryptlib.obj) : error LNK2005: _CRYPTO_set_locking_callback already defined in node.lib(node.exe)

Looks like node 6.3.0 exports SSL functions for some reason which was not the case for 6.2.2.

Is this intended?

Metadata

Metadata

Assignees

No one assigned

    Labels

    addonsIssues and PRs related to native addons.opensslIssues and PRs related to the OpenSSL dependency.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions