FS#61774 - [apr-util] Can't load driver file apr_dbd_mysql.so
Attached to Project:
Arch Linux
Opened by Robin (robin67) - Friday, 15 February 2019, 13:18 GMT
Last edited by Toolybird (Toolybird) - Saturday, 11 February 2023, 22:05 GMT
Opened by Robin (robin67) - Friday, 15 February 2019, 13:18 GMT
Last edited by Toolybird (Toolybird) - Saturday, 11 February 2023, 22:05 GMT
|
Details
Description:
Recently my mariadb was upgraded to 10.3.12-2 (and later on til 10.3.12-5) At the same time apr-util was upgraded to to 1.6.1-5 Ever since that moment I can not use the "DBDriver mysql" with apache 2.4 anymore (using mod_dbd and mod_authn_dbd) Additional info: mariadb 10.3.12-5 apr-util 1.6.1-5 apr 1.6.5-1 apache 2.4.38-1 * config and/or log files etc. Steps to reproduce: My apache config holds this configuration in it (which did not change for a long time) DBDriver mysql DBDParams "socket=/var/run/mysqld/mysqld.sock dbname=some_databasename user=some_username pass=some_password" <Directory "/srv/http/somefolder"> AuthName "Private" AuthType Basic AuthBasicProvider dbd AuthDBDUserPWQuery "SELECT password AS password FROM sometable WHERE username = %s" Require valid-user </Directory> Since the recent upgrades I now get the following error from apache when starting httpd: Can't load driver file apr_dbd_mysql.so This file does still exist and is located in /usr/lib/apr-util-1/apr_dbd_mysql.so I even tried copying and linking it to /usr/lib/httpd/modules/apr_dbd_mysql.so but still get the same error. When I remove this part of the config apache will start without problems (but of course does not deliver the required functionality) |
This task depends upon
Closed by Toolybird (Toolybird)
Saturday, 11 February 2023, 22:05 GMT
Reason for closing: Fixed
Additional comments about closing: apr-util 1.6.3-1
Saturday, 11 February 2023, 22:05 GMT
Reason for closing: Fixed
Additional comments about closing: apr-util 1.6.3-1
static void dbd_mysql_init(apr_pool_t *pool)
{
//my_init();
mysql_library_init(0, NULL, NULL); // <-- change this
mysql_thread_init();
/* FIXME: this is a guess; find out what it really does */
apr_pool_cleanup_register(pool, NULL, thread_end, apr_pool_cleanup_null);
}
svn diff -r r1872060:r1872061 --patch-compatible https://svn.apache.org/repos/asf/apr/apr-util/branches/1.7.x/
After removing the failing hunk for CHANGES produces the attached patch (applies with -p0)