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

Function mysql_get_option() is not available in libmariadbd.so

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 10.2.6, 10.2.7, 10.2.8, 10.2.9, 10.2.10, 10.2.11, 10.2.12, 10.3.1, 10.3.2, 10.3.3, 10.3.4, 10.2.13, 10.2.15, 10.3.5, 10.3.6, 10.3.7
    • Fix Version/s: N/A
    • Component/s: Embedded Server
    • Labels:
      None

      Description

      In MariaDB 10.2.2 was added support for calling

      mysql_get_option(mysql, MYSQL_OPT_MAX_ALLOWED_PACKET, &packet_size);
      

      to retrieve current maximum packet size.

      But since MariaDB 10.2.6 version, libmariadbd.so has broken support for mysql_get_option function. At runtime it just throw error:

      undefined symbol: mysql_get_option
      

      Same problem is also in MariaDB 10.3 series, since version 10.3.1.

      Version 10.2.2 (where MYSQL_OPT_MAX_ALLOWED_PACKET was introduced), 10.2.3, 10.2.4, 10.2.5 and 10.3.0 are working fine. Therefore this regression was introduced in MariaDB versions 10.3.1 and 10.2.5.

      Please note that function mysql_get_option() is properly defined in header files, just symbol is missing in libmariadbd.so library (or it is not marked as exported).

      This problem was detected by Travis tests for perl DBI driver DBD::MariaDB:

      https://travis-ci.org/gooddata/DBD-MariaDB/builds/391252563

      As a workaround we added detection if that function is present at configure time (commit)

        Attachments

          Activity

            People

            Assignee:
            serg Sergei Golubchik
            Reporter:
            pali Pali
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.