[CDRIVER-2216] Static linking against libmongoc fails if it was built with bundled snappy Created: 19/Jul/17 Updated: 27/Oct/23 Resolved: 11/Aug/17 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.8.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | Hannes Magnusson |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
On my Mac, the default ./configure line uses bundled Snappy and generates libmongoc-static-1.0-config.cmake with these libraries:
I think the syntax is wrong. Also, libsnappy.la is not installed by "make install". Building libmongoc with the Autotools and then linking a program to libmongoc using the CMake configuration file fails:
Same for building libmongoc with CMake. Linking a program to the libmongoc shared lib seems to work fine. |
| Comments |
| Comment by A. Jesse Jiryu Davis [ 11/Aug/17 ] |
|
Yes, I think it was the second commit that also fixed this. |
| Comment by Hannes Magnusson [ 11/Aug/17 ] |
|
tentatively closing as works as designed as we can no longer repro this (like related to |
| Comment by A. Jesse Jiryu Davis [ 11/Aug/17 ] |
|
Current code on master works for me, I can do "BUILD_SAMPLE_WITH_CMAKE=1 BUILD_LIBMONGOC_WITH_CMAKE= LINK_STATIC=1 sh .evergreen/link-sample-program.sh" without error. |
| Comment by Hannes Magnusson [ 19/Jul/17 ] |
|
libsnappy.la should not be in the .cmake file |