Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-248

md5_* cause symbol clashes

    • Type: Icon: Bug Bug
    • Resolution: Incomplete
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build

      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).

            Assignee:
            Unassigned Unassigned
            Reporter:
            davidagraf David Graf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: