Bug 239936

Summary: www/mod_auth_mysql_another: fix if linked with mariadb
Product: Ports & Packages Reporter: Kurt Jaeger <pi>
Component: Individual Port(s)Assignee: freebsd-apache (Nobody) <apache>
Status: Closed Feedback Timeout    
Severity: Affects Only Me CC: brnrd, dan, joneum, pi
Priority: --- Flags: bugzilla: maintainer-feedback? (apache)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

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.