Skip to content

Make libstdc++ loading more reliable #205

@gbaraldi

Description

@gbaraldi

We currently load the libstdc++ we ship from rpath, which is usually fine. It isn't fine when the system's libstdc++ is newer than ours, and a system lib needs the newer symbols, which leads to errors.
To fix that there needs to be some way that checks the systems libstdc++ and ,if it's newer than ours, load it instead.

Some ideas were put forward in the ci-dev call.

  • remove it from the rpath and dlopen it. Check for some GLIBCXX version symbol and if it's there then load it. Otherwise dlclose it and load ours as usual (Probably the best)
  • Do the same thing but on an external process if dlclose causes issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions