Closed ilpianista closed 7 years ago
This is indeed the current problem on the Travis test, since it runs on Ubuntu 14.
I was wondering to solve this problem by switching Travis to use our reference OS (Devuan), but then it would be even better perhaps to solve this problem for all platforms. Debian provides aliased packages for libmysql-*
@jaromil what do you think about this proposal?
I added the WITH_MYSQL
switch; by default MariaDB is used.
I'm not agree to Travis-ing with compile "path" different from the official released .
Otherwise something like :
(test -x /usr/bin/mariadb_config && mariadb_config --include ) || (mysql_config --include)
?
@nicolarossi the problem aren't the includes, but the linker flags: we cannot link to both -lmariadb
and -lmysqld
. We could script something in the Makefiles, but what about kore build configuration used by webui? We cannot script there, and that's because I added a new flavor to the build configuration.
On both Arch Linux and Ubuntu, MariaDB headers are installed under
/usr/include/mysql
and the library is still namedlibmysqld.so
.While we could include both headers locations (
/usr/include/mysql
and/usr/include/mariadb
) we cannot link to both libraries-lmariadb -lmysqld
because only the latter is present on those systems and the build will fail.~This patch fixes the build on those systems, but (maybe) will broke your workflow I guess.~ ~I don't know how to handle both cases, however may I ask which distro are you using that installs MariaDB library as
libmariadb.so
?~