Fixing libssl dependency issue for .NET 10.0 on FreeBSD 15.0
As we have released an article earlier stating that we’ve successfully installed .NET 10.0 on FreeBSD 15.0, there’s a chance where .NET 10.0 may not be able to run, because it couldn’t find the OpenSSL library.
You can read that article here:
Read the instructionsWhen trying to run .NET 10.0 on a FreeBSD 15.0 system, you may run into this error:
aptivi@fbsd-apt:~/dotnet_test/console $ dotnet run No usable version of libssl was found Abort trap (core dumped) The error message was clear, stating that .NET wasn’t able to load any version of the OpenSSL library. In our case, we’ve encountered this error when trying to run the test console application to experiment with platform RID and platform type enumerations on FreeBSD as part of a larger study.
So, we’ve run this command again with LD_DEBUG=1, and found that the below messages were interesting near the end of the output:
aptivi@fbsd-apt:~/dotnet_test/console $ LD_DEBUG=1 dotnet run [...] lml_find(0x245458004198, "/home/aptivi/dotnet/shared/Microsoft.NETCore.App/10.0.2/libSystem.Security.Cryptography.Native.OpenSsl.so") loading "/home/aptivi/dotnet/shared/Microsoft.NETCore.App/10.0.2/libSystem.Security.Cryptography.Native.OpenSsl.so" note osrel 1403000 Ignoring d_tag 1879048185 = 0x6ffffff9 /home/aptivi/dotnet/shared/Microsoft.NETCore.App/10.0.2/libSystem.Security.Cryptography.Native.OpenSsl.so valid_hash_sysv 1 valid_hash_gnu 1 dynsymcount 421 0xe90342a7000 .. 0xe90342d9fff: /home/aptivi/dotnet/shared/Microsoft.NETCore.App/10.0.2/libSystem.Security.Cryptography.Native.OpenSsl.so relocating "/home/aptivi/dotnet/shared/Microsoft.NETCore.App/10.0.2/libSystem.Security.Cryptography.Native.OpenSsl.so" calling init function for /home/aptivi/dotnet/shared/Microsoft.NETCore.App/10.0.2/libSystem.Security.Cryptography.Native.OpenSsl.so at 0xe90342d647c calling init function for /home/aptivi/dotnet/shared/Microsoft.NETCore.App/10.0.2/libSystem.Security.Cryptography.Native.OpenSsl.so at 0xe90342bde20 "pthread_once" in "libSystem.Security.Cryptography.Native.OpenSsl.so" ==> 0xe8b7b6b8190 in "libthr.so.3" reloc_jmpslot: *0xe90342d8aa8 = 0xe8b7b6b8190 "getenv" in "libSystem.Security.Cryptography.Native.OpenSsl.so" ==> 0xe8b7f01f2e0 in "libc.so.7" reloc_jmpslot: *0xe90342d8a50 = 0xe8b7f01f2e0 "dlopen" in "libSystem.Security.Cryptography.Native.OpenSsl.so" ==> 0x1d2aa20785e0 in "ld-elf.so.1" reloc_jmpslot: *0xe90342d8b60 = 0x1d2aa20785e0 dlopen_object name "libssl.so.3" fd -1 refobj "/home/aptivi/dotnet/dotnet" lo_flags 0x2 mode 0x1 lm_find("/home/aptivi/dotnet/dotnet", "libssl.so.3") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "libssl.so.3") Searching for "libssl.so.3" search_library_pathfds('libssl.so.3', '(null)', fdp) lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.3" Failed to open "/lib/libssl.so.3": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.3" Failed to open "/usr/lib/libssl.so.3": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib") Trying "/usr/local/lib/libssl.so.3" Failed to open "/usr/local/lib/libssl.so.3": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/compat/pkg") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/compat/pkg") Trying "/usr/local/lib/compat/pkg/libssl.so.3" Failed to open "/usr/local/lib/compat/pkg/libssl.so.3": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/gcc14") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/gcc14") Trying "/usr/local/lib/gcc14/libssl.so.3" Failed to open "/usr/local/lib/gcc14/libssl.so.3": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/perl5/5.42/mach/CORE") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/perl5/5.42/mach/CORE") Trying "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.3" Failed to open "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.3": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib") Trying "/usr/local/llvm19/lib/libssl.so.3" Failed to open "/usr/local/llvm19/lib/libssl.so.3": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") Trying "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.3" Failed to open "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.3": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.3" Failed to open "/lib/libssl.so.3": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.3" Failed to open "/usr/lib/libssl.so.3": No such file or directory rtld_error: Shared object "libssl.so.3" not found, required by "dotnet" dlopen_object name "libssl.so.1.1" fd -1 refobj "/home/aptivi/dotnet/dotnet" lo_flags 0x2 mode 0x1 lm_find("/home/aptivi/dotnet/dotnet", "libssl.so.1.1") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "libssl.so.1.1") Searching for "libssl.so.1.1" search_library_pathfds('libssl.so.1.1', '(null)', fdp) lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.1.1" Failed to open "/lib/libssl.so.1.1": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.1.1" Failed to open "/usr/lib/libssl.so.1.1": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib") Trying "/usr/local/lib/libssl.so.1.1" Failed to open "/usr/local/lib/libssl.so.1.1": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/compat/pkg") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/compat/pkg") Trying "/usr/local/lib/compat/pkg/libssl.so.1.1" Failed to open "/usr/local/lib/compat/pkg/libssl.so.1.1": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/gcc14") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/gcc14") Trying "/usr/local/lib/gcc14/libssl.so.1.1" Failed to open "/usr/local/lib/gcc14/libssl.so.1.1": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/perl5/5.42/mach/CORE") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/perl5/5.42/mach/CORE") Trying "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.1.1" Failed to open "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.1.1": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib") Trying "/usr/local/llvm19/lib/libssl.so.1.1" Failed to open "/usr/local/llvm19/lib/libssl.so.1.1": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") Trying "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.1.1" Failed to open "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.1.1": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.1.1" Failed to open "/lib/libssl.so.1.1": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.1.1" Failed to open "/usr/lib/libssl.so.1.1": No such file or directory rtld_error: Shared object "libssl.so.1.1" not found, required by "dotnet" dlopen_object name "libssl.so.1.0.2" fd -1 refobj "/home/aptivi/dotnet/dotnet" lo_flags 0x2 mode 0x1 lm_find("/home/aptivi/dotnet/dotnet", "libssl.so.1.0.2") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "libssl.so.1.0.2") Searching for "libssl.so.1.0.2" search_library_pathfds('libssl.so.1.0.2', '(null)', fdp) lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.1.0.2" Failed to open "/lib/libssl.so.1.0.2": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.1.0.2" Failed to open "/usr/lib/libssl.so.1.0.2": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib") Trying "/usr/local/lib/libssl.so.1.0.2" Failed to open "/usr/local/lib/libssl.so.1.0.2": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/compat/pkg") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/compat/pkg") Trying "/usr/local/lib/compat/pkg/libssl.so.1.0.2" Failed to open "/usr/local/lib/compat/pkg/libssl.so.1.0.2": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/gcc14") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/gcc14") Trying "/usr/local/lib/gcc14/libssl.so.1.0.2" Failed to open "/usr/local/lib/gcc14/libssl.so.1.0.2": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/perl5/5.42/mach/CORE") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/perl5/5.42/mach/CORE") Trying "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.1.0.2" Failed to open "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.1.0.2": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib") Trying "/usr/local/llvm19/lib/libssl.so.1.0.2" Failed to open "/usr/local/llvm19/lib/libssl.so.1.0.2": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") Trying "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.1.0.2" Failed to open "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.1.0.2": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.1.0.2" Failed to open "/lib/libssl.so.1.0.2": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.1.0.2" Failed to open "/usr/lib/libssl.so.1.0.2": No such file or directory rtld_error: Shared object "libssl.so.1.0.2" not found, required by "dotnet" dlopen_object name "libssl.so.1.0.0" fd -1 refobj "/home/aptivi/dotnet/dotnet" lo_flags 0x2 mode 0x1 lm_find("/home/aptivi/dotnet/dotnet", "libssl.so.1.0.0") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "libssl.so.1.0.0") Searching for "libssl.so.1.0.0" search_library_pathfds('libssl.so.1.0.0', '(null)', fdp) lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.1.0.0" Failed to open "/lib/libssl.so.1.0.0": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.1.0.0" Failed to open "/usr/lib/libssl.so.1.0.0": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib") Trying "/usr/local/lib/libssl.so.1.0.0" Failed to open "/usr/local/lib/libssl.so.1.0.0": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/compat/pkg") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/compat/pkg") Trying "/usr/local/lib/compat/pkg/libssl.so.1.0.0" Failed to open "/usr/local/lib/compat/pkg/libssl.so.1.0.0": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/gcc14") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/gcc14") Trying "/usr/local/lib/gcc14/libssl.so.1.0.0" Failed to open "/usr/local/lib/gcc14/libssl.so.1.0.0": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/perl5/5.42/mach/CORE") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/perl5/5.42/mach/CORE") Trying "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.1.0.0" Failed to open "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.1.0.0": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib") Trying "/usr/local/llvm19/lib/libssl.so.1.0.0" Failed to open "/usr/local/llvm19/lib/libssl.so.1.0.0": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") Trying "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.1.0.0" Failed to open "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.1.0.0": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.1.0.0" Failed to open "/lib/libssl.so.1.0.0": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.1.0.0" Failed to open "/usr/lib/libssl.so.1.0.0": No such file or directory rtld_error: Shared object "libssl.so.1.0.0" not found, required by "dotnet" dlopen_object name "libssl.so.10" fd -1 refobj "/home/aptivi/dotnet/dotnet" lo_flags 0x2 mode 0x1 lm_find("/home/aptivi/dotnet/dotnet", "libssl.so.10") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "libssl.so.10") Searching for "libssl.so.10" search_library_pathfds('libssl.so.10', '(null)', fdp) lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.10" Failed to open "/lib/libssl.so.10": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.10" Failed to open "/usr/lib/libssl.so.10": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib") Trying "/usr/local/lib/libssl.so.10" Failed to open "/usr/local/lib/libssl.so.10": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/compat/pkg") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/compat/pkg") Trying "/usr/local/lib/compat/pkg/libssl.so.10" Failed to open "/usr/local/lib/compat/pkg/libssl.so.10": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/gcc14") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/gcc14") Trying "/usr/local/lib/gcc14/libssl.so.10" Failed to open "/usr/local/lib/gcc14/libssl.so.10": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/perl5/5.42/mach/CORE") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/perl5/5.42/mach/CORE") Trying "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.10" Failed to open "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.10": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib") Trying "/usr/local/llvm19/lib/libssl.so.10" Failed to open "/usr/local/llvm19/lib/libssl.so.10": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") Trying "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.10" Failed to open "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.10": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.10" Failed to open "/lib/libssl.so.10": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.10" Failed to open "/usr/lib/libssl.so.10": No such file or directory rtld_error: Shared object "libssl.so.10" not found, required by "dotnet" dlopen_object name "libssl.so.12" fd -1 refobj "/home/aptivi/dotnet/dotnet" lo_flags 0x2 mode 0x1 lm_find("/home/aptivi/dotnet/dotnet", "libssl.so.12") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "libssl.so.12") Searching for "libssl.so.12" search_library_pathfds('libssl.so.12', '(null)', fdp) lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.12" Failed to open "/lib/libssl.so.12": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.12" Failed to open "/usr/lib/libssl.so.12": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib") Trying "/usr/local/lib/libssl.so.12" Failed to open "/usr/local/lib/libssl.so.12": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/compat/pkg") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/compat/pkg") Trying "/usr/local/lib/compat/pkg/libssl.so.12" Failed to open "/usr/local/lib/compat/pkg/libssl.so.12": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/gcc14") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/gcc14") Trying "/usr/local/lib/gcc14/libssl.so.12" Failed to open "/usr/local/lib/gcc14/libssl.so.12": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/perl5/5.42/mach/CORE") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/perl5/5.42/mach/CORE") Trying "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.12" Failed to open "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.12": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib") Trying "/usr/local/llvm19/lib/libssl.so.12" Failed to open "/usr/local/llvm19/lib/libssl.so.12": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") Trying "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.12" Failed to open "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.12": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.12" Failed to open "/lib/libssl.so.12": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.12" Failed to open "/usr/lib/libssl.so.12": No such file or directory rtld_error: Shared object "libssl.so.12" not found, required by "dotnet" dlopen_object name "libssl.so.30" fd -1 refobj "/home/aptivi/dotnet/dotnet" lo_flags 0x2 mode 0x1 lm_find("/home/aptivi/dotnet/dotnet", "libssl.so.30") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "libssl.so.30") Searching for "libssl.so.30" search_library_pathfds('libssl.so.30', '(null)', fdp) lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.30" Failed to open "/lib/libssl.so.30": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.30" Failed to open "/usr/lib/libssl.so.30": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib") Trying "/usr/local/lib/libssl.so.30" Failed to open "/usr/local/lib/libssl.so.30": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/compat/pkg") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/compat/pkg") Trying "/usr/local/lib/compat/pkg/libssl.so.30" Failed to open "/usr/local/lib/compat/pkg/libssl.so.30": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/gcc14") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/gcc14") Trying "/usr/local/lib/gcc14/libssl.so.30" Failed to open "/usr/local/lib/gcc14/libssl.so.30": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/perl5/5.42/mach/CORE") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/perl5/5.42/mach/CORE") Trying "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.30" Failed to open "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.30": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib") Trying "/usr/local/llvm19/lib/libssl.so.30" Failed to open "/usr/local/llvm19/lib/libssl.so.30": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") Trying "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.30" Failed to open "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.30": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.30" Failed to open "/lib/libssl.so.30": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.30" Failed to open "/usr/lib/libssl.so.30": No such file or directory rtld_error: Shared object "libssl.so.30" not found, required by "dotnet" dlopen_object name "libssl.so.11" fd -1 refobj "/home/aptivi/dotnet/dotnet" lo_flags 0x2 mode 0x1 lm_find("/home/aptivi/dotnet/dotnet", "libssl.so.11") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "libssl.so.11") Searching for "libssl.so.11" search_library_pathfds('libssl.so.11', '(null)', fdp) lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.11" Failed to open "/lib/libssl.so.11": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.11" Failed to open "/usr/lib/libssl.so.11": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib") Trying "/usr/local/lib/libssl.so.11" Failed to open "/usr/local/lib/libssl.so.11": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/compat/pkg") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/compat/pkg") Trying "/usr/local/lib/compat/pkg/libssl.so.11" Failed to open "/usr/local/lib/compat/pkg/libssl.so.11": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/gcc14") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/gcc14") Trying "/usr/local/lib/gcc14/libssl.so.11" Failed to open "/usr/local/lib/gcc14/libssl.so.11": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/perl5/5.42/mach/CORE") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/perl5/5.42/mach/CORE") Trying "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.11" Failed to open "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.11": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib") Trying "/usr/local/llvm19/lib/libssl.so.11" Failed to open "/usr/local/llvm19/lib/libssl.so.11": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") Trying "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.11" Failed to open "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.11": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.11" Failed to open "/lib/libssl.so.11": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.11" Failed to open "/usr/lib/libssl.so.11": No such file or directory rtld_error: Shared object "libssl.so.11" not found, required by "dotnet" dlopen_object name "libssl.so.111" fd -1 refobj "/home/aptivi/dotnet/dotnet" lo_flags 0x2 mode 0x1 lm_find("/home/aptivi/dotnet/dotnet", "libssl.so.111") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "libssl.so.111") Searching for "libssl.so.111" search_library_pathfds('libssl.so.111', '(null)', fdp) lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.111" Failed to open "/lib/libssl.so.111": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.111" Failed to open "/usr/lib/libssl.so.111": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib") Trying "/usr/local/lib/libssl.so.111" Failed to open "/usr/local/lib/libssl.so.111": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/compat/pkg") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/compat/pkg") Trying "/usr/local/lib/compat/pkg/libssl.so.111" Failed to open "/usr/local/lib/compat/pkg/libssl.so.111": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/gcc14") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/gcc14") Trying "/usr/local/lib/gcc14/libssl.so.111" Failed to open "/usr/local/lib/gcc14/libssl.so.111": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/lib/perl5/5.42/mach/CORE") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/lib/perl5/5.42/mach/CORE") Trying "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.111" Failed to open "/usr/local/lib/perl5/5.42/mach/CORE/libssl.so.111": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib") Trying "/usr/local/llvm19/lib/libssl.so.111" Failed to open "/usr/local/llvm19/lib/libssl.so.111": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0") Trying "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.111" Failed to open "/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0/libssl.so.111": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/lib") Trying "/lib/libssl.so.111" Failed to open "/lib/libssl.so.111": No such file or directory lm_find("/home/aptivi/dotnet/dotnet", "/usr/lib") lmp_find("/home/aptivi/dotnet/dotnet") lmp_find("$DEFAULT$") lml_find(0x245458004198, "/usr/lib") Trying "/usr/lib/libssl.so.111" Failed to open "/usr/lib/libssl.so.111": No such file or directory rtld_error: Shared object "libssl.so.111" not found, required by "dotnet" "fwrite" in "libSystem.Security.Cryptography.Native.OpenSsl.so" ==> 0xe8b7efd3c80 in "libc.so.7" reloc_jmpslot: *0xe90342d8b78 = 0xe8b7efd3c80 "_write" in "libc.so.7" ==> 0xe8b7fba8160 in "libsys.so.7" reloc_jmpslot: *0xe8b7f0a7a00 = 0xe8b7fba8160 No usable version of libssl was found "abort" in "libSystem.Security.Cryptography.Native.OpenSsl.so" ==> 0xe8b7f01e6b0 in "libc.so.7" reloc_jmpslot: *0xe90342d8b80 = 0xe8b7f01e6b0 "sigfillset" in "libc.so.7" ==> 0xe8b7ef6f9d0 in "libc.so.7" reloc_jmpslot: *0xe8b7f0a7948 = 0xe8b7ef6f9d0 "sigdelset" in "libc.so.7" ==> 0xe8b7ef6f980 in "libc.so.7" reloc_jmpslot: *0xe8b7f0a7aa8 = 0xe8b7ef6f980 "raise" in "libc.so.7" ==> 0xe8b7ef6c860 in "libc.so.7" reloc_jmpslot: *0xe8b7f0a7c40 = 0xe8b7ef6c860 "__sys_thr_self" in "libc.so.7" ==> 0xe8b7fba69c0 in "libsys.so.7" reloc_jmpslot: *0xe8b7f0a82c0 = 0xe8b7fba69c0 "__sys_thr_kill" in "libc.so.7" ==> 0xe8b7fba69e0 in "libsys.so.7" reloc_jmpslot: *0xe8b7f0a82c8 = 0xe8b7fba69e0 Abort trap (core dumped) To be more specific, the following library files for different versions of OpenSSL were tried:
libssl.so.3libssl.so.1.1libssl.so.1.0.2libssl.so.1.0.0libssl.so.10libssl.so.12libssl.so.30libssl.so.11libssl.so.111
The versions v1.0.x, v1.1.x, v1.2.x, and v3.x were tried, but .NET couldn’t find any of the above-mentioned files across several paths, including:
/lib/usr/lib/usr/local/lib/usr/local/lib/compat/pkg/usr/local/lib/gcc14/usr/local/lib/perl5/5.42/mach/CORE/usr/local/llvm19/lib/usr/local/llvm19/lib/x86_64-portbld-freebsd15.0
We have managed to fix this issue by installing a missing dependency, openssl, on our FreeBSD system, which is done on a PKGBASE-based FreeBSD 15.0 installation by executing the below command:
aptivi@fbsd-apt:~/dotnet_test/console $ sudo pkg install openssl Password: Updating FreeBSD-ports repository catalogue... Fetching data: 100% 10 MiB 80.2 kB/s 02:17 Processing entries: 100% FreeBSD-ports repository update completed. 37046 packages processed. Updating FreeBSD-ports-kmods repository catalogue... Fetching data: 100% 35 KiB 35.8 kB/s 00:01 Processing entries: 100% FreeBSD-ports-kmods repository update completed. 240 packages processed. Updating FreeBSD-base repository catalogue... FreeBSD-base repository is up to date. All repositories are up to date. The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: openssl: 3.0.19,1 [FreeBSD-ports] Number of packages to be installed: 1 The process will require 21 MiB more space. 6 MiB to be downloaded. Proceed with this action? [y/N]: y [1/1] Fetching openssl-3.0.19,1: 100% 6065 KiB 517.6 kB/s 00:12 Checking integrity... done (0 conflicting) [1/1] Installing openssl-3.0.19,1... [1/1] Extracting openssl-3.0.19,1: 100% That installed the necessary library file for libssl v3.0, which .NET 10.0’s FreeBSD 15.0 build requires.
After we have installed this dependency, dotnet no longer complains about missing OpenSSL libraries, and our program now runs successfully!
aptivi@fbsd-apt:~/dotnet_test/console $ dotnet run Unix freebsd-x64 aptivi@fbsd-apt:~/dotnet_test/console $ For reference, here’s the program:
namespace console; using System.Runtime.InteropServices; class Program { static void Main(string[] args) { Console.WriteLine(Environment.OSVersion.Platform); Console.WriteLine(RuntimeInformation.RuntimeIdentifier); } }
#Net #Net100 #dotnet #dotnet100 #FreeBSD #FreeBSD150 #news #Tech #Technology #update




