git is broken because curl is broken which stops me in my tracks

From: Dennis Clarke <dclarke_at_blastwave.org>
Date: Mon, 15 Sep 2025 01:00:06 UTC
Well I am not sure how to get around this mess :

enceladus# cd /usr/src
enceladus# git pull origin main
ld-elf.so.1: Shared object "libkrb5.so.122" not found, required by 
"libcurl.so.4"
fatal: remote helper 'https' aborted session
enceladus#

enceladus# which curl
/usr/local/bin/curl
enceladus# ldd /usr/local/bin/curl
/usr/local/bin/curl:
         libcurl.so.4 => /usr/local/lib/libcurl.so.4 (0xf8817c000)
         libnghttp2.so.14 => /usr/local/lib/libnghttp2.so.14 (0xf893c8000)
         libidn2.so.0 => /usr/local/lib/libidn2.so.0 (0xf8963d000)
         libssh2.so.1 => /usr/local/lib/libssh2.so.1 (0xf89bba000)
         libpsl.so.5 => /usr/local/lib/libpsl.so.5 (0xf8aa31000)
         libssl.so.35 => /usr/lib/libssl.so.35 (0xf8ae2c000)
         libcrypto.so.35 => /lib/libcrypto.so.35 (0xf8b1e0000)
         libzstd.so.1 => /usr/local/lib/libzstd.so.1 (0xf8c1b0000)
         libbrotlidec.so.1 => /usr/local/lib/libbrotlidec.so.1 (0xf882b2000)
         libbrotlicommon.so.1 => /usr/local/lib/libbrotlicommon.so.1 
(0xf8c9b1000)
         libz.so.6 => /lib/libz.so.6 (0xf8d7cb000)
         libkrb5.so.122 => not found (0)
         libgssapi_krb5.so.122 => not found (0)
         libthr.so.3 => /lib/libthr.so.3 (0xf8e1e5000)
         libc.so.7 => /lib/libc.so.7 (0xf8e4c8000)
         libkrb5.so.122 => not found (0)
         libgssapi_krb5.so.122 => not found (0)
         libunistring.so.5 => /usr/local/lib/libunistring.so.5 (0xf8f160000)
         libm.so.5 => /lib/libm.so.5 (0xf8fbe8000)
         libsys.so.7 => /lib/libsys.so.7 (0xf9069e000)
enceladus#
enceladus# which git
/usr/local/bin/git

enceladus# pkg query %n\ %v\ %o\ \%R\ %a | grep '0$'
apache24 2.4.65_1 www/apache24 RV64 0
autoconf 2.72 devel/autoconf RV64 0
autogen 5.18.16_4 devel/autogen RV64 0
autotools 20220528 devel/autotools RV64 0
ccache-static 3.7.12_8 devel/ccache-static RV64 0
git 2.51.0 devel/git RV64 0
gmake 4.4.1 devel/gmake RV64 0
pkg 2.2.2 ports-mgmt/pkg RV64 0
poudriere 3.4.3 ports-mgmt/poudriere RV64 0
rust 1.89.0 lang/rust RV64 0
tmux 3.5a_1 sysutils/tmux RV64 0
vim 9.1.1723 editors/vim RV64 0
xauth 1.1.4 x11/xauth RV64 0
xlogo 1.0.7 x11/xlogo RV64 0
xterm 401 x11/xterm RV64 0
enceladus#

All that stuff was locally built with poudriere on this RISC-V board
  and now it seems I need some libs that vanished somewhere.

I am not sure how to dig out of this rathole.

-- 
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken