Re: Openssl errors on FreeBSD

From: Jin Guojun[VFF] <jguojun_at_gmail.com>
Date: Tue, 07 Nov 2023 19:34:53 UTC
On 11/7/23 10:36, iio7@tutanota.com wrote:
>
>> Yes, but what about
>>
>> ldd curl
>>
>> ? What does it show
>>
> Sorry, forgot ldd.
>
> $ ldd /usr/local/bin/curl
> /usr/local/bin/curl:
>          libcurl.so.4 => /usr/local/lib/libcurl.so.4 (0x1fc15c2cd000)
>          libz.so.6 => /lib/libz.so.6 (0x1fc15d337000)
>          libkrb5.so.11 => /usr/lib/libkrb5.so.11 (0x1fc15ddbf000)
>          libgssapi.so.10 => /usr/lib/libgssapi.so.10 (0x1fc15ec46000)
>          libgssapi_krb5.so.10 => /usr/lib/libgssapi_krb5.so.10 (0x1fc15fc91000)
>          libthr.so.3 => /lib/libthr.so.3 (0x1fc15f095000)
>          libc.so.7 => /lib/libc.so.7 (0x1fc15fed8000)
>          libnghttp2.so.14 => /usr/local/lib/libnghttp2.so.14 (0x1fc160f02000)
>          libssh2.so.1 => /usr/local/lib/libssh2.so.1 (0x1fc1624ba000)
>          libpsl.so.5 => /usr/local/lib/libpsl.so.5 (0x1fc161dcc000)
>          libssl.so.111 => /usr/lib/libssl.so.111 (0x1fc163cab000)
>          libheimntlm.so.11 => /usr/lib/libheimntlm.so.11 (0x1fc162630000)
>          libhx509.so.11 => /usr/lib/libhx509.so.11 (0x1fc162acc000)
>          libcom_err.so.5 => /usr/lib/libcom_err.so.5 (0x1fc162f7d000)
>          libcrypto.so.111 => /lib/libcrypto.so.111 (0x1fc165235000)
>          libasn1.so.11 => /usr/lib/libasn1.so.11 (0x1fc163e69000)
>          libwind.so.11 => /usr/lib/libwind.so.11 (0x1fc1649eb000)
>          libheimbase.so.11 => /usr/lib/libheimbase.so.11 (0x1fc166551000)
>          libroken.so.11 => /usr/lib/libroken.so.11 (0x1fc16573f000)
>          libcrypt.so.5 => /lib/libcrypt.so.5 (0x1fc167452000)
>          libprivateheimipcc.so.11 => /usr/lib/libprivateheimipcc.so.11 (0x1fc16877f000)
>          libidn2.so.0 => /usr/local/lib/libidn2.so.0 (0x1fc1683b6000)
>          libunistring.so.5 => /usr/local/lib/libunistring.so.5 (0x1fc1695eb000)
>          [vdso] (0x7ffffffff000)
>
>> And I am guessing you have nothing in /etc/libmap*
>>
> $ ls /etc/libmap*
> /etc/libmap.conf
>
> $ cat /etc/libmap.conf
> # $FreeBSD$
> includedir /usr/local/etc/libmap.d
>
> $ ls /usr/local/etc/libmap.d
> ls: /usr/local/etc/libmap.d: No such file or directory
>
I do not see this problem on my 13.2 box. Maybe the time to check the 
file size and checksum:

# md5  /usr/lib/libssl.so.111 /usr/local/lib/libssh2.so.1 
/usr/local/lib/libpsl.so.5 /lib/libcrypt.so.5
MD5 (/usr/lib/libssl.so.111) = c0acd4514415e93aeab75b7f4c557215
MD5 (/usr/local/lib/libssh2.so.1) = 97352dbd17601ae92f1be57a5c2d4117
MD5 (/usr/local/lib/libpsl.so.5) = 03e94fb7b12212abce81783304706c4d
MD5 (/lib/libcrypt.so.5) = cb4a7958dbaba1291c11384dbc36cd06

# ls -l  /usr/lib/libssl.so.111 /usr/local/lib/libssh2.so.1 
/usr/local/lib/libpsl.so.5  /lib/libcrypt.so.5
-r--r--r--  1 root  wheel   52096 Apr  6  2023 /lib/libcrypt.so.5
-r--r--r--  1 root  wheel  611232 Apr  6  2023 /usr/lib/libssl.so.111
lrwxr-xr-x  1 root  wheel      15 Apr  1  2023 
/usr/local/lib/libpsl.so.5@ -> libpsl.so.5.3.4
lrwxr-xr-x  1 root  wheel      16 Feb 17  2023 
/usr/local/lib/libssh2.so.1@ -> libssh2.so.1.0.1


# ls -lL  /usr/local/lib/libssh2.so.1 /usr/local/lib/libpsl.so.5
-rwxr-xr-x  1 root  wheel   72184 Apr  1  2023 /usr/local/lib/libpsl.so.5*
-rwxr-xr-x  1 root  wheel  245016 Feb 17  2023 /usr/local/lib/libssh2.so.1*