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

mysql_upgrade.c:1105:21: error: ‘mysql_fix_privilege_tables’ undeclared

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Cannot Reproduce
    • 10.5.6
    • 10.5.7
    • Compiling
    • None
    • Fedora 31

    Description

      I can not compile current 10.5 from GitHub on Fedora 31, as I hit this error:

      ...
      [ 95%] Building C object client/CMakeFiles/mariadb-upgrade.dir/mysql_upgrade.c.o
      /mnt/home/openxs/git/server/client/mysql_upgrade.c: In function ‘run_sql_fix_privilege_tables’:
      /mnt/home/openxs/git/server/client/mysql_upgrade.c:1105:21: error: ‘mysql_fix_privilege_tables’ undeclared (first use in this function); did you mean ‘run_sql_fix_privilege_tables’?
       1105 |   for ( query_ptr= &mysql_fix_privilege_tables[0];
            |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
            |                     run_sql_fix_privilege_tables
      /mnt/home/openxs/git/server/client/mysql_upgrade.c:1105:21: note: each undeclared identifier is reported only once for each function it appears in
      make[2]: *** [client/CMakeFiles/mariadb-upgrade.dir/build.make:83: client/CMakeFiles/mariadb-upgrade.dir/mysql_upgrade.c.o] Error 1
      make[1]: *** [CMakeFiles/Makefile2:9959: client/CMakeFiles/mariadb-upgrade.dir/all] Error 2
      make: *** [Makefile:183: all] Error 2
      

      all the time. Some details about the environment:

      [openxs@fc31 build]$ gcc --version
      gcc (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2)
      Copyright (C) 2019 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
       
      [openxs@fc31 build]$ uname -a
      Linux fc31 5.8.10-100.fc31.x86_64 #1 SMP Thu Sep 17 17:32:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
      [openxs@fc31 build]$ cd ..
      [openxs@fc31 server]$ git branch
        10.1
        10.2
        10.3
        10.4
      * 10.5
        5.5
        bb-10.2-compatibility
      [openxs@fc31 server]$ git log -1
      commit 1adb5378060fe3b00070c537c042acef641d4f6f (HEAD -> 10.5, origin/10.5)
      Author: Marko Mäkelä <marko.makela@mariadb.com>
      Date:   Thu Sep 24 16:16:16 2020 +0300
       
          MDEV-23456: After-merge fix
          
          In merge commit 34212233634b53a4fea7f662c43c19028aec2c2a
          buf_page_create() passed the wrong parameter to
          one of the buf_LRU_block_free_non_file_page() calls.
      [openxs@fc31 server]$
      

      cmake command line used:

      [openxs@fc31 build]$ cmake .. -DCMAKE_INSTALL_PREFIX=/home/openxs/dbs/maria10.5 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DWITH_EMBEDDED_SERVER=OFF -DPLUGIN_TOKUDB=NO -DWITH_SSL=system
      

      Attachments

        Activity

          People

            valerii Valerii Kravchuk
            valerii Valerii Kravchuk
            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.