Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-14311

zabbix does not compile with MySQL 8.0.x

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 3.4.8
    • Proxy (P), Server (S)
    • Linux, MySQL 8.0.x

       

      Build zabbix on top of MySQL 8.0.x fails.

      make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/zabbix-3.4.8/build_mysql/src/libs/zbxdb'
      gcc -DHAVE_CONFIG_H -I. -I../../../../src/libs/zbxdb -I../../../include -I../../../../include -I/usr/include/mysql -m64 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -mcet -fcf-protection -c -o libzbxdb_a-db.o `test -f 'db.c' || echo '../../../../src/libs/zbxdb/'`db.c
      ../../../../src/libs/zbxdb/db.c: In function 'zbx_db_connect':
      ../../../../src/libs/zbxdb/db.c:285:2: error: unknown type name 'my_bool'; did you mean 'bool'?
       my_bool mysql_reconnect = 1;
       ^~~~~~~
       bool
      make[3]: *** [Makefile:484: libzbxdb_a-db.o] Error 1
      make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/zabbix-3.4.8/build_mysql/src/libs/zbxdb'
      make[2]: *** [Makefile:525: all-recursive] Error 1
      make[1]: *** [Makefile:497: all-recursive] Error 1
      make: *** [Makefile:506: all-recursive] Error 1 
      

      Patch is in attachment and I think that it may be used wit MySQL 5.x as well.

            Unassigned Unassigned
            kloczek Tomasz Kłoczko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: