You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tony Shah <ts...@aegsys.com> on 2002/04/05 00:41:00 UTC

mod_auth_mysql / apache problems

Hello,

I've been trying to compile mod_auth_mysql into apache 1.3.19 on a RH Linux
6.1 and have not been sucessful.  Has anyone had any experience with this?
Here's a little history of what's been going on.

I'm using the "--add-module=FILE" command when compiling apache to include
the mod_auth_mysql.c file.

First I got errors when I ran "make" for apache that were along the lines
of:
<
mod_auth_mysql.c:11:31: auth_mysql_config.h: No such file or directory
mod_auth_mysql.c:25:19: mysql.h: No such file or directory
....
>

So i linked all the .h files for mysql into apache/src/include, and also
copied config.h to auth_mysql_config.h (saw a hint on a linux howto site -
may or may not be correct).  That solved those errors.

But now I have the following errors when I run make:
<
mod_auth_mysql.o(.text+0x8d): undefined reference to
`make_scrambled_password'
modules/extra/libextra.a(mod_auth_mysql.o): In function
`create_mysql_auth_dir_c
onfig':
mod_auth_mysql.o(.text+0x143): undefined reference to `pcalloc'
modules/extra/libextra.a(mod_auth_mysql.o): In function
`my_set_string_slot':
mod_auth_mysql.o(.text+0x2bb): undefined reference to `pstrdup'
modules/extra/libextra.a(mod_auth_mysql.o): In function
`my_set_encryption_types
':
mod_auth_mysql.o(.text+0x354): undefined reference to `log_error'
modules/extra/libextra.a(mod_auth_mysql.o): In function `mysql_escape':
mod_auth_mysql.o(.text+0x435): undefined reference to `palloc'
modules/extra/libextra.a(mod_auth_mysql.o): In function
`auth_mysql_cleanup':
mod_auth_mysql.o(.text+0x4d7): undefined reference to `mysql_close'
modules/extra/libextra.a(mod_auth_mysql.o): In function
`note_cleanups_for_mysql
_auth':
mod_auth_mysql.o(.text+0x4ff): undefined reference to `register_cleanup'
modules/extra/libextra.a(mod_auth_mysql.o): In function
`auth_mysql_result_clean
up':
mod_auth_mysql.o(.text+0x515): undefined reference to `mysql_free_result'
modules/extra/libextra.a(mod_auth_mysql.o): In function
`note_cleanups_for_mysql
_auth_result':
mod_auth_mysql.o(.text+0x537): undefined reference to `register_cleanup'
modules/extra/libextra.a(mod_auth_mysql.o): In function `open_auth_dblink':
mod_auth_mysql.o(.text+0x5b0): undefined reference to `mysql_connect'
modules/extra/libextra.a(mod_auth_mysql.o): In function `safe_mysql_query':
mod_auth_mysql.o(.text+0x63e): undefined reference to `mysql_select_db'
mod_auth_mysql.o(.text+0x65b): undefined reference to `mysql_query'
mod_auth_mysql.o(.text+0x679): undefined reference to `mysql_error'
mod_auth_mysql.o(.text+0x6bc): undefined reference to `log_error'
mod_auth_mysql.o(.text+0x709): undefined reference to `mysql_error'
mod_auth_mysql.o(.text+0x721): undefined reference to `pstrcat'
mod_auth_mysql.o(.text+0x738): undefined reference to `log_error'
mod_auth_mysql.o(.text+0x765): undefined reference to `log_error'
mod_auth_mysql.o(.text+0x79a): undefined reference to `mysql_select_db'
mod_auth_mysql.o(.text+0x7b7): undefined reference to `mysql_query'
mod_auth_mysql.o(.text+0x803): undefined reference to `pstrcat'
mod_auth_mysql.o(.text+0x81a): undefined reference to `log_error'
....
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/tshah/apache_1.3.19/apache_1.3.19/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/tshah/apache_1.3.19/apache_1.3.19'
make: *** [build] Error 2
>

If anyone can think of anything, please let me know.  Please let me know if
you need more detail.

Thanks,
-Tony Shah


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org