Open MrMetatron opened 4 years ago
i have the exact same error. Have ou by any chance solved this? If yes, please help. @MrMetatron
In MySQL 8 my_bool was renamed to bool. Apply this patch to output-plugins/spo_database.h to get barnyard2 to build with the MySQL 8 client:
--- spo_database.h.orig
+++ spo_database.h
@@ -357,7 +357,7 @@
/* Herited from shared data globals */
unsigned long pThreadID; /* Used to store thread information and know if we "reconnected automaticaly" */
- my_bool mysql_reconnect; /* We will handle it via the api. */
+ bool mysql_reconnect; /* We will handle it via the api. */
#endif /* ENABLE_MYSQL */
#ifdef ENABLE_POSTGRESQL
make[3]: Leaving directory
/root/barnyard2-2-1.13/src/sfutil' Making all in output-plugins make[3]: Entering directory
/root/barnyard2-2-1.13/src/output-plugins' gcc -DHAVE_CONFIG_H -I. -I../.. -I.. -I ../sfutil -I/usr/include/mysql -DENABLE_MYSQL -g -O2 -fno-strict-aliasing -Wall -c spo_database.c In file included from spo_database.c:103:0: ../output-plugins/spo_database.h:360:5: error: unknown type name ‘my_bool’ my_bool mysql_reconnect; / We will handle it via the api. / ^ make[3]: [spo_database.o] Error 1 make[3]: Leaving directory `/root/barnyard2-2-1.13/src/output-plugins' make[2]: [all-recursive] Error 1 make[2]: Leaving directory/root/barnyard2-2-1.13/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/root/barnyard2-2-1.13'