[SERVER-9221] C++ driver's shared library build is broken Created: 03/Apr/13  Updated: 10/Dec/14  Resolved: 17/May/13

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: 2.4.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Dmitry Konishchev Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: build, driver
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-6514 scons --sharedclient mongoclient buil... Closed
Backwards Compatibility: Fully Compatible
Operating System: Linux
Participants:

 Description   

Scons fails to build the C++ driver's shared library with `scons install --sharedclient --full` with lots of link errors.



 Comments   
Comment by Dmitry Konishchev [ 15/Apr/13 ]

I've merged the Christoph's pull request (https://github.com/mongodb/mongo/pull/413) into mine (https://github.com/mongodb/mongo/pull/406), so https://github.com/mongodb/mongo/pull/406 now contains the all fixes.

Comment by Christoph Koke [ 14/Apr/13 ]

I can to confirm this. When trying to get a shared library, I got link errors mostly reagarding mongo::LocksType and gsasl.

I also created a pull request (https://github.com/mongodb/mongo/pull/413). I post mine too because the one of Dmitry seems not to fix the gsasl linking errors I had. Further I could solve the mongo linkage errors by removing some the troublesome cpp files from the client lib. Since they are obviously unneeded I think this is better than adding more cpp files.

I did build mongo using.

scons '--cc=x86_64-pc-linux-gnu-gcc' '--cxx=x86_64-pc-linux-gnu-g++' '--use-system-tcmalloc' '--use-system-pcre' '--use-system-snappy' '--use-system-boost' '--use-sasl-client' '--sharedclient' '--use-system-v8' '--ssl' 'all'

Comment by Dmitry Konishchev [ 03/Apr/13 ]

I've fixed this bug with the following PR - https://github.com/mongodb/mongo/pull/406

Generated at Thu Feb 08 03:19:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.