MySQL 8.0 Compatibility (defs.h:367:4: error: unknown type name ‘my_bool’)

Issue #1050 resolved
Theodis Butler created an issue

piler 1.3.6, build 998, Janos SUTO sj@acts.hu

Build Date: Tue Feb 25 01:42:40 UTC 2020
ldd version: ldd (GNU libc) 2.28
gcc version: gcc version 8.3.1 20190507 (Red Hat 8.3.1-4) (GCC)
OS: Linux archive 4.18.0-147.3.1.el8_1.x86_64 #1 SMP Fri Jan 3 23:55:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Configure command: ./configure --localstatedir=/var --with-database=mysql --enable-memcached
MySQL client library version: 8.0.17
Extractors: libzip

NEW INSTALL

Error is during make command

gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -m64 -D_GNU_SOURCE -DHAVE_TRE -DNEED_MYSQL -c dirs.c -o dirs.o
In file included from ./misc.h:13,
from ./piler.h:8,
from dirs.c:13:
./defs.h:367:4: error: unknown type name ‘my_bool’
my_bool is_null[MAX_SQL_VARS];
^~~
./defs.h:368:4: error: unknown type name ‘my_bool’
my_bool error[MAX_SQL_VARS];
^~~
make[1]: *** [Makefile:78: dirs.o] Error 1
make[1]: Leaving directory '/usr/src/piler-1.3.7/src'
make: *** [Makefile:41: all-recursive] Error 1

Suggested solution (or simply rename my_bool to bool)
https://github.com/esabol/gearmand/commit/5574960ece2e0c209ca807c2431ddea00a5898c4

Comments (2)

  1. Log in to comment