mapbox / mapbox/mason

Several static libraries are leaking symbols

Open
#215 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug ng
Dominant language
Python
Stars
258
Forks
68
PR merge metrics
No merged PRs in 30d

Description

Several of our static libraries are leaking symbols because we don't set the default visibility to hidden when building them. This is a problem because it can clash with system symbols when building Mapbox GL Native as a shared library. To some that I identified:
- OpenSSL
- libpng
- sqlite
- libuv
- boost
- geojson

Alternatively we could maintain an export symbol list on Mapbox GL Native.

/cc @kkaefer @springmeyer

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how Mason builds the listed static libraries—OpenSSL, libpng, sqlite, libuv, boost, and geojson—and where default symbol visibility is configured. Confirm which symbols leak when Mapbox GL Native is built as a shared library, then verify that the libraries no longer clash with system symbols or that an export symbol list is consistently maintained.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, sqlite
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.