Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-9106

Audit plugin compiled with MariaDB can't install on MySQL 5.7

Details

    • 10.1.9-3, 10.1.10, 10.2.0-2, 10.2.0-3

    Description

      Initial report was:

      The mysys library changed in MySQL 5.7, and as a result audit-plugin cannot find some symbols.

      mysql> install plugin server_audit soname 'server_audit.so';
      ERROR 1126 (HY000): Can't open shared library '/home/hf/mysql57/lib/plugin/server_audit.so' (errno: 2 /home/hf/mysql57/lib/plugin/server_audit.so: undefined symbol: _my_thread_var)

      that was fixed, but the bigger problem is that API was radically changed in MySQL 5.7 so the plugin built on MariaDB cannot load there.
      We need to decide something on it.

      Attachments

        Issue Links

          Activity

            The issue with the _my_thread_var is fixed, but doesn't solve the problem. The
            API was radically changed in mysql-5.7 so the plugin compiled with MariaDB just
            can't be loaded there. And the plugin API didn't actually expect the older version of API can be loaded on the newer so it's not a but per se.
            Though i guess we need to decide something about it.

            holyfoot Alexey Botchkov added a comment - The issue with the _my_thread_var is fixed, but doesn't solve the problem. The API was radically changed in mysql-5.7 so the plugin compiled with MariaDB just can't be loaded there. And the plugin API didn't actually expect the older version of API can be loaded on the newer so it's not a but per se. Though i guess we need to decide something about it.
            udara50 udara added a comment -

            HI

            I also encounter with this error ,once I install maria db plugin to 5.7.9-log community server. It didn't successful even I tired to install earlier version of audit plugin(server_audit-1.1.9).

            Thanks

            udara50 udara added a comment - HI I also encounter with this error ,once I install maria db plugin to 5.7.9-log community server. It didn't successful even I tired to install earlier version of audit plugin(server_audit-1.1.9). Thanks
            holyfoot Alexey Botchkov added a comment - Resulting patch http://lists.askmonty.org/pipermail/commits/2016-January/008822.html .
            greenman Ian Gilfillan added a comment -

            Please clarify which 10.0 and 10.1 releases the fix applies to.

            greenman Ian Gilfillan added a comment - Please clarify which 10.0 and 10.1 releases the fix applies to.

            People

              holyfoot Alexey Botchkov
              holyfoot Alexey Botchkov
              Votes:
              1 Vote for this issue
              Watchers:
              6 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.