I am out of ideas.  Can anyone help?  I am running linux RH 6.2 .  I compiled apache with mysql,mod_auth_sql, php, mod_perl and mod_ssl.  i've compiled everthing from source.  NO RPM's.  Anyway, everything works except I can't get mod_auth_mysql to load as a DSO.  Here is the command I used to load mod_auth_mysql via apxs:
    [root@impalla mod_auth_mysql-2.20]# /usr/local/apache-1.3.12/bin/apxs -i -a -I/usr/local/mysql/include/mysql -L/usr/local/mysql/lib/mysql -lmysqlclient -c mod_auth_mysql.c
 
and here is the resulting code:

gcc -DLINUX=2 -DMOD_SSL=206106 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_CORE -DSHARED_MODULE -I/usr/local/apache-1.3.12/include -I/usr/local/mysql/include/mysql  -c mod_auth_mysql.c
mod_auth_mysql.c: In function `my_set_string_slot':
mod_auth_mysql.c:203: warning: assignment makes pointer from integer without a cast
mod_auth_mysql.c: In function `safe_mysql_query':
mod_auth_mysql.c:405: warning: assignment makes pointer from integer without a cast
mod_auth_mysql.c:417: warning: assignment makes pointer from integer without a cast
mod_auth_mysql.c:419: warning: assignment makes pointer from integer without a cast
mod_auth_mysql.c: In function `mysql_check_group':
mod_auth_mysql.c:526: warning: assignment makes pointer from integer without a cast
mod_auth_mysql.c: In function `mysql_check_auth':
mod_auth_mysql.c:589: warning: initialization makes pointer from integer without a cast
mod_auth_mysql.c:613: warning: assignment makes pointer from integer without a cast
mod_auth_mysql.c:619: warning: assignment makes pointer from integer without a cast
mod_auth_mysql.c:631: warning: assignment makes pointer from integer without a cast
mod_auth_mysql.c:633: warning: assignment makes pointer from integer without a cast
mod_auth_mysql.c:635: warning: assignment makes pointer from integer without a cast
gcc -shared -o mod_auth_mysql.so mod_auth_mysql.o -L/usr/local/mysql/lib/mysql -lmysqlclient -lm -lcrypt -lndbm
cp mod_auth_mysql.so /usr/local/apache-1.3.12/libexec/mod_auth_mysql.so
chmod 755 /usr/local/apache-1.3.12/libexec/mod_auth_mysql.so
[activating module `auth_mysql' in /usr/local/apache-1.3.12/conf/httpd.conf]
[root@impalla mod_auth_mysql-2.20]#
I've been told not to worry about the integer cast warnings.  Anyway, when I try to start apachectl startsll here is what i get:
 
[root@impalla mod_auth_mysql-2.20]# /usr/local/apache/bin/apachectl startssl
Syntax error on line 208 of /usr/local/apache-1.3.12/conf/httpd.conf:
Cannot load /usr/local/apache-1.3.12/libexec/mod_auth_mysql.so into server: libmysqlclient.so.6: cannot open shared object file: No such file or directory
/usr/local/apache/bin/apachectl startssl: httpd could not be started
[root@impalla mod_auth_mysql-2.20]#
 
ANY HELP???  It's like apache doesn't know where to look for the mysql libs even though i specified where it is in the apxs command?  I'm confused.
 
Jeff Gelina

Reply via email to