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
[C++] Build shared libraries consistently with -fvisibility=hidden #20454
Antoine Pitrou / @pitrou:
My attempts crash on macOS. The explanation is as following: even if you duly export template classes such as NumericBuilder<Int32Type>, they will be compiled independently in several places, so the resulting typeids will be different. This makes dynamic_cast attempts fail when they do not use the same typeid for the template class.
Wes McKinney / @wesm:
I see, that is indeed problematic, we've had other visibility issues with exported template symbols in the past. Perhaps this project is not worth the trouble, at least not for now.
Antoine Pitrou / @pitrou: @fsaintjacques That's possible. I may give it a try at some point but this issue is a bit low priority compared to other concerns :-)
Antoine Pitrou / @pitrou:
I'm going to close for now. We will have to rely on developer discipline to put as much internal stuff as possible in the anonymous namespace.
Activity
asfimport commentedon Feb 8, 2019
Wes McKinney / @wesm:
This is blocked on removing "extern template class" usages from libparquet
asfimport commentedon Apr 24, 2019
Wes McKinney / @wesm:
I just closed #2437 and will plan to return to this once the Parquet symbol visibility issue is dealt with
asfimport commentedon May 31, 2019
Wes McKinney / @wesm:
I might take another crack at this to see if it is doable, but after 0.14
asfimport commentedon Aug 29, 2019
Antoine Pitrou / @pitrou:
Should this be revived?
asfimport commentedon Aug 29, 2019
Wes McKinney / @wesm:
Yes, we should try again
asfimport commentedon Jan 16, 2020
Antoine Pitrou / @pitrou:
My attempts crash on macOS. The explanation is as following: even if you duly export template classes such as
NumericBuilder<Int32Type>, they will be compiled independently in several places, so the resulting typeids will be different. This makesdynamic_castattempts fail when they do not use the same typeid for the template class.asfimport commentedon Jan 16, 2020
Wes McKinney / @wesm:
I see, that is indeed problematic, we've had other visibility issues with exported template symbols in the past. Perhaps this project is not worth the trouble, at least not for now.
asfimport commentedon Jan 17, 2020
Francois Saint-Jacques / @fsaintjacques:
@pitrou would that be solved by using explicit class instead of alias declarations?
asfimport commentedon Jan 20, 2020
Antoine Pitrou / @pitrou:
@fsaintjacques That's possible. I may give it a try at some point but this issue is a bit low priority compared to other concerns :-)
asfimport commentedon Aug 4, 2021
Antoine Pitrou / @pitrou:
I'm going to close for now. We will have to rely on developer discipline to put as much internal stuff as possible in the anonymous namespace.