[CXX-248] md5_* cause symbol clashes Created: 12/Oct/11  Updated: 13/Nov/14  Resolved: 02/Jul/12

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: David Graf Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: driver, legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CXX-210 Linking issue with libssh: multiple d... Closed

 Description   

In the project I am working for, we are using the C++ mongodb driver in the main library and c-client in a "module library" that is loaded dynamically at runtime via dlopen.

Unfortunately, c-client and the C++ mongodb driver contain both the function md5_init. This fact caused a very strange behavior in our system. The md5_init function call in c-client was ignored and caused memory troubles.

Therefore, I propose to rename the md5_* functions that are declared in https://github.com/mongodb/mongo/blob/master/util/md5.h. As it seems to be already done in the C driver (see https://github.com/mongodb/mongo-c-driver/blob/master/src/md5.h).



 Comments   
Comment by Andrew Morrow (Inactive) [ 06/Jun/14 ]

This issue was resolved in the legacy-0.9 release, please see linked ticket CXX-210 for details.

Generated at Wed Feb 07 21:58:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.