[Mod_log_sql] Installation problems on Mac OS X

Clay Loveless clay at killersoft.com
Wed Jul 14 02:07:06 EST 2004


On 7/13/04 8:18 PM Pacific Time, Edward Rudd (urkle at outoforder.cc) wrote:

> rc=65536 is a generic error code and basically means the command that
> apxs tried to run failed... that's why it appears so much.. you need to
> look at the text that the previous program generated.

Ah! That explains a lot. Unfortunately, the text that appears before the
error isn't shedding any light on the problem in this case.
 
> as for coping mod_log_sql source into the httpd source distribution to
> compile, that won't work.. Apxs should compile the source code fine..

Key word there being "should" ... : )
 
> Have you tried passing --with-mysql=/path/to/mysql/dir

I hadn't tried that previously, but I just tried it -- no change in result.

Would it make a difference what version of MySQL libraries I have installed?
I've got 4.1.3 libraries in place, which again, have been pulled in and used
by a PHP build today without incident.

My complete configure command:
> ./configure --enable-ssl --with-ssl-inc=/usr/local/apache2/include
--with-apxs=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql

Configure output:

configure: creating config.nice
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking build system type... powerpc-apple-darwin6.8
checking host system type... powerpc-apple-darwin6.8
checking target system type... powerpc-apple-darwin6.8
checking for Apache 2.0 version >= 2.0.40... yes
checking for floor in -lm... yes
checking for gzclose in -lz... yes
checking for mysql_init in -lmysqlclient... yes
checking for mysql_real_escape_string... yes
checking whether mysql clients can run... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking mod_ssl.h usability... yes
checking mod_ssl.h presence... yes
checking for mod_ssl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
configure: creating ./config.status
config.status: creating stamp-h
config.status: creating Makefile
config.status: creating docs/Makefile
config.status: creating contrib/Makefile
config.status: creating config.h
------------------------------------
Apache version  : 2.0
SSL Support     : yes


Once I remove '-Werror' from the Makefile, I get the following output from
'make':

> make

/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-no-cpp-precomp -g -O2 -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-I/usr/local/BerkeleyDB.4.2/include -I/usr/local/include -Wall
-Wc,-fno-strict-aliasing -DHAVE_CONFIG_H -DWITH_APACHE20  -c -o
mod_log_sql.lo mod_log_sql.c && touch mod_log_sql.slo
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
/usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_log_sql.la
-Wall -Wc,-fno-strict-aliasing -DHAVE_CONFIG_H -DWITH_APACHE20  -Wc,-Wall
-Wc,-Wc,-fno-strict-aliasing -rpath /usr/local/apache2/modules -module
-avoid-version    mod_log_sql.lo
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-no-cpp-precomp -g -O2 -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-I/usr/local/BerkeleyDB.4.2/include -I/usr/local/include -Wall
-Wc,-fno-strict-aliasing -I/usr/include/db1 -I/usr/local/apache2/include
-I/usr/local/apache2/include/openssl -I/usr/include/openssl -DHAVE_CONFIG_H
-DWITH_APACHE20  -c -o mod_log_sql_ssl.lo mod_log_sql_ssl.c && touch
mod_log_sql_ssl.slo
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
/usr/local/apache2/build/libtool --silent --mode=link gcc -o
mod_log_sql_ssl.la -Wall -Wc,-fno-strict-aliasing -I/usr/include/db1
-I/usr/local/apache2/include -I/usr/local/apache2/include/openssl
-I/usr/include/openssl -DHAVE_CONFIG_H -DWITH_APACHE20  -Wc,-Wall
-Wc,-Wc,-fno-strict-aliasing -rpath /usr/local/apache2/modules -module
-avoid-version    mod_log_sql_ssl.lo
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-no-cpp-precomp -g -O2 -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-I/usr/local/BerkeleyDB.4.2/include -I/usr/local/include -Wall
-Wc,-fno-strict-aliasing -I/usr/local/mysql/include
-I/usr/local/mysql/include/mysql -I/usr/local/mysql/mysql/include
-DHAVE_CONFIG_H -DWITH_APACHE20  -c -o mod_log_sql_mysql.lo
mod_log_sql_mysql.c && touch mod_log_sql_mysql.slo
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
/usr/local/apache2/build/libtool --silent --mode=link gcc -o
mod_log_sql_mysql.la -Wall -Wc,-fno-strict-aliasing
-I/usr/local/mysql/include -I/usr/local/mysql/include/mysql
-I/usr/local/mysql/mysql/include -DHAVE_CONFIG_H -DWITH_APACHE20  -Wc,-Wall
-Wc,-Wc,-fno-strict-aliasing -L/usr/local/mysql/lib
-L/usr/local/mysql/lib/mysql -L/usr/local/mysql/mysql/lib -lmysqlclient -lz
-lm -rpath /usr/local/apache2/modules -module -avoid-version
mod_log_sql_mysql.lo

*** Warning: linker path does not have real file for library -lmysqlclient.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libmysqlclient and none of the candidates passed a file format test
*** using a file magic. Last file checked:
/usr/local/mysql/lib/libmysqlclient.a

*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module mod_log_sql_mysql.  Therefore, libtool will
create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
Making all in docs
Making all in contrib



> ls .libs
mod_log_sql.a                 mod_log_sql.so
mod_log_sql_mysql.la          mod_log_sql_ssl.la
mod_log_sql_ssl.so-master.o
mod_log_sql.la                mod_log_sql.so-master.o
mod_log_sql_mysql.lai         mod_log_sql_ssl.lai
mod_log_sql.lai               mod_log_sql_mysql.a
mod_log_sql_ssl.a             mod_log_sql_ssl.so


Since I'm getting the mod_log_sql.so and mod_log_sql_ssl.so files, I'm
starting to think that the version of the MySQL client libraries I have
installed is the problem.

What do you think?

Thanks, Edward!

-Clay


-- 
Killersoft.com





More information about the Mod_log_sql mailing list