Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 371369 - mod-auth-mysql-4.3.9: LoadModule statement is wrong (with solution)
Summary: mod-auth-mysql-4.3.9: LoadModule statement is wrong (with solution)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-13 08:51 UTC by toon
Modified: 2014-05-25 01:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description toon 2011-06-13 08:51:25 UTC
Hi!

I used mod-auth-mysql to authenticate a website against a userdatabase in MySQL.
After emerging the package and adding the AUTH_MYSQL define to apache,
apache refused to start up, complaining about an invalid LoadModule statement:

apache2: Syntax error on line 152 of /etc/apache2/httpd.conf: Syntax error on line 3 of /etc/apache2/modules.d/12_mod_auth_mysql.conf: Can't locate API module structure `apache2_mysql_auth_module' in file /usr/lib64/apache2/modules/apache2_mod_auth_mysql.so: /usr/lib64/apache2/modules/apache2_mod_auth_mysql.so: undefined symbol: apache2_mysql_auth_module

I checked out the source and discovered that de LoadModule statement was wrong.
In the installed file (/etc/apache2/modules.d/12_mod_auth_mysql.conf) it reads:

LoadModule apache2_mysql_auth_module modules/apache2_mod_auth_mysql.so

However, it SHOULD read:

LoadModule auth_mysql_module modules/apache2_mod_auth_mysql.so

The mod-auth-mysql loads and functions properly after applying this change.
Please modify the file /usr/portage/www-apache/mod-auth-mysql/files/12_mod_auth_mysql.conf in the ebuild accordingly.

Regards,
Toon.

Reproducible: Always

Steps to Reproduce:
1. emerge mod-auth-mysql
2. add define AUTH_MYSQL in /etc/conf.d/apache2
3. restart apache
Actual Results:  
Load of the module mod-auth-mysql fails. (see descryption)

Expected Results:  
Load of the module mod-auth-mysql succeeds.

See descryption.
Comment 1 Raphaël Droz 2011-11-12 14:54:48 UTC
I can confirm both bug and solution (thanks)
Comment 2 Brian Evans (RETIRED) gentoo-dev 2014-05-25 01:46:45 UTC
*mod-auth-mysql-4.3.9-r1 (25 May 2014)

  25 May 2014; Brian Evans <grknight@gentoo.org>
  +mod-auth-mysql-4.3.9-r1.ebuild, -mod-auth-mysql-4.3.9.ebuild,
  files/12_mod_auth_mysql.conf:
  Revision bump for bug 371369, increase to EAPI-5 and add epatch_user