[debian-mysql] Bug#1031863: libqt5sql5-mysql: incompatible change in libmariadb3 breaks kontact, needs upstream fix in libqt5sql5-mysql
Jean Weisbuch
jean at phpnet.org
Mon Feb 27 12:24:35 GMT 2023
I also did encounter a similar problem with PHP 5.3 to 5.6 compiled with
"--mysql=/usr" (using the libmariadb and not mysqlnd), they started
throwing "Headers and client library minor version mismatch. Headers:%d
Library:%ld" warnings on mysql_connect() even after re-compiling PHP,
downgrading the libmariadb3 package fixed the issue.
The error happens on
https://sources.debian.org/src/php5/5.6.33%2Bdfsg-0%2Bdeb8u1/ext/mysql/php_mysql.c/#L741
because it does test "if ((MYSQL_VERSION_ID / 100) !=
(mysql_get_client_version() / 100)) {" which could not be true anymore
with the changes, with mysql_get_client_version() now reporting the
client library version (such as 30120) instead of the MariaDB version
(such as 100338).
To fix the issue once and for all (and avoid having it coming back), i
did bypass the define on php_mysql.c.
On 2/27/23 06:50, Otto Kekäläinen wrote:
>
> Why did you run into this issue now? The version above has been in
> Debian oldstable since almost a year, are you sure you diagnosed this
> for the correct package version?
>
> [...]
> This is the first bug report on this. It might affect other packages,
> but there is no evidence of that yet. Also I am a little bit confused
> on what is the actual error here.
>
> Could you provide me the exact commands I should run in e.g. a Docker
> container with Debian Buster to reproduce the bug? If I can reproduce
> it, I should be able to get to the bottom of it.
More information about the pkg-mysql-maint
mailing list