Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libdl.so problems on Ubuntu 24.04 #239

Open
Jakub1Cieslak opened this issue Jun 17, 2024 · 1 comment
Open

libdl.so problems on Ubuntu 24.04 #239

Jakub1Cieslak opened this issue Jun 17, 2024 · 1 comment

Comments

@Jakub1Cieslak
Copy link

Jakub1Cieslak commented Jun 17, 2024

I wrote an app using the Pkcs11Interop library and am currently trying to run it on Ubuntu 24.04. When calling HighLevelAPI.Factories.Pkcs11LibraryFactory.LoadPkcs11Library(), I am getting this error:
obraz
From what I've been able to gather, this is an issue in Ubuntu versions past 20, as libdl.so is no longer supported in favour of libdl.so.2. Creating a symlink so that the latter "impersonates" the former did not work for me. Is there any workaround for this, or does the library simply not support newer Ubuntu versions?

@jariq
Copy link
Member

jariq commented Jun 17, 2024

You need to map libdl to libdl.so.2 in your application by using DllImportResolver delegate with NativeLibrary.SetDllImportResolver method. Sample can be seen in #168 (comment) or in Pkcs11LoggerTests project. More detailed explanation can be seen in #208 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants