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

Don't bundle Snappy

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.8.2
    • Affects Version/s: 1.8.0
    • Component/s: Build, libmongoc
    • Labels:
      None

      We've attempted to bundle libsnappy into the C Driver, to provide Snappy compression on systems where libsnappy has not already been installed. We do this very oddly, however: instead of compiling Snappy's code into the C Driver, we actually compile libsnappy as a separate installable (or several installables) and install it into the system library path alongside libmongoc. This has caused many problems for people who want to link against libmongoc: they must now add -lsnappy to the link line to link to libmongoc, and they need a C++ linker.

      If we compiled Snappy's source into libmongoc, then libmongoc would depend on the C++ standard library, and it would still require a C++ linker.

      This is not worth the mess for the sake of better compression without depending on a system library. Users who want Snappy will need to install it before building the driver. We'll unbundle Snappy in 1.8.2.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: