[Opendnssec-user] OpenDNSSec 2.1.9 with MySQL 8

Ton Amsterdam ton.amsterdam.nl at gmail.com
Tue Jun 15 13:37:08 UTC 2021


Compiling on RHEL 8 (GCC 8.3.1) with MySQL 8 we get compilation errors
regarding my_bool missing.

Eg:

db/db_backend_mysql.c:75:5: error: unknown type name 'my_bool'

Using a small patch as a workaround for now.
-------------- next part --------------

--- ./enforcer/src/ods-migrate.c.bak	2021-05-03 21:51:45.000000000 +0000
+++ ./enforcer/src/ods-migrate.c	2021-06-15 09:28:19.858935334 +0000
@@ -35,6 +35,7 @@
 #endif
 #ifdef HAVE_MYSQL
 #include <mysql/mysql.h>
+typedef bool my_bool;
 #endif
 
 #include "log.h"

--- ./enforcer/src/ods-enforcer-db-setup.c.bak	2021-05-03 21:51:45.000000000 +0000
+++ ./enforcer/src/ods-enforcer-db-setup.c	2021-06-15 09:28:19.857935323 +0000
@@ -50,6 +50,7 @@
 static sqlite3* db = NULL;
 #elif defined(ENFORCER_DATABASE_MYSQL)
 #include <mysql/mysql.h>
+typedef bool my_bool;
 #include "db/db_schema_mysql.h"
 #include "db/db_data_mysql.h"
 static const char** create = db_schema_mysql_create;

--- ./enforcer/src/db/db_backend_mysql.c.bak	2021-05-03 21:51:45.000000000 +0000
+++ ./enforcer/src/db/db_backend_mysql.c	2021-06-15 09:28:19.857935323 +0000
@@ -33,6 +33,7 @@
 #include "log.h"
 
 #include <mysql/mysql.h>
+typedef bool my_bool;
 #include <stdlib.h>
 #include <stdio.h>
 #include <unistd.h>


More information about the Opendnssec-user mailing list