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

Allow dlclose of so library by avoiding unique symbols. #4204

Merged
merged 6 commits into from Jan 13, 2022

Conversation

TThulesen
Copy link
Contributor

The libassimp.so library contains one symbol of type STB_GNU_UNIQUE, meaning that the library can not be unloaded with dlclose after it has been loaded with dlopen. If a plugin links with the assimp library, this plugin will not be able to unload either.

The following symbol is the problem:
nm -DC /lib/x86_64-linux-gnu/libassimp.so.5.0.0 | grep " u "
0000000000c40f20 u Assimp::IOSystem::CurrentDirectoryabi:cxx11 const::Dummy

A simple fix will be to remove the inlining of this function.

@RichardTea
Copy link
Contributor

Note: This breaks binary compatibility on all platforms. May also affect language wrappers, unsure what they do for inlined functions.

@kimkulling
Copy link
Member

So we need to merge this later on.

@kimkulling
Copy link
Member

OK, lets increase the minor release number and try to get lot of feature into it.

@kimkulling kimkulling merged commit 5976d54 into assimp:master Jan 13, 2022
@kimkulling
Copy link
Member

Merged, thans a lot for your contribution.

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

Successfully merging this pull request may close these issues.

None yet

3 participants