net-www/mod_log_sql-1.97 compile error got a little compile error w/ log-sql-1.97 ... 1.96 works fine w/ net-www/apache-2.0.49-r1 homepage of log-sql says :) <quote> Here is a small patch to fix compiling issues with certain builds of Apache 2 ("PACKAGE_NAME" redefined error) http://www.outoforder.cc/downloads/mod_log_sql/mod_log_sql-1.97.diff </quote> attached patch ... <snip> ... configure: creating ./config.status config.status: creating stamp-h config.status: creating Makefile config.status: creating Documentation/Makefile config.status: creating contrib/Makefile config.status: creating config.h ------------------------------------ Apache version : 2.0 SSL Support : yes /usr/lib/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -mcpu=i686 -pipe -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apache2 -I/usr/include/apache2 -Wall -Werror -fno-strict-aliasing -DHAVE_CONFIG_H -DWITH_APACHE20 -c -o mod_log_sql.lo mod_log_sql.c && touch mod_log_sql.slo /usr/lib/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -mcpu=i686 -pipe -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pthread -I/usr/include/apache2 -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_mysql.lo mod_log_sql_mysql.c && touch mod_log_sql_mysql.slo In file included from /usr/include/apache2/ap_config.h:230, from apache20.h:13, from mod_log_sql.c:17: /usr/include/apache2/ap_config_auto.h:176:1: "PACKAGE_NAME" redefined In file included from mod_log_sql.c:13: config.h:53:1: this is the location of the previous definition In file included from /usr/include/apache2/ap_config.h:230, from apache20.h:13, from mod_log_sql.c:17: /usr/include/apache2/ap_config_auto.h:179:1: "PACKAGE_STRING" redefined In file included from mod_log_sql.c:13: config.h:56:1: this is the location of the previous definition In file included from /usr/include/apache2/ap_config.h:230, from apache20.h:13, from mod_log_sql.c:17: /usr/include/apache2/ap_config_auto.h:182:1: "PACKAGE_TARNAME" redefined In file included from mod_log_sql.c:13: config.h:59:1: this is the location of the previous definition In file included from /usr/include/apache2/ap_config.h:230, from apache20.h:13, from mod_log_sql.c:17: /usr/include/apache2/ap_config_auto.h:185:1: "PACKAGE_VERSION" redefined In file included from mod_log_sql.c:13: config.h:62:1: this is the location of the previous definition distcc[16961] (dcc_connect_by_name) ERROR: failed to resolve host nodos port 3632: Name or service not known distcc[16961] (dcc_build_somewhere) Warning: failed to distribute to nodos/2, running locally instead distcc[16909] ERROR: compile mod_log_sql.c on localhost failed apxs:Error: Command failed with rc=65536 . make: *** [mod_log_sql.la] Error 1 make: *** Waiting for unfinished jobs.... /usr/lib/apache2/build/libtool --silent --mode=link gcc -o mod_log_sql_mysql.la -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 -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 -rpath /usr/lib/apache2/modules -module -avoid-version mod_log_sql_mysql.lo !!! ERROR: net-www/mod_log_sql-1.97 failed. !!! Function src_compile, Line 67, Exitcode 2 !!! (no error message) </snip>
Created attachment 30854 [details] mod_log_sql-1.97.diff
Patch has been added.