[CDRIVER-3452] zstd not listed as a dependency for static libmongoc Created: 05/Dec/19  Updated: 28/Oct/23  Resolved: 09/Dec/19

Status: Closed
Project: C Driver
Component/s: cmake, libmongoc
Affects Version/s: None
Fix Version/s: 1.16.0, 1.15.3

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-3371 Evergreen compile scripts should fail... Closed
is related to CDRIVER-2930 Add support for Zstandard compression Closed

 Description   

If libzstd is found when configuring with cmake, libmongoc links against it and enables zstandard compression. However, it does not list libzstd as an explicit library to link against for libmongoc static in either the package config file or cmake file. This results in consumers of static libmongoc getting linker errors for unresolved symbols to ZSTD functions.

Example: https://evergreen.mongodb.com/task/mongo_c_driver_releng_link_with_cmake_mac_25494023026066a58cde196fac84b2138eae8fac_19_11_23_03_39_21



 Comments   
Comment by Githook User [ 09/Dec/19 ]

Author:

{'name': 'Kevin Albertson', 'username': 'kevinAlbs', 'email': 'kevin.albertson@mongodb.com'}

Message: CDRIVER-3452 list zstd as dep for static build

libzstd was not listed as a library dependency for
static libmongoc build, causing potentialy linker
errors in consumers.

Also enable zstd tests on macOS, disable on Ubuntu
since installed zstd is too old.
Branch: r1.15
https://github.com/mongodb/mongo-c-driver/commit/928775c3d456497173754f6373c66bf07a236df0

Comment by Githook User [ 09/Dec/19 ]

Author:

{'name': 'Kevin Albertson', 'username': 'kevinAlbs', 'email': 'kevin.albertson@mongodb.com'}

Message: CDRIVER-3452 list zstd as dep for static build

libzstd was not listed as a library dependency for
static libmongoc build, causing potentialy linker
errors in consumers.

Also enable zstd tests on macOS, disable on Ubuntu
since installed zstd is too old.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/9b677d79a5f544abfd27c9602953d0caf257951b

Generated at Wed Feb 07 21:18:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.