Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

./configure --with-mysql --with-mysql-libraries=/usr/lib64/mysql/ && make && make install;mysql8.0 #252

Open
MrMetatron opened this issue Nov 16, 2019 · 2 comments

Comments

@MrMetatron
Copy link

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'

@ParagVadher
Copy link

i have the exact same error. Have ou by any chance solved this? If yes, please help. @MrMetatron

@clearscreen
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants