[Bug 288650] git invocation fails with: "libheimntlm.so.11" not found, required by "libcurl.so.4" on 15-CURRENT

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 05 Aug 2025 05:55:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288650

--- Comment #1 from Henryk Paluch <hpaluch@seznam.cz> ---
Additional information:

Using: truss -o /root/trace.log -f -a GIT_COMMAND

I found that following commands are executed:
- /usr/local/libexec/git-core/git
- /usr/local/libexec/git-core/git-remote-https

The linking problem is related to later:

$ ldd /usr/local/libexec/git-core/git-remote-https | grep 'not found'
        libheimntlm.so.11 => not found (0)
        libhx509.so.11 => not found (0)
        libcom_err.so.5 => not found (0)
        libasn1.so.11 => not found (0)
        libwind.so.11 => not found (0)
        libheimbase.so.11 => not found (0)
        libroken.so.11 => not found (0)
        libkrb5.so.11 => not found (0)
        libgssapi_krb5.so.10 => not found (0)

Some of these libraries are in /usr/lib but with different version:

$ ls -g /usr/lib/libcom_err.so*

lrwxr-xr-x  1 wheel    17 Aug  1 01:42 /usr/lib/libcom_err.so ->
libcom_err.so.122
-r--r--r--  1 wheel 11576 Aug  1 01:42 /usr/lib/libcom_err.so.122

Same problem affects also "curl" package:

$ curl https://www.freebsd.org

ld-elf.so.1: Shared object "libheimntlm.so.11" not found, required by "curl"


What is puzzling that while "pkg check curl" properly reports missing libraries
(but it installed it):

$ pkg check -d curl

Checking curl: 100%
curl is missing a required shared library: libasn1.so.11
curl is missing a required shared library: libcom_err.so.5
curl is missing a required shared library: libgssapi_krb5.so.10
curl is missing a required shared library: libheimbase.so.11
curl is missing a required shared library: libheimntlm.so.11
curl is missing a required shared library: libhx509.so.11
curl is missing a required shared library: libkrb5.so.11
curl is missing a required shared library: libroken.so.11
curl is missing a required shared library: libwind.so.11

$ pkg check -d git-lite

Checking git-lite: 100%

I suspect that it is because Shared library dependencies are not scanned for
binaries in /usr/local/libexec/git-core/

-- 
You are receiving this mail because:
You are the assignee for the bug.