Pat Militzer - 2002-01-15

Hi there,

Working on Solaris 7, mysql 4.0.1 getting the following error when running make:
# make
/usr/local/apache/bin/apxs  -o mod_auth_mysql.so -I/usr/local/mysql/include -L/usr/local/mysql/lib -lmysqlclient -lz -c -Wc -DSHARED_MODULE mod_auth_mysql.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/usr/local/apache/include -I/usr/local/mysql/include -DSHARED_MODULE  -c mod_auth_mysql.c
mod_auth_mysql.c: In function `open_auth_dblink':
mod_auth_mysql.c:391: warning: assignment makes pointer from integer without a cast
ld -G -o mod_auth_mysql.so mod_auth_mysql.o -L/usr/local/mysql/lib -lmysqlclient -lz

Then try to install and run apachectl configtest I get this error:

Syntax error on line 237 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_auth_mysql.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/mod_auth_mysql.so: symbol mysql_connect: referenced symbol not found

I figure the 2 are related but have searched the web for answers, have found none.

Using gcc version:
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/specs
gcc version 2.95.3 20010315 (release)

Apache 1.3.22

Any sugestions ?

Thanks in advance

Pat
pmilitzer@metromls.com