[CDRIVER-4776] Include -pthread in pkg-config Libs Created: 08/Nov/23 Updated: 29/Nov/23 Resolved: 29/Nov/23 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 1.25.0 |
| Fix Version/s: | 1.25.2 |
| Type: | Bug | 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 | ||
| Description |
|
When upgrading the C driver dependency in the C++ driver to 1.25.0, the following error occurred building an example project (example task):
Here are the contents of libbson-1.0-static.pc on C driver 1.25.0 built on Ubuntu 18.04:
I expect -pthread may need to be included in Libs. A similar change may be needed for libmongoc-1.0-static.pc. The failing task compiles and links in separate commands:
A simple workaround is to set -pthread flag in the link command. This workaround was applied in https://github.com/mongodb/mongo-cxx-driver/pull/1056. |
| Comments |
| Comment by Githook User [ 29/Nov/23 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message:
Co-authored-by: vector-of-bool <vectorofbool@gmail.com> |
| Comment by Githook User [ 29/Nov/23 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message:
Co-authored-by: vector-of-bool <vectorofbool@gmail.com> |
| Comment by Githook User [ 08/Nov/23 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message: Bump required C driver to 1.25.0 (#1056)
"Ubuntu 18.04 with minimum libmongoc" was removed in PR #1049. Testing with minimum libmongoc is now the default.
This step is listed in later in `Docker Image Build and Publish`. Building the Docker images requires downloading the C++ release tarball. Bump after tagging.
The Docker versions are bumped after tagging the release. This check may not be expected to succeed during a release.
It is introduced in 3.9.0 as part of
This is a workaround until |