[MDEV-23817] mysql_upgrade.c:1105:21: error: ‘mysql_fix_privilege_tables’ undeclared Created: 2020-09-25  Updated: 2021-01-02  Resolved: 2021-01-02

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.5.6
Fix Version/s: 10.5.7

Type: Bug Priority: Major
Reporter: Valerii Kravchuk Assignee: Valerii Kravchuk
Resolution: Cannot Reproduce Votes: 0
Labels: None
Environment:

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



 Comments   
Comment by Valerii Kravchuk [ 2020-10-20 ]

Well, recently 10.5 got compiled without issues few times. It had always been out of source build for 10.5 in the empty build directory and with no CMakeCache.* remaining in source. Maybe some ongoing updates helped.

Let this report hang around for some more time before I set it to "Can't repeat".

Comment by Valerii Kravchuk [ 2021-01-02 ]

The problem does not happen to me for many builds (with same options) already, so let's assume for now that it was a corrupted tree, or some temporary weird state that I can not reproduce myself any more.

Generated at Thu Feb 08 09:25:16 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.