[CDRIVER-4743] Fix Windows tasks linking to libmongocrypt Created: 16/Oct/23 Updated: 31/Oct/23 Resolved: 31/Oct/23 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.25.0 |
| Type: | Task | Priority: | Unknown |
| 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: |
|
||||||||
| Description |
|
Windows tasks linking to libmongocrypt fail with this error:
Here is an example task: cse-sasl-cyrus-winssl-windows-2019-vs2017-x64-compile Task history shows failure started on this commit: https://github.com/mongodb/mongo-c-driver/commit/4592ca54f76019905b32995c8bcf032c54d34be7 Commit has not yet been released. Resolve before releasing 1.25.0 in case this is a regression. |
| Comments |
| Comment by Githook User [ 31/Oct/23 ] | |||||||||||||||||
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message:
Separate sources built by `bson_shared` and `bson_static`. This is intended to build `bson_static` sources with no `dllexport` and `bson_shared` with `dllexport`.
To suppress `dllexport`. When `dllexport` is defined, it appears to export the symbols in a consumer.
BSON_STATIC and MONGOC_STATIC are defined for static builds. | |||||||||||||||||
| Comment by Kevin Albertson [ 16/Oct/23 ] | |||||||||||||||||
|
Issue may be caused by libbson symbols being exported in libmongocrypt. libmongocrypt is installed referencing the local mongo-c-driver directory. Before 4592ca, running `dumpbin /EXPORTS mongocrypt.lib` does not show libbson symbols. After 4592ca, running `dumpbin /EXPORTS mongocrypt.lib` shows libbson symbols:
|