You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fails to export PyInit_MODULE when compiling with hidden visibility #169
It seems like BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY is gone in boost1.65.1 but is still referenced in module_init.hpp. This results in failure to export PyInit_mymodule when compiling with hidden visibility and g++.
I have worked around this by add -DBOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY=1 in my sources. But previous boost did the right thing here.
Maybe the condition path elif BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY can be dropped, adn the default fall through should be adjusted to become:
As BOOST_SYMBOL_EXPORT defines the right thing for the right compiler, for g++ it adds __attribute__((__visibility__("default"))) no? or maybe use BOOST_SYMBOL_VISIBLE ?
Activity
stefanseefeld commentedon Oct 30, 2017
Didn't #159 address this ? Can you please confirm whether the bug is still present on the current "develop" branch ?
xnox commentedon Oct 30, 2017
It looks like it should. Let me verify that, and I guess I will have to cherrypick that patch into Debian and Ubuntu builds of boost1.65.1.
xnox commentedon Nov 3, 2017
Yeap, that patch is awesome, staged to be uploaded into Debian & Ubuntu. Thanks a lot!