Skip to content

MD5 symbols missing from Windows libraryΒ #45445

@mohd-akram

Description

@mohd-akram

Version

v18.12.1

Platform

Microsoft Windows NT 10.0.22000.0 x64

Subsystem

No response

What steps will reproduce the bug?

  1. Run node-gyp rebuild on Windows

md5.c:

#include <openssl/md5.h>

void hash(void)
{
        MD5_CTX c;
        MD5_Init(&c);
        MD5_Update(&c, NULL, 0);
        MD5_Final(NULL, &c);
}

binding.gyp:

{ 'targets': [{ 'target_name': 'md5', 'sources': ['md5.c'] }] }

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior?

Builds successfully as it does on other platforms (and Node.js 16 on Windows).

What do you see instead?

md5.obj : error LNK2001: unresolved external symbol MD5_Update [C:\Users\User\Development\md5\build\md5.vcxproj]
md5.obj : error LNK2001: unresolved external symbol MD5_Final [C:\Users\User\Development\md5\build\md5.vcxproj]
md5.obj : error LNK2001: unresolved external symbol MD5_Init [C:\Users\User\Development\md5\build\md5.vcxproj]

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions