Skip to content

[C++] Build shared libraries consistently with -fvisibility=hidden #20454

Closed

Description

@asfimport

See #2437

Reporter: Wes McKinney / @wesm

Related issues:

Note: This issue was originally created as ARROW-3873. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Feb 8, 2019

    @asfimport
    Author

    Wes McKinney / @wesm:
    This is blocked on removing "extern template class" usages from libparquet

  2. asfimport commented on Apr 24, 2019

    @asfimport
    Author

    Wes McKinney / @wesm:
    I just closed #2437 and will plan to return to this once the Parquet symbol visibility issue is dealt with

  3. asfimport commented on May 31, 2019

    @asfimport
    Author

    Wes McKinney / @wesm:
    I might take another crack at this to see if it is doable, but after 0.14

  4. asfimport commented on Aug 29, 2019

    @asfimport
    Author

    Antoine Pitrou / @pitrou:
    Should this be revived?

  5. asfimport commented on Aug 29, 2019

    @asfimport
    Author

    Wes McKinney / @wesm:
    Yes, we should try again

  6. asfimport commented on Jan 16, 2020

    @asfimport
    Author

    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.

  7. asfimport commented on Jan 16, 2020

    @asfimport
    Author

    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.

  8. asfimport commented on Jan 17, 2020

    @asfimport
    Author

    Francois Saint-Jacques / @fsaintjacques:
    @pitrou would that be solved by using explicit class instead of alias declarations?

    using Int32Builder = NumericBuilder<Int32Type>;
    //
    class Int32Builder : public NumericBuilder<Int32Type> {};
  9. asfimport commented on Jan 20, 2020

    @asfimport
    Author

    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 :-)

  10. asfimport commented on Aug 4, 2021

    @asfimport
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions