[Mod_log_sql] Problems compiling on suse 9.1

mark.ridley at adeptscience.co.uk mark.ridley at adeptscience.co.uk
Mon Jul 5 04:53:50 EST 2004


Hello,

I am having trouble compiling on suse 9.1.  Configure is fine - i ran with 
the following: 

./configure -enable-ssl --with-apxs=/usr/sbin/apxs2-prefork 
--with-ssl-inc=/usr/include/ssl

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... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for Apache 2.0 version >= 2.0.44... 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... yes
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 Documentation/Makefile
config.status: creating config.h
------------------------------------
Apache version  : 20
SSL Support     : yes


when i run make i get the following:

/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic 
-O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -fPIC -Wall 
-fno-strict-aliasing -D_LARGEFILE_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER 
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE 
-D_GNU_SOURCE -DAP_DEBUG -g -Wmissing-prototypes -Wstrict-prototypes 
-Wmissing-declarations -pthread -I/usr/include/apache2-prefork 
-I/usr/include/apache2   -I/usr/include/apache2  -Wall -Werror 
-fno-strict-aliasing -I/usr/local/mysql/include -I/usr/include/mysql 
-I/usr/mysql/include -I/usr/local/include/mysql 
-I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql 
-DHAVE_CONFIG_H -DWITH_APACHE20  -c -o mod_log_sql.lo mod_log_sql.c && 
touch mod_log_sql.slo
mod_log_sql.c: In function `log_sql_register_item':
mod_log_sql.c:157: warning: passing arg 1 of `ap_strchr' discards 
qualifiers from pointer target type
In file included from mod_log_sql.c:165:
functions.h: In function `extract_specific_cookie':
functions.h:191: warning: passing arg 1 of `ap_strstr' discards qualifiers 
from pointer target type
functions.h:212: warning: passing arg 1 of `ap_strstr' discards qualifiers 
from pointer target type
functions.h:229: warning: passing arg 1 of `ap_strstr' discards qualifiers 
from pointer target type
mod_log_sql.c: In function `safe_sql_query':
mod_log_sql.c:332: warning: passing arg 1 of `ap_strstr' discards 
qualifiers from pointer target type
mod_log_sql.c:332: warning: passing arg 1 of `ap_strstr' discards 
qualifiers from pointer target type
mod_log_sql.c: In function `log_sql_transaction':
mod_log_sql.c:954: warning: passing arg 1 of `ap_strstr' discards 
qualifiers from pointer target type
apxs:Error: Command failed with rc=65536
.
gmake: *** [mod_log_sql.la] Error 1

Any suggestions?

Thanks in advance,

Mark



More information about the Mod_log_sql mailing list