Bug 224046

Summary: www/mod_auth_mysql_another: when compiled against a newer mariadb library will break
Product: Ports & Packages Reporter: dan
Component: Individual Port(s)Assignee: freebsd-apache (Nobody) <apache>
Status: Closed Overcome By Events    
Severity: Affects Many People CC: brnrd, joneum, w.schwarzenfeld
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
svn-diff-mod_auth_mysql_another none

Description dan 2017-12-03 03:24:39 UTC
Following port:
/usr/ports/www/mod_auth_mysql_another

When compiled against a newer mariadb library will break.
pkg search mariadb

Up to mariadb101-client will work, when installing mariadb102-client and any future releases, the library when attempting to be loaded by apache24 will produce following error:

mod_auth_mysql.so: undefined symbol: make_scrambled_password


Dan.
Comment 1 Walter Schwarzenfeld 2017-12-12 15:17:17 UTC
Created attachment 188754 [details]
svn-diff-mod_auth_mysql_another

Try this patch.  Should work.
Comment 2 dan 2018-01-07 19:37:49 UTC
with patch get the following:

Performing sanity check on apache24 configuration:
httpd: Syntax error on line 162 of /usr/local/etc/apache24/httpd.conf: Cannot load libexec/apache24/mod_auth_mysql.so into server: /usr/local/libexec/apache24/mod_auth_mysql.so: Undefined symbol "my_make_scrambled_password"


(In reply to w.schwarzenfeld from comment #1)
Comment 3 Walter Schwarzenfeld 2018-01-07 20:27:21 UTC
sorry, but
without patch
 strings /usr/local/libexec/apache24/mod_auth_mysql.so |grep scram
make_scrambled_password

with patch
strings /usr/local/libexec/apache24/mod_auth_mysql.so |grep scram
my_make_scrambled_password

That means it should work also without patch.
Comment 4 Walter Schwarzenfeld 2018-01-07 20:27:49 UTC
And works on my system without patch.
Comment 5 Walter Schwarzenfeld 2018-01-07 20:28:57 UTC
Oh sorry, overlooked mariadb.
Comment 6 Jochen Neumeister freebsd_committer freebsd_triage 2018-03-25 17:52:20 UTC
is the problem still?
Comment 7 dan 2018-04-02 01:47:59 UTC
Believe still broken against mariadb libraries, I had to manually copy mysql old library to /lib or /usr/lib directory from port work directory to make it work.