Repository navigation
fix: duplicate symbol _ntlm_md4_digest with securetransport backend - #23
Merged
Merged
Conversation
Collaborator
|
CI failures seem to be unrelated. I'll test again after updating the repo and CI to |
Parzival-3141
force-pushed
the
fix_duplicated_ntlm
branch
from
October 23, 2026 07:41
36b62f3 to
f4ac9d6
Compare
Collaborator
|
The patch passes CI for |
Parzival-3141
force-pushed
the
fix_duplicated_ntlm
branch
from
October 23, 2026 08:18
30c787f to
292d007
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Building with zig 0.17.0 on macOS fails at link time:
error: duplicate symbol definition: _ntlm_md4_digest
note: defined by .../libntlmclient.a(crypt_builtin_md4.o)
note: defined by .../libntlmclient.a(crypt_commoncrypto.o)
build.zigcompiles thentlmclientstatic library from two lists:crypt_openssl.c,crypt_mbedtls.c, orcrypt_commoncrypto.c).ntlm_sources, which unconditionally containedcrypt_builtin_md4.c.crypt_commoncrypto.calready definesntlm_md4_digest(https://github.com/libgit2/libgit2/blob/42a89d7cc9374a19e72fa57011e5fe3a99c7b3bf/deps/ntlmclient/crypt_commoncrypto.c#L76),
and
crypt_builtin_md4.cdefines the same function (https://github.com/libgit2/libgit2/blob/42a89d7cc9374a19e72fa57011e5fe3a99c7b3bf/deps/ntlmclient/crypt_builtin_md4.c#L293).On the
securetransportbackendboth objects end up in
libntlmclient.a, so the symbol is defined twice.Upstream libgit2's CMake only adds
crypt_builtin_md4.cto the mbedtsl backend https://github.com/libgit2/libgit2/blob/42a89d7cc9374a19e72fa57011e5fe3a99c7b3bf/deps/ntlmclient/CMakeLists.txt#L34I guess older zig version tolerated the duplicate.