Mariadb version 10.5.9-r3 installs a pkg-config file, which refers to -lmariadb in its Libs section, but there's no libmariadb* file installed by the package. # find /usr/lib64 -name '*mariadb*' /usr/lib64/mariadb /usr/lib64/mariadb/plugin/auth_pam_tool_dir/.keep_dev-db_mariadb-10.5 /usr/lib64/pkgconfig/mariadb.pc and # qlist mariadb | grep lib64 /usr/lib64/mariadb/plugin/auth_pam_tool_dir/.keep_dev-db_mariadb-10.5 /usr/lib64/mariadb/plugin/auth_pam_tool_dir/auth_pam_tool /usr/lib64/mariadb/plugin/auth_ed25519.so /usr/lib64/mariadb/plugin/auth_pam_v1.so /usr/lib64/mariadb/plugin/auth_pam.so /usr/lib64/mariadb/plugin/disks.so /usr/lib64/mariadb/plugin/file_key_management.so /usr/lib64/mariadb/plugin/func_test.so /usr/lib64/mariadb/plugin/handlersocket.so /usr/lib64/mariadb/plugin/locales.so /usr/lib64/mariadb/plugin/metadata_lock_info.so /usr/lib64/mariadb/plugin/query_cache_info.so /usr/lib64/mariadb/plugin/query_response_time.so /usr/lib64/mariadb/plugin/server_audit.so /usr/lib64/mariadb/plugin/simple_password_check.so /usr/lib64/mariadb/plugin/sql_errlog.so /usr/lib64/mariadb/plugin/test_sql_service.so /usr/lib64/mariadb/plugin/type_mysql_json.so /usr/lib64/mariadb/plugin/type_test.so /usr/lib64/pkgconfig/mariadb.pc /usr/lib64/libmysqlservices.a Reproducible: Always I encountered this, while testing my vtk-9.0.1 PR (https://github.com/gentoo/gentoo/pull/15966) with USE=mysql, which tries to link against libmariadb. Changing -lmariadb to -lmysqlservices in the pkg-config file, let the build of the PR succeed. See also bug #774831 with a in-tree package with the same error, I encounter, eventually due to using the pkg-config file.
Not unique to mariadb:10.5. But for me the problem looks different. The package shouldn't install mariadb.pc at all. sci-libs/vtk and net-im/coturn are probably doing something wrong. I assume they only want to link against mysql client lib to be able to connect to a mysql server. In this case please have a look at See https://archives.gentoo.org/gentoo-dev-announce/message/618f39bce863911d8955ee9f83636ca4
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a9c5ee98208896de445430bbe0bcc024c806332 commit 6a9c5ee98208896de445430bbe0bcc024c806332 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2021-03-22 17:41:03 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2021-03-22 17:46:48 +0000 dev-db/mariadb: don't install mariadb.pc file Closes: https://bugs.gentoo.org/774831 Closes: https://bugs.gentoo.org/777573 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> dev-db/mariadb/Manifest | 8 ++++---- .../{mariadb-10.2.37-r2.ebuild => mariadb-10.2.37-r3.ebuild} | 2 +- .../{mariadb-10.3.28-r2.ebuild => mariadb-10.3.28-r3.ebuild} | 2 +- .../{mariadb-10.4.18-r2.ebuild => mariadb-10.4.18-r3.ebuild} | 2 +- .../{mariadb-10.5.9-r3.ebuild => mariadb-10.5.9-r4.ebuild} | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-)
Thanks Thomas, you were right for at least sci-libs/vtk. Depending on dev-db/{mysql,mariadb}-connector-c is enough to build with mysql support.