-
Notifications
You must be signed in to change notification settings - Fork 209
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
dlopen("libcudart") results in duplicate libraries #1814
Comments
So the dynamic linker knows about the copy we've loaded, but doesn't use it. |
|
Ah, the reason is that the JLLs
This is still surprising to me though, because we're now loading an identically-named copy (i.e, with exactly the same SONAME) from a library that's already been loaded. |
So in summary:
vs
|
Yes; in general, you have to use the |
The problem is that this is incompatible with existing software that does |
One way that I’ve solved this in the past is to have symlinks with no versioning in the name that point to the main library, then ensure that that symlink is on the library path. But this then gets load-order dependent, which is not very fun. |
@staticfloat This is very surprising to me, and seems to break the whole premise of JLLs eagerly
dlopen
ing libraries so that they are discoverable afterwards without mucking with the library path. Any thoughts?cc @vchuravy
The text was updated successfully, but these errors were encountered: