Bug 239936 - www/mod_auth_mysql_another: fix if linked with mariadb
Summary: www/mod_auth_mysql_another: fix if linked with mariadb
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-apache (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-18 09:55 UTC by Kurt Jaeger
Modified: 2022-10-17 08:59 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (apache)


Attachments
patch (1.89 KB, patch)
2019-08-18 09:55 UTC, Kurt Jaeger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Jaeger freebsd_committer freebsd_triage 2019-08-18 09:55:33 UTC
Created attachment 206654 [details]
patch

if the system uses mariadb, this error comes up:

httpd: Syntax error on line 88 of /usr/local/etc/apache24/httpd.conf:           
Cannot load /usr/local/libexec/apache24/mod_auth_mysql.so into server:          
/usr/local/libexec/apache24/mod_auth_mysql.so: Undefined symbol                 
"make_scrambled_password"

The patch fixes this, run-tested, but I have not find a clean way to
detect if the database in use is maria or mysql.

Any ideas ?

I tested with the #ifndef MYSQL_PORT, but this did not work.
Comment 1 Jochen Neumeister freebsd_committer freebsd_triage 2019-09-13 05:57:37 UTC
Does the problem still exist?

I have added the maintainer of MariaDB :-)
Comment 2 dan 2022-10-17 08:59:26 UTC
Anyone include this patch yet?
Also the port will try to make you uninstall mariadb depending on a mysql client.
pkg install mod_auth_mysql_another

I've had to install it from ports collection to get around that.