Re: Build Problems for Apache 2 port of mod_log_sql

Edward Rudd <[email protected]> Mon, 29 Dec 2003 22:35:19 -0600
Newsgroups gmane.comp.apache.mod-log-sql
Organization Omegaware Systems Ltd.
Message-ID <[email protected]>
Hmm..  What version of MySQL are you compiling against? I'm guessing
version 4.. IF so change the definition of char *real_error_str = NULL;
to const char *real_error_str = NULL; That should fix the warning..
MySQL 3.23 defines the mysql_error function as char* where as 4 defines
it as const char*.. hence the warning.. And since I have -Werror enabled
for compiling it bails.. Sorry..



Also, I have not tested the module for thread safety issues.. I have
only tested it in the prefork MPM.. 

On Mon, 2003-12-29 at 15:07, David Meier wrote:
> I am trying to install the module for Apache 2.0.48 on FreeBSD 4.9. I
> downloaded the version 1.91 from www.outoforder.cc. I am somewhat unsure
> about installation (could not find that promised Documentation
> directory...).
> 
> Anyway, this is how far I got:
> 
> # ./configure --with-apache=/usr/local/apache
> --with-myslq=/usr/local/include/mysql
> 
> 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... i386-unknown-freebsd4.9
> checking host system type... i386-unknown-freebsd4.9
> checking target system type... i386-unknown-freebsd4.9
> checking for apxs... /usr/local/apache/bin/apxs
> checking for Apache - 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
> configure: creating ./config.status
> config.status: creating stamp-h
> config.status: creating Makefile
> config.status: creating config.h
> 
> So far so good. When I try to build it I receive:
> 
> # make
> "Makefile", line 121: Could not find /usr/local/mod-log-sql-1.91/.deps
> make: fatal errors encountered -- cannot continue
> 
> So I created an empty file.
> # touch .deps
> 
> and retried which results in:
> 
> # make
> /usr/local/apache/bin/apxs -c -o mod_log_sql.la -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 -Wc,-Wall
> -Wc,-Werror -Wc,-fno-strict-aliasing -L/usr/local/mysql/lib
> -L/usr/lib/mysql -L/usr/mysql/lib -L/usr/local/lib/mysql
> -L/usr/local/mysql/lib/mysql -L/usr/mysql/lib/mysql -lmysqlclient -lz -lm
> -DHAVE_CONFIG_H mod_log_sql.c
> /usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic 
> -DAP_HAVE_DESIGNATED_INITIALIZER -D_REENTRANT -D_THREAD_SAFE -g -O2
> -I/usr/local/apache/include  -I/usr/local/apache/include  
> -I/usr/local/apache/include -I/usr/local/include -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  -c -o mod_log_sql.lo mod_log_sql.c && touch
> mod_log_sql.slo
> cc1: warnings being treated as errors
> mod_log_sql.c: In function `safe_sql_query':
> mod_log_sql.c:806: warning: assignment discards qualifiers from pointer
> target type
> apxs:Error: Command failed with rc=65536
> .
> *** Error code 1
> 
> Stop in /usr/local/mod-log-sql-1.91.
> 
> Any ideas?
> 
> ____________________________________________________________________
> Reminder: to unsubscribe, send email to <[email protected]>
> with the words "unsubscribe mod_log_sql" in the body (w/o quotes).
> The module homepage is http://www.grubbybaby.com/mod_log_sql/
> The list archives are here:
> http://news.gmane.org/thread.php?group=gmane.comp.apache.mod-log-sql
-- 
Edward Rudd <[email protected]>
Home Page <http://urkle.drip.ws/>
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA/8QCGvwMxRUUct20RAgftAKCSz0QMIBChkkGCSY+wqvhNRsdLzACdHry9
bx0qTBJkszhyJdxojOB2JQk=
=xwhS
-----END PGP SIGNATURE-----