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

          rcannao René Cannaò added a comment - - edited

          The consequence of this is that if I include my_global.h , dlerror() doesn't work anymore and I can't verify if dynamic linking loader is working correctly.

          The workaround I am using is to add the follow after I include my_global.h :

          // MariaDB client library redefines dlerror(), see https://mariadb.atlassian.net/browse/CONC-101
          #ifdef dlerror
          #undef dlerror
          #endif

          rcannao René Cannaò added a comment - - edited The consequence of this is that if I include my_global.h , dlerror() doesn't work anymore and I can't verify if dynamic linking loader is working correctly. The workaround I am using is to add the follow after I include my_global.h : // MariaDB client library redefines dlerror(), see https://mariadb.atlassian.net/browse/CONC-101 #ifdef dlerror #undef dlerror #endif
          georg Georg Richter added a comment -

          Fixed in rev. 148.

          georg Georg Richter added a comment - Fixed in rev. 148.

          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.