Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-101

dlerror() redifined

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • None
    • None
    • None

    Description

      From my_global.h :

      #if HAVE_DLERROR
      #define dlerror() ""
      #endif

      Why is that?

      For comparison, in MySQL my_global.h :

      #ifndef HAVE_DLERROR
      #ifdef _WIN32
      ...
      #define dlerror() ""
      #define dlopen_errno GetLastError()
      #else /* _WIN32 */
      #define dlerror() "No support for dynamic loading (static build?)"
      #define DLERROR_GENERATE(errmsg, error_number) errmsg= dlerror()
      #define dlopen_errno errno
      #endif /* _WIN32 */
      #else /* HAVE_DLERROR */
      #define DLERROR_GENERATE(errmsg, error_number) errmsg= dlerror()
      #define dlopen_errno errno
      #endif /* HAVE_DLERROR */

      MySQL my_global.h (rightfully) redefines dlerror() if HAVE_DLERROR is not defined, while MariaDB client library redefines dlerror() if HAVE_DLERROR is defined.

      Attachments

        Activity

          People

            georg Georg Richter
            rcannao René Cannaò
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.