Dear sir,

Please help and drop me a email.([EMAIL PROTECTED])

I have Apache 1.3.17, MySQL 3.23.30 install on a Sparc Solaris 8 and Apache 
1.3.20, MySQL 3.23.40 installed on a Interl RedHat Linux 7.1, I got 
mod_auth_mysql-2.20 and following below instruction to compile and failed on 
both platforms,

Below is the message when I run on the RH linux,

[root@localhost mod_auth_mysql-2.20]# ./configure 
--with-apxs=/usr/local/apache/bin/apxs \
> --with-mysql=/usr/local/mysql
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for crypt.h... yes
checking for crypt... no
checking for crypt in -lc... no
checking for crypt in -lcrypt... yes
checking for standard DES crypt... yes
checking for extended DES crypt... yes
checking for MD5 crypt... yes
checking for Blowfish crypt... yes
checking for Apache module support via DSO through APXS... yes
checking for Apache module support via DSO through APACI... no
checking for MySQL directory... /usr/local/mysql
updating cache ./config.cache
creating ./config.status
creating Makefile
creating libauth_mysql.module
creating config.h
config.h is unchanged

Please run 'make'
[root@localhost mod_auth_mysql-2.20]# /usr/local/apache/bin/apxs -I . -I 
/usr/local/apache/include \
> -I /usr/local/mysql/include -L /usr/local/mysql/lib \
> -lmysqlclient -lm -c mod_auth_mysql.c
gcc -DLINUX=22 -I/usr/include/db1 -I/root/php-4.0.6 -I/root/php-4.0.6/main 
-I/root/php-4.0.6/main -I/root/php-4.0.6/Zend -I/root/php-4.0.6/Zend 
-I/root/php-4.0.6/TSRM -I/root/php-4.0.6/TSRM -I/root/php-4.0.6 -DUSE_EXPAT 
-I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/local/apache/include -I. 
-I/usr/local/apache/include -I/usr/local/mysql/include  -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 
-lmysqlclient -lm 

[root@localhost mod_auth_mysql-2.20]# /usr/local/apache/bin/apxs -i -a 
mod_auth_mysql.so
[activating module `auth_mysql' in /usr/local/apache/conf/httpd.conf]
cp mod_auth_mysql.so /usr/local/apache/libexec/mod_auth_mysql.so
chmod 755 /usr/local/apache/libexec/mod_auth_mysql.so
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak
cp /usr/local/apache/conf/httpd.conf.new /usr/local/apache/conf/httpd.conf
rm /usr/local/apache/conf/httpd.conf.new

[root@localhost conf]# cd ../bin 
[root@localhost bin]# ./apachectl configtest
Syntax error on line 240 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_auth_mysql.so into server: 
/usr/local/apache/libexec/mod_auth_mysql.so: undefined symbol: uncompress

Thanks & Best Regards

Huang Hai

Subject: Solved: Compiling mod_auth_mysql as DSO...

      From: Philip Hallstrom 
      Date: Fri, 7 Jan 2000 12:28:43 -0800 (PST) 



      Hi all -

      I saw a lot of threads on here regarding getting mod_auth_mysql (Zeev's
      version) to compile as a DSO.  I had problems getting mine to work and
      finally got it to work (at least apache will start up with it and
      /server-status works, etc. -- haven't actually tested it).  This is on
      FreeBSD 3.4.

      This is what I did (commands have been wrapped so it's readable):

      - Installed apache (1.3.9 with all dso stuff) in /local/www/apache.
      - Installed mysql (3.22.29) in /local/db/mysql.

      cd mod_auth_mysql-2.20

      ./configure --with-apxs=/local/www/apache/bin/apxs
                  --with-mysql=/local/db/mysql

      mv config.h auth_mysql_config.h

      /local/www/apache/bin/apxs -I.  -I/local/www/apache/include
           -I/local/db/mysql/include/mysql
           -L/local/db/mysql/lib/mysql
           -lmysqlclient -c mod_auth_mysql.c

      /local/www/apache/bin/apxs -i -a mod_auth_mysql.so

      ldconfig -elf -m /local/db/mysql/lib/mysql

      -- This step might not be necessary.  I needed it because my libs aren't
      in the standard places.  If you get an error from apache like the one
      below, you'll need to do something with ldconfig.

      Cannot load /local/www/apache_1.3.9/libexec/mod_auth_mysql.so into server:
      Shared object "libmysqlclient.so.6" not found


      Startup apache.  It looks like it works...


      -philip


------------- End Forwarded Message -------------



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to