The following reply was made to PR mod_auth-any/2659; it has been noted by
GNATS.
From: "Ralf S. Engelschall" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: mod_auth-any/2659: mod_auth_mysql.so:Unable to resolve symbol /
Invalid command
Date: Wed, 22 Jul 1998 13:45:27 +0200
In article <[EMAIL PROTECTED]> you wrote:
>>Synopsis: mod_auth_mysql.so:Unable to resolve symbol / Invalid command
>[...]
> Here a 1:1 copy of email with the maintainer? of mod_auth_mysql.c:
> - - - -
> I'm not familiar with Apache 1.3.0, but somewhere along the lines it seems
> like the auth module isn't getting compiled, or it's getting compiled in
> the wrong place. Look for mod_auth_mysql.so somewhere in the source tree,
> if you can't find it - it's not getting compiled for some reason...
>[...]
>>> Sorry for the long while it took me to get back to you, I'm going over
>>> unanswered mail now...
>>> Basically, it looks as if you didn't link the MySQL client library in.
>>> When you compile the module, add in
>>> -L/path/to/mysql/libraries -lmysqlclient
>[...]
>>
>>$ ./configure --prefix=/usr/local/apache-1.3.0-own/ --enable-module=most
> --enable-shared=max --enable-module=so --disable-module=rewrite
> --disable-module=auth_dbm --disable-shared=auth_dbm
> --add-module=/home/softy/Src/apache_1.3.0-modules-src/mod_auth_mysql/mod_aut
> h_mysql-2.11/mod_auth_mysql.c --enable-shared=auth_mysql
>>$ make
>># make install
>>
>>I tryed out also to compile with --enable-shared=auth_mysql....
>>..and can't start apache as before...
>> - - - -
>>/usr/local/apache-1.3.0-own/sbin# ./apachectl start
>>Syntax error on line 68 of /usr/local/apache-1.3.0-own/etc/httpd.conf:
>>Can't find module auth_mysql_module in file
> libexec/mod_auth_mysql.so:Unable to resolve symbol
>>./apachectl start: httpd could not be started
>[...]
A few hints:
1. Currently there is no way to link DSO files against other libraries. A
patch is available (and was posted to new-httpd by me recently) but no
release version still contains support for this. So as an implication you
_CANNOT_ use --enable-shared=auth_mysql.
2. Because of 1.) the only correct way to build your Apache with
mod_auth_mysql is to use the following:
$ LDFLAGS="-L/path/to/mysql/libraries" LIBS="-lmysqlclient" \
./configure \
--add-module=/path/to/your/mod_auth_mysql.c
...
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com