Hi,
My work environment is as follows.
- Debian 9 (in VirtualBox)
- prerequisites installed (mariadb, omniorb, sphinx…)
- Tango 9.3.4 (from GitLab, and jar from Github)
- database configuration (user, privileges…) done
From this environment I try to build tango-controls with the following instructions.
~/tango-src$ ant build package
[...]
~/tango-src$ cd build/distr
~/tango-src/build/distr$ ./configure --enable-mariadb --enable-dbserver --enable-dbcreate --enable-java --with-mysql-admin=${TANGO_USER} --with-mysql-admin-passwd=${TANGO_PASS}
[...]
~/tango-src/build/distr$ make
[...]
make[3] : on entre dans le répertoire « /home/tangouser/tango-src/build/distr/cppserver/database »
CXX ClassFactory.o
In file included from ./DataBaseClass.h:51:0,
from ClassFactory.cpp:109:
./DataBase.h:56:14: error: conflicting declaration ‘typedef bool my_bool’
typedef bool my_bool;
^~~~~~~
In file included from ./DataBase.h:51:0,
from ./DataBaseClass.h:51,
from ClassFactory.cpp:109:
/usr/include/mysql/mysql.h:53:14: note: previous declaration as ‘typedef char my_bool’
typedef char my_bool;
^~~~~~~
ClassFactory.cpp:2:20: warning: ‘RcsId’ defined but not used [-Wunused-variable]
static const char *RcsId = "$Header$";
^~~~~
Makefile:619 : la recette pour la cible « ClassFactory.o » a échouée
[...]
In the file build/distr/cppserver/database/DataBase.h the variable LIBMARIADB is not defined anywhere. This is what causes the build error. I searched all the code, also configuration generators (ant, automake), I did not find any trace of definition of this variable.
Any help to unblock my situation is welcome.