Skip to content

Linux: v4.69.1 depends on libc++1 #5169

@GruberMarkus

Description

@GruberMarkus

On Linux, MSAL.Net v4.69.1 with broker support requires libc++1 or one of its dependencies to work.

MSAL.Net does not check this dependency, the error message is very generic:
"Unable to load shared library 'msalruntime' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace.
| If you're using glibc, consider setting the LD_DEBUG environment variable: /opt/microsoft/powershell/7/msalruntime.so: cannot open shared object file: No such file or directory
| /tmp/891b29c2-3267-4bf5-8484-e754c680068e/MSAL.PS/netstandard2.0/msalruntime.so: cannot open shared object file: No such file or directory /opt/microsoft/powershell/7/libmsalruntime.so: cannot open
| shared object file: No such file or directory libc++.so.1: cannot open shared object file: No such file or directory /opt/microsoft/powershell/7/msalruntime: cannot open shared object file: No such file
| or directory /tmp/891b29c2-3267-4bf5-8484-e754c680068e/MSAL.PS/netstandard2.0/msalruntime: cannot open shared object file: No such file or directory /opt/microsoft/powershell/7/libmsalruntime: cannot
| open shared object file: No such file or directory /tmp/891b29c2-3267-4bf5-8484-e754c680068e/MSAL.PS/netstandard2.0/libmsalruntime: cannot open shared object file: No such file or directory See
| https://aka.ms/msal-net-wam#troubleshooting"

I only found about the missing dependencies by running the following command:

ldd libmsalruntime.so | grep "not found"

which results in

libc++.so.1 => not found
libc++abi.so.1 => not found
libunwind.so.1 => not found

Please advice is libc++1 will remain a requirement, or if this dependency will be removed from MSAL.Net.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions