Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 21st, 2002, 04:23 AM
theKid theKid is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 16 theKid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old March 21st, 2002, 08:25 AM
theKid theKid is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 16 theKid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #3  
Old March 21st, 2002, 01:57 PM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Dec 1999
Location: Afghanistan
Posts: 14,382 Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate Folder
Time spent in forums: 2 Months 4 Weeks 10 h 34 m 56 sec
Reputation Power: 1784
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
Moving to apache forum...guess you're not desperate anymore.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > mod_auth_mysql (nearly there...)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway