[CXX-210] Linking issue with libssh: multiple definition of `md5_init' Created: 24/Apr/14 Updated: 03/Jul/14 Resolved: 05/May/14 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Implementation |
| Affects Version/s: | None |
| Fix Version/s: | legacy-0.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | David Kedves | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | legacy-cxx | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 14.04 LTS |
||
| Issue Links: |
|
||||||||
| Description |
|
I have a project which links to the libmongoclient and also to the libssh library. I either need to modify the libssh or the libmongoclient sources to get my project working, or it is going to crash like: MD5 ("") = adb82c4fe4a8d1b59c67f4b1ad76421f
This happens if i link dynamically to libssh, currently it is not possible to link both libraries statically because of the following error: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(md5.o): In function `md5_init': Package versions: The problem seems to be still exists in the current git version, I am going to create a pull request with a small possibly fix for the issue... |
| Comments |
| Comment by Andrew Morrow (Inactive) [ 01/May/14 ] |
|
https://github.com/mongodb/mongo-cxx-driver/pull/69 And see also: https://github.com/mongodb/mongo-cxx-driver/pull/64 |
| Comment by David Kedves [ 24/Apr/14 ] |
|
A possibly fix could be this: (or really rename those methods to be 'mongo' specific... it is always bad idea to have too generic names in libraries, even if it is a static one...) Br, |