[SERVER-2601] Shared client build Created: 21/Feb/11  Updated: 12/Jul/16  Resolved: 14/Feb/12

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 1.6.5
Fix Version/s: 2.1.1

Type: Bug Priority: Major - P3
Reporter: Jacques Germishuys Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Solaris GCC / Linux GCC


Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

On Linux and Intel GCC, when passing --sharedclient to Scons, the libmongoclient.so builds succesfully.

During the linking step GCC is not passed -shared resulting in relocation errors when a program linked to libmongoclient.so is executed.



 Comments   
Comment by Andy Schwerin [ 14/Feb/12 ]

This fixes the shared library build of the client library under GCC, a thing that we apparently have not been testing in the continuous integration. Compiling examples against the shared client as part of CI would catch this and related errors.

Comment by auto [ 14/Feb/12 ]

Author:

{u'login': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}

Message: SERVER-2601: Get shared client build working on Linux.

"util/version.cpp" should not be part of the client build. Linking of the shared
library form of the client failed, because this file was being included.
Branch: master
https://github.com/mongodb/mongo/commit/dd86ee3c988be8c998309f9d2a409d4ff2cecdb0

Comment by Jacques Germishuys [ 21/Feb/11 ]

Sorry for the typo. On Linux and Solaris GCC 4.5.1

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