www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Mustun <mus...@active.ch>
Subject mod_auth-any/2659: mod_auth_mysql.so:Unable to resolve symbol / Invalid command
Date Wed, 22 Jul 1998 09:39:58 GMT

>Number:         2659
>Category:       mod_auth-any
>Synopsis:       mod_auth_mysql.so:Unable to resolve symbol / Invalid command
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Jul 22 02:40:00 PDT 1998
>Last-Modified:
>Originator:     mustun@active.ch
>Organization:
apache
>Release:        1.3.0
>Environment:
Linux cow 2.0.33 #1 Mon Jan 5 15:52:45 CET 1998 i586 unknown
>Description:

Here a 1:1 copy of email with the maintainer? of mod_auth_mysql.c:

- - - - 
I'm not familiar with Apache 1.3.0, but somewhere along the lines it seems
like the auth module isn't getting compiled, or it's getting compiled in
the wrong place.  Look for mod_auth_mysql.so somewhere in the source tree,
if you can't find it - it's not getting compiled for some reason...

Zeev

At 16:50 21/07/98 +0200, mustun@cow.active.ch wrote:
>How-To-Repeat:
Just compile and start apache as described above.
>Fix:
I'm not shure, but the problem may be in the file mod_auth_mysql.c.
  -> Maintainer (?) of mod_auth_mysql: Zeev Suraski   <zeev@php.net>
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]


>In message <3.0.5.32.19980705233423.00b97b70@bourbon.netvision.net.il>,
Zeev Su
>raski writes:
>> Sorry for the long while it took me to get back to you, I'm going over
>> unanswered mail now...
>> Basically, it looks as if you didn't link the MySQL client library in.
>> When you compile the module, add in
>> -L/path/to/mysql/libraries -lmysqlclient
>> 
>> Zeev
>
>I updated to a newer mysql version...
>
>$ mysql --version
>mysql  Ver 9.6 Distrib 3.21.19-beta, for pc-linux-gnu (i586)
>$
>
>
>$ ./configure --prefix=/usr/local/apache-1.3.0-own/ --enable-module=most
--enable-shared=max --enable-module=so --disable-module=rewrite
--disable-module=auth_dbm --disable-shared=auth_dbm
--add-module=/home/softy/Src/apache_1.3.0-modules-src/mod_auth_mysql/mod_aut
h_mysql-2.11/mod_auth_mysql.c --enable-shared=auth_mysql
>$ make
># make install
>
>I tryed out also to compile with --enable-shared=auth_mysql....
>..and can't start apache as before...
> - - - -
>/usr/local/apache-1.3.0-own/sbin# ./apachectl start
>Syntax error on line 68 of /usr/local/apache-1.3.0-own/etc/httpd.conf:
>Can't find module auth_mysql_module in file
libexec/mod_auth_mysql.so:Unable to resolve symbol
>./apachectl start: httpd could not be started
>#
>- - - - 
>
>I've no idea what it is...
>...but this module is very important for us (www.active.ch).
>Can you check this and try out your mod_auth_mysql with Apache 1.3.x?
>Many thanks and
>Goodbye,
>
>
>> 
>> At 14:33 16/06/98 +0200, mustun@cow.active.ch wrote:
>> >
>> >Hello,
>> >
>> >We use your mod_auth_mysql....and it worked for Apache
>> 1.2.x....(mod_auth_mysql version 2.08)...
>> >but we want update to Apache 1.3.x, and mod_auth_mysql to 2.11...
>> >
>> >My configuration:
>> >  * apache_1.3.0
>> >  * mod_auth_mysql-2.11
>> >
>> >***** Compilation works:
>> >   (softy)~/Src/apache_1.3.0$ ./configure
>> --prefix=/usr/local/apache-1.3.0-own/ --enable-module=most
>> >  --enable-shared=max --disable-module=auth_dbm --disable-shared=auth_dbm
>> >
>>
--add-module=/home/softy/Src/apache_1.3.0-modules-src/mod_auth_mysql/mod_aut
>> h_mysql-2.11/mod_auth_mysql.c
>> >  --enable-shared=auth_mysql
>> >Configuring for Apache, Version 1.3.0
>> > + on-the-fly added and activated auth_mysql module
>> (modules/extra/mod_auth_mysql.o)
>> >Creating Makefile
>> >Creating Configuration.apaci in src
>> > + enabling mod_so for DSO support
>> >Creating Makefile in src
>> > + configured for Linux platform
>> > + setting C compiler to gcc
>> > + using -ldl for vendor DSO support
>> > + adding selected modules
>> >    o status_module uses ConfigStart/End
>> >    o rewrite_module uses ConfigStart/End
>> >      disabling DBM support for mod_rewrite
>> >      (perhaps you need to add -ldbm, -lndbm or -lgdbm to EXTRA_LIBS)
>> > + doing sanity check on compiler and options
>> >Creating Makefile in src/support
>> >Creating Makefile in src/main
>> >Creating Makefile in src/ap
>> >Creating Makefile in src/regex
>> >Creating Makefile in src/os/unix
>> >Creating Makefile in src/modules/standard
>> >Creating Makefile in src/modules/proxy
>> >Creating Makefile in src/modules/extra
>> >(softy) [2108] ~/Src/apache_1.3.0$ make
>> >
>> >**** make works:
>> >. . . .
>> >===> src/modules/extra
>> >gcc -c  -I../../os/unix -I../../include   -DLINUX=2 -DSTATUS
>> -DNO_DBM_REWRITEMAP -DUSE_HSREGEX `../../apaci` -fpic -DSHARED_MODULE
>> mod_auth_mysql.c && mv mod_auth_mysql.o mod_auth_mysql.lo
>> >ld -Bshareable -o mod_auth_mysql.so mod_auth_mysql.lo
>> ><=== src/modules/extra
>> >. . . .
>> >gcc  -DLINUX=2 -DSTATUS -DNO_DBM_REWRITEMAP -DUSE_HSREGEX `./apaci`
>> -L/usr/local/lib/mysql -rdynamic \
>> >      -o httpd buildmark.o modules.o modules/standard/libstandard.a
>> main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a -lmysqlclient
>> -lm -lm -ldl
>> >. . . . 
>> >
>> >
>> >**** httpd
>> >(softy) [2203] ~/Src/apache_1.3.0/src$ ./httpd -l
>> >Compiled-in modules:
>> >  http_core.c
>> >  mod_so.c
>> >$
>> >
>> >**** make install works:
>> >.... 
>> >
>> >**** starting apache fails: :(
>> >(root) [2414] /usr/local/apache-1.3.0-own/sbin# ./apachectl start
>> >/usr/local/apache-1.3.0-own/sbin/httpd: can't resolve symbol
>> 'mysql_store_result'
>> >/usr/local/apache-1.3.0-own/sbin/httpd: can't resolve symbol
>> 'mysql_fetch_row'
>> >/usr/local/apache-1.3.0-own/sbin/httpd: can't resolve symbol
'mysql_connect'
>> >/usr/local/apache-1.3.0-own/sbin/httpd: can't resolve symbol
>> 'mysql_select_db'
>> >/usr/local/apache-1.3.0-own/sbin/httpd: can't resolve symbol 'mysql_close'
>> >/usr/local/apache-1.3.0-own/sbin/httpd: can't resolve symbol
>> 'mysql_free_result'
>> >/usr/local/apache-1.3.0-own/sbin/httpd: can't resolve symbol 'mysql_query'
>> >/usr/local/apache-1.3.0-own/sbin/httpd: can't resolve symbol
>> 'make_scrambled_password'
>> >Syntax error on line 62 of /usr/local/apache-1.3.0-own/etc/httpd.conf:
>> >Cannot load /usr/local/apache-1.3.0-own/libexec/mod_auth_mysql.so into
>> server: Unable to resolve symbol
>> >./apachectl start: httpd could not be started
>> ># 
>> >
>> >
>> >**** httpd.conf
>> >. . . 
>> >LoadModule auth_mysql_module  libexec/mod_auth_mysql.so
>> > . . .
>> >AddModule mod_auth_mysql.c
>> > .. . 
>> >
>> >Or should I do something with LoadFile mysqlclient.so?
>> >
>> >
>> >**** Note:
>> >  mod_jserv works great as a so-module.
>> >
>> >
>> >**** Compilenot as a module, works, but syntax problems.
>> >(softy) ~/Src/apache_1.3.0/src$ ./httpd -l
>> >Compiled-in modules:
>> >  http_core.c
>> >  mod_so.c
>> >  mod_auth_mysql.c
>> >$
>> >
>> >- - - - -
>> >(root) [2677] /usr/local/apache-1.3.0-own/sbin# ./apachectl start
>> >Syntax error on line 91 of /usr/local/apache-1.3.0-own/etc/access.conf:
>> >Invalid command 'Auth_MYSQLinfo', perhaps mis-spelled or defined by a
>> module not included in the server configuration
>> >./apachectl start: httpd could not be started
>> >#
>> >
>> >- - - - 
>> >Apache  access.conf
>> >- - - - 
>> >. . . .
>> >
>> >Auth_MYSQLinfo localhost . .
>> >
>> ><directory /usr/local/apache-servlet/htdocs/need-password/>
>> >
>> >  # Auth_MYSQLhost localhost
>> >
>> >  ## -- password is in clear text
>> >  # Auth_MYSQL_OptEncryptPassword on
>> >
>> >  Auth_MYSQLdatabase   mydb
>> >  Auth_MYSQLpwd_table  Account
>> >  Auth_MYSQLuid_field  userName
>> >  Auth_MYSQLpwd_field  userPassword
>> >
>> >  AuthType Basic
>> >  AuthName NeedPassword testing
>> >
>> >  <limit GET POST>
>> >    order       deny,allow
>> >    deny from   all
>> >
>> >    allow from all
>> >
>> >    require     valid-user
>> >  </limit>
>> >
>> ></directory>
>> >. . . 
>> >- - - - - 
>> >
>> >
>> >
>> >Many thanks!
>> >
>> >Bye,
>> >
>> >-- 
>> >  M. Mustun      m u s t u n @ a c t i v e . c h
>> >    w w w 2 . a c t i v e . c h /~ m u s t u n
>> >
>> >
>> >
>> --
>> Zeev Suraski   <zeev@php.net>
>> For a PGP public key, finger bourbon@netvision.net.il
>> 
>
>-- 
>  M. Mustun      m u s t u n @ a c t i v e . c h
>    w w w 2 . a c t i v e . c h /~ m u s t u n
>
>
>
--
Zeev Suraski   <zeev@php.net>
For a PGP public key, finger bourbon@netvision.net.il

- - - -
EOF.


Mime
View raw message