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

error LNK2001: unresolved external symbol log_10_int on Windows

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.4.7
    • 10.4.8
    • Server
    • None
    • Windows

    Description

      When building bundled MariaDB 10.4.7 with latest storage engine Mroonga http://mroonga.org/ , it causes "error LNK2001: unresolved external symbol log_10_int". [1]
      It seems that it requires MYSQL_PLUGIN_IMPORT on Windows.

      Here is the patch to fix this issue.

      diff -ru mariadb-10.4.7.orig/include/my_time.h mariadb-10.4.7/include/my_time.h
      — mariadb-10.4.7.orig/include/my_time.h 2019-07-30 20:32:14.000000000 +0900
      +++ mariadb-10.4.7/include/my_time.h 2019-08-26 08:28:59.857378783 +0900
      @@ -27,7 +27,7 @@

      C_MODE_START

      -extern ulonglong log_10_int[20];
      +extern MYSQL_PLUGIN_IMPORT ulonglong log_10_int[20];
      extern uchar days_in_month[];

      #define MY_TIME_T_MAX LONG_MAX

      [1] build logs on AppVeyor CI https://ci.appveyor.com/project/groonga/mroonga/builds/26925777/job/aneis43usly9jd6c#L5179

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            kenhys Kentaro Hayashi
            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.