MySQL Forums
Forum List  »  Source, Builds, Binaries

Compilation errors on Debian 11 armhf
Posted by: Sergey Korshak
Date: August 30, 2023 12:04AM

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?

Options: ReplyQuote


Subject
Views
Written By
Posted
Compilation errors on Debian 11 armhf
90
August 30, 2023 12:04AM


Sorry, only registered users may post in this forum.

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.