-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
Applications using dynamic plugins must link to shared HDF5 library #1009
Comments
Note that this is also the case for the HDF5 tools, eg |
HDF5 using dynamic plugins use the dlopen call, which must use shared libraries. Otherwise application will use an incorrect instance of the hdf5 library. |
Yes that makes sense, thanks - though I do think the documentation needs to be clearer on this point (I'm happy to contribute that documentation once I've finished work on this plugin). This limitation also only applies to plugins that call back into the HDF5 API - not all of them do, notably the If the plugin callback signatures were extended to make calling back into the API unecessary (eg by providing chunk size and type information), this limitation could be mitigated. |
The documentation needs to fixed in hdf5. And the plugins repo as well.
NO, this limitation applies always when using plugins and needs to be documented. |
Summary
Applications using dynamic plugins must link to shared HDF5 library. API calls from the plugin fail if the application loading the plugin links to the static library
Steps to reproduce
See the attached minimal sample:
plugin_test.tar.gz
Expected results
Test executable should exit cleanly with the following output:
Actual results
Workaround
Configure as above but link the shared HDF5 libraries with
Notes
If this is expected behaviour I could not locate it in the documentation.
The text was updated successfully, but these errors were encountered: