|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
mod_auth_mysql (nearly there...)
Not much activity in the Apache forum, so apologies if posting here bothers ppl (I'm getting desperate)...
Anyhow, I gave up on the ./configure method for compiling mod_auth_mysql (http://forums.devshed.com/showthrea...2671&forumid=15) I've managed to manipulate the manual method such that I do this (nb. I just put in all the paths I could think of): Compile it: Code:
gcc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -fpic -I/usr/apache/include -I/usr/local/mysql/include -I/usr/include -I/usr/lib -L/usr/lib -L/usr/apache/libexec -Lusr/local/mysql/lib/mysql -L/lib -I/lib -L/usr/local/lib -I/us r/local/lib -c mod_auth_mysql.c Link it: Code:
gcc -shared -o mod_auth_mysql.so mod_auth_mysql.o -L/usr/lib -L/usr/apache/libexec -L/usr/local/mysql/lib/mys ql -I/lib -I/usr/lib -I/usr/local/lib -L/usr/local/lib -lc -lm -lcrypt Register the module: Code:
/usr/apache/bin/apxs -i -a -n mod_auth_mysql mod_auth_mysql.so I then get the following error: Code:
Syntax error on line 239 of /etc/apache/httpd.conf: Can't locate API module structure `mod_auth_mysql_module' in file /usr/apache/libexec/mod_auth_mysql.so: ld.so.1: /usr/apache/bin/httpd: fatal: mod_auth_mysql_module: can't find symbol I'm thinking that maybe I'm not linking something in properly, but I've supplied all the paths, so I can't see how it's not getting everything (e.g. the ld.so.1). Thanks for any help Craig |
|
#2
|
|||
|
|||
|
Solution
Code:
# cd /mod_auth_directory # ./configure --with-apxs=/path/to/apxs --with-mysql=/path/to/mysql # mv config.h auth_mysql_config.h # /usr/apache/bin/apxs -I. -I/path/to/apache/includes -I/path/to/mysql/includes -L/lib/to/mysql/libs -lmysqlclient -c mod_auth_mysql.c # gcc -shared -o mod_auth_mysql.so mod_auth_mysql.o # /usr/apache/bin/apxs -i -a mod_auth_mysql.so And now it works...(this was on Solaris 2.8) Craig |
|
#3
|
||||
|
||||
|
Moving to apache forum...guess you're not desperate anymore.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > mod_auth_mysql (nearly there...) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|