[ZBX-14311] zabbix does not compile with MySQL 8.0.x Created: 2018 May 01 Updated: 2018 May 02 Resolved: 2018 May 01 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | 3.4.8 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Tomasz Kłoczko | Assignee: | Unassigned |
Resolution: | Duplicate | Votes: | 0 |
Labels: | database, patch, trivial | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Linux, MySQL 8.0.x |
Attachments: | zabbix-mysql-8.x.patch | ||||||||
Issue Links: |
|
Description |
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. |
Comments |
Comment by Glebs Ivanovskis (Inactive) [ 2018 May 01 ] |
Thank you for the report! This issue is being worked on. Closing as Duplicate of |
Comment by Tomasz Kłoczko [ 2018 May 02 ] |
Just FTR only. I've tested attached patch on mysql 5.7.22 client devel resources and it does not causes any compilation issues. If this patch will be MariaDB compliant I think that it would be worth to merge it.
|