Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1466

clang exports private symbols

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: 1.4.0
    • Component/s: None
    • None

      clang doesn't support --version-script so falls back on linking with –-export-symbols-regex "^mongoc_".

      Unfortunately, we haven't been entirely religious about our function naming conventions, and have plenty of private functions that start with mongoc_ rather then _mongoc.

      This leads to functions like mongoc_set_new, mongoc_stream_tls_openssl_bio_meth_new, mongoc_topology_scanner_add and plenty more are part of our "public abi" when using clang.

      We need to fix this, likely by removing the use of --version-script so we can have just one implementation of this, rather then multiple

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: