LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 02-11-2010, 05:33 PM   #1
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Rep: Reputation: 23
Compiling mod_auth_mysql Solaris 10 sparc


I need to build mod_auth_mysql as a DSO under Solaris 10 sparc - the machine is an Ultra 45 - Solaris installed I believe is the official 10/09 release.

I have googled all I can stand to google, and I am frustrated with this because right when I get past one issue another comes up, right now I have an issue that I have no idea what is could be - here is the message -


bash-3.00# /usr/local/apache2/bin/apxs -c -L/usr/local/mysql/lib/mysql -I/usr/local/mysql/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -L/usr/local/pgsql/lib -R/usr/local/pgsql/lib -L/usr/local/lib -R/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/openwin/lib -R/usr/openwin/lib -I/usr/local/rrdtool-1.2.19/include -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/mysql/include/mysql -c -o mod_auth_mysql.lo mod_auth_mysql.c && touch mod_auth_mysql.slo
env: No such file or directory
apxs:Error: Command failed with rc=65536


Now this has me really confused because its not the env command its looking for its something else, my path looks good, I have all the dependencies, I have no idea.


Anyone compiled mod_auth_mysql with Solaris 10? If you have any ideas at all it would be much appreciated.
 
Old 02-12-2010, 04:10 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,900

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

Just out of curiosity I tried to compile the module and I also got errors.
After googling a bit I've found this patch and the module compiled and installed nicely.
FYI, it's for apache2.2 and mod_auth_mysql-3.0.0

Regards
 
Old 08-29-2010, 06:02 AM   #3
cnighojkar
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
* Edit post * Delete post * Report this post * Reply with quote not able to build

Hello ,
I have s Solaris 10 10/09 s10x_u8wos_08a X86 OS.
I installed Apache 1.3.34 and MYSQL 5.1.50.
while executing the following command to compile the mod_auth_mysql.c module
sudo ./apxs -c -L/d00/tbls/mysql/lib -I/d00/tbls/mysql/include -lmysqlclient -lm -lz mod_auth_mysql.c.
result of it mod_auth_mysql.so and mod_auth_mysql.ofiles are getting created
but with message
"gcc -DSOLARIS2=2100 -DUSE_HSREGEX -L/usr/local/lib -R/usr/local/lib -L/usr/local /ssl/lib -R/usr/local/ssl/lib -L/usr/openwin/lib -R/usr/openwin/lib -fPIC -DSHAR ED_MODULE -I/usr/local/apache/include -I/d00/tbls/mysql/include -c mod_auth_mys ql.c
mod_auth_mysql.c: In function `pw_crypted':
mod_auth_mysql.c:826: warning: passing arg 2 of `strcmp' makes pointer from integer without a cast
ld -G -o mod_auth_mysql.so mod_auth_mysql.o -L/d00/tbls/mysql/lib -lmysqlclient -lm -lz"
when i check the list of available compiled-in modules with command
./httpd -l it shows
Compiled-in modules:
http_core.c
mod_so.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec

mod-auth_mysql module is not get compiled .
Please help me.

Chetan ,
 
Old 08-30-2010, 07:26 AM   #4
cnighojkar
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
Doing following steps for mod_auth_mysql to work on Solaris 10 sparc with
Apache 1.3.34 and Mysql 5.1.50

1. Downloaded mod_auth_mysql-3.0.0 from http://sourceforge.net/projects/modauthmysql/
2. extracted the file
3. copied mod_auth_mysql.c to /usr/local/apache/bin
4. sudo ./apxs -c -L/d00/tbls/mysql/lib -I/d00/tbls/mysql/include -lmysqlclient -lm -lz mod_auth_mysql.c
5. sudo ./apxs -i mod_auth_mysql.so
6. Added following lines to httpd.conf
LoadModule libexec/mod_auth_mysql.so
AddModule mod_auth_mysql.c
7. myptc database is created with User table and inserted some data into User table.
8. Added following lines to httpd.conf
<Directory "/opt/tbls/ptc/htdocs">
AuthName MySQLAuth
AuthType Basic
AuthMySQLDB myptc
AuthMySQLUser root
AuthMySQLEnable On
AuthMySQLUserTable User
AuthMySQLNameField uname
AuthMySQLPasswordField passwd
require valid-user
Options FollowSymLinks
</Directory>
9. Stop Apache ./apachectl stop -----no error
10. start apache ./apachectl start
Syntax error on line 145 of /usr/local/apache/conf/httpd.conf:
Invalid command 'AuthMySQLDB', perhaps mis-spelled or defined by a module not in cluded in the server configuration
./apachectl start: httpd could not be started


Please help ,,,,
 
Old 08-30-2010, 09:09 AM   #5
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,900

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

Quote:
6. Added following lines to httpd.conf
LoadModule libexec/mod_auth_mysql.so
AddModule mod_auth_mysql.c
You should use:
Code:
LoadModule mysql_auth_module libexec/mod_auth_mysql.so
PS: Please don't hijack old threads. You should open a new one describing your problem

Regards
 
Old 08-31-2010, 02:29 AM   #6
cnighojkar
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
Hi Bathory ,
Sorry for doing so , but i found related problem that's why i put my message there, what you said is correct.
I added those lines which you suggested LoadModule mysql_auth_module libexec/mod_auth_mysql.so in http.conf, but not succeeded.

Further i like to mention here is when i run the command
sudo ./apxs -c -L/d00/tbls/mysql/lib -I/d00/tbls/mysql/include -lmysqlclient -lm -lz mod_auth_mysql.c
the output comes with message
mod_auth_mysql.c: In function `pw_crypted':
mod_auth_mysql.c:826: warning: passing arg 2 of `strcmp' makes pointer from integer without a cast
.
may be this may help you to understand my problem better.

Thanks
 
Old 08-31-2010, 03:36 AM   #7
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,900

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Quote:
mod_auth_mysql.c:826: warning: passing arg 2 of `strcmp' makes pointer from integer without a cast
This is just a warning. It's mot harmful as the module compiles fine at the end.

If you still get the error "Invalid command 'AuthMySQLDB', perhaps mis-spelled or defined by a module not in cluded in the server configuration", it looks like apache does not load the module. Check the error_log to see why

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to secure Solaris 10 Sparc dlugasx Solaris / OpenSolaris 2 06-08-2009 07:38 PM
chroot on Solaris 10 SPARC. czezz Solaris / OpenSolaris 3 09-11-2008 08:47 AM
Solaris 7 SPARC e1000g 0.o Solaris / OpenSolaris 1 12-04-2007 05:48 PM
Solaris 8.1.7 on SPARC, how I get it? saudoi Solaris / OpenSolaris 2 06-02-2005 09:39 PM


All times are GMT -5. The time now is 05:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration