[CDRIVER-2211] cmake requires shared and static versions of libbson Created: 14/Jul/17 Updated: 28/Oct/23 Resolved: 14/Jan/18 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 1.7.0 |
| Fix Version/s: | 1.7.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Hannes Magnusson | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
When compiling mongoc with cmake then both the normal shared library and the static cmake config is required to be available. This is despite the fact the static config is only installed when explicitly configured to do so. If libbson is built with CMake then it always builds and installs both static and shared libs. So I think this will be a problem only in the strange event that libbson is built with Autotools (which doesn't build and install the static libbson by default) and then libmongoc is built with CMake. Plan:
|
| Comments |
| Comment by Ramon Fernandez Marina [ 12/Sep/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'username': u'ajdavis', 'name': u'A. Jesse Jiryu Davis', 'email': u'jesse@mongodb.com'}Message: | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 12/Sep/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'username': u'ajdavis', 'name': u'A. Jesse Jiryu Davis', 'email': u'jesse@mongodb.com'}Message: | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 12/Sep/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'username': u'ajdavis', 'name': u'A. Jesse Jiryu Davis', 'email': u'jesse@mongodb.com'}Message: Error code reporting in .bat files is broken in Windows. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 12/Sep/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'username': u'ajdavis', 'name': u'A. Jesse Jiryu Davis', 'email': u'jesse@mongodb.com'}Message: Error code reporting in .bat files is broken in Windows. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 12/Sep/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'username': u'ajdavis', 'name': u'A. Jesse Jiryu Davis', 'email': u'jesse@mongodb.com'}Message: For backwards compatibility, defaults to ON. You can turn it OFF to skip | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 12/Sep/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'username': u'ajdavis', 'name': u'A. Jesse Jiryu Davis', 'email': u'jesse@mongodb.com'}Message: In the future we may need to check whether static dependencies are | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 12/Sep/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'username': u'ajdavis', 'name': u'A. Jesse Jiryu Davis', 'email': u'jesse@mongodb.com'}Message: Error code reporting in .bat files is broken in Windows. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 12/Sep/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'username': u'ajdavis', 'name': u'A. Jesse Jiryu Davis', 'email': u'jesse@mongodb.com'}Message: For backwards compatibility, defaults to ON. You can turn it OFF to skip | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 12/Sep/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'username': u'ajdavis', 'name': u'A. Jesse Jiryu Davis', 'email': u'jesse@mongodb.com'}Message: Error code reporting in .bat files is broken in Windows. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Hannes Magnusson [ 07/Sep/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
This isn't working for me. In libbson I ran
then in mongoc I ran:
| |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 25/Jul/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: Error code reporting in .bat files is broken in Windows. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 25/Jul/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com'}Message: In the future we may need to check whether static dependencies are | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 25/Jul/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by A. Jesse Jiryu Davis [ 24/Jul/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
On r1.7: https://github.com/mongodb/mongo-c-driver/commit/8a237901996943f0424af3db1b9b505998ef0a47 | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 24/Jul/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by A. Jesse Jiryu Davis [ 17/Jul/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
libbson master: https://github.com/mongodb/libbson/commit/04e5b27f227aaecf7ddf12a66609a8254611f3f5 | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Hannes Magnusson [ 15/Jul/17 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Default install of libbson must be compatible with default config of mongoc. I pretty much never use cmake to install libbson, but every once in a while I build mongoc with cmake, in which case I should not need to add extra configure arguments. |