[MDEV-21067] Compilation of linked packages fails because something is wrong Created: 2019-11-16  Updated: 2023-04-27

Status: Open
Project: MariaDB Server
Component/s: libmariadb
Affects Version/s: 10.2.29, 10.3.20, 10.4.10
Fix Version/s: 10.4

Type: Bug Priority: Major
Reporter: Philip orleans Assignee: Georg Richter
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Linux



 Description   

All versions are affected I found this that solves the issue, but maybe we should fix it in the software.
"I think this is a bug in that custom mariadb repo. Their packag MariaDB-devel-10.2.6-1.fc25.x86_64 only contains a library named:

/usr/lib64/libmariadbclient.a
However their pkg-config yiels another name:

> pkg-config --libs mariadb
-lmariadb
You best raise this at the maintainers of that repo. A workaround is to symlink libmariadbclient.a to libmariadb.a:

sudo ln -s /usr/lib64/libmariadbclient.a /usr/lib64/libmariadb.a
That fixes the installation."



 Comments   
Comment by Geoff Montee (Inactive) [ 2019-11-17 ]

I can confirm that the name of the static library is incorrect in RHEL 7 RPMs as well:

$ rpm -ql MariaDB-devel | grep "libmariadb"
/usr/lib64/libmariadbclient.a
/usr/lib64/pkgconfig/libmariadb.pc

However, the dynamic library has the proper name:

$ rpm -ql MariaDB-shared | grep "libmariadb"
/usr/lib64/libmariadb.so
/usr/lib64/libmariadb.so.3

This is with the following packages installed:

$ rpm -qa | grep -i maria
MariaDB-client-10.2.29-1.el7.centos.x86_64
MariaDB-shared-10.2.29-1.el7.centos.x86_64
MariaDB-common-debuginfo-10.2.29-1.el7.centos.x86_64
MariaDB-common-10.2.29-1.el7.centos.x86_64
MariaDB-backup-10.2.29-1.el7.centos.x86_64
MariaDB-server-debuginfo-10.2.29-1.el7.centos.x86_64
MariaDB-client-debuginfo-10.2.29-1.el7.centos.x86_64
MariaDB-backup-debuginfo-10.2.29-1.el7.centos.x86_64
MariaDB-devel-10.2.29-1.el7.centos.x86_64
MariaDB-compat-10.2.23-1.el7.centos.x86_64
MariaDB-aws-key-management-10.2.20-1.el7.centos.x86_64
MariaDB-test-10.2.23-1.el7.centos.x86_64
MariaDB-server-10.2.29-1.el7.centos.x86_64
MariaDB-shared-debuginfo-10.2.29-1.el7.centos.x86_64
MariaDB-devel-debuginfo-10.2.29-1.el7.centos.x86_64

Generated at Thu Feb 08 09:04:20 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.