Compilation errors on Debian 11 armhf
I'm trying to build ODBC Connector from source from the mysql/mysql-connector-odbc repo on Debian 11.7 on the ARM platfrom (armhf, 32-bit).
Database related packages I've installed to have mysql headers:
default-libmysqlclient-dev libmariadb-dev libmariadb-dev-compat libmariadb3 libmysql++-dev libmysql++3v5 mariadb-common
My cmake options:
cmake -G "Unix Makefiles" -DWITH_UNIXODBC=1 -DDISABLE_GUI=1 -DMYSQL_INCLUDE_DIR=/usr/include/mariadb
After running make I immediately get an error:
In file included from /home/admin123/repos/mysql-connector-odbc/util/stringutil.h:37,
from /home/admin123/repos/mysql-connector-odbc/util/stringutil.cc:36:
/home/admin123/repos/mysql-connector-odbc/util/../MYODBC_MYSQL.h:34:17: error: redeclaration of C++ built-in type 'bool' [-fpermissiv]
34 | #define my_bool bool
| ^~~~
/usr/include/mariadb/mysql.h:39:14: note: in expansion of macro 'my_bool'
39 | typedef char my_bool;
| ^~~~~~~
make[2]: *** [util/CMakeFiles/myodbc-util.dir/build.make:76: util/CMakeFiles/myodbc-util.dir/stringutil.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:277: util/CMakeFiles/myodbc-util.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
How to fix this?
Subject
Views
Written By
Posted
Compilation errors on Debian 11 armhf
320
August 30, 2023 12:04AM
177
August 30, 2023 02:43AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.