You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Stas Bekman <st...@stason.org> on 2003/09/17 20:38:35 UTC
lar2: build warnings
I get some warnings when building lar2:
/home/stas/httpd/prefork/bin/apxs -L../../../src -I../../../src -lapreq
-DAPACHE2 -I/home/stas/apache.org/httpd-apreq-2/env/c-modules -c
mod_apreq_access_test.c
/home/stas/httpd/prefork/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -g -O2 -Wall
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread
-I/home/stas/httpd/prefork/include -I/home/stas/httpd/prefork/include
-I/home/stas/httpd/prefork/include -I../../../src
-I/home/stas/apache.org/httpd-apreq-2/env/c-modules -DAPACHE2 -c -o
mod_apreq_access_test.lo mod_apreq_access_test.c && touch
mod_apreq_access_test.slo
mod_apreq_access_test.c:71:1: warning: "APACHE_HTTPD_TEST_ACCESS_CHECKER"
redefined
In file included from mod_apreq_access_test.c:64:
/home/stas/apache.org/httpd-apreq-2/env/c-modules/apache_httpd_test.h:50:1:
warning: this is the location of the previous definition
mod_apreq_access_test.c:72:1: warning: "APACHE_HTTPD_TEST_COMMANDS" redefined
/home/stas/apache.org/httpd-apreq-2/env/c-modules/apache_httpd_test.h:86:1:
warning: this is the location of the previous definition
mod_apreq_access_test.c:73:1: warning: "APACHE_HTTPD_TEST_PER_DIR_CREATE"
redefined
/home/stas/apache.org/httpd-apreq-2/env/c-modules/apache_httpd_test.h:74:1:
warning: this is the location of the previous definition
This is with:
CCOPTS='-Werror -O0 -g' ./configure \
--with-apache2-apxs=/home/stas/httpd/prefork/bin/apxs \
--with-perl=/usr/bin/perl-5.8.1-ithread
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: lar2: build warnings
Posted by Stas Bekman <st...@stason.org>.
Joe Schaefer wrote:
> Stas Bekman <st...@stason.org> writes:
>
> [...]
>
>
>>mod_apreq_access_test.c:71:1: warning: "APACHE_HTTPD_TEST_ACCESS_CHECKER"
>>redefined
>>In file included from mod_apreq_access_test.c:64:
>>/home/stas/apache.org/httpd-apreq-2/env/c-modules/apache_httpd_test.h:50:1:
>>warning: this is the location of the previous definition
>>mod_apreq_access_test.c:72:1: warning: "APACHE_HTTPD_TEST_COMMANDS" redefined
>>/home/stas/apache.org/httpd-apreq-2/env/c-modules/apache_httpd_test.h:86:1:
>>warning: this is the location of the previous definition
>>mod_apreq_access_test.c:73:1: warning: "APACHE_HTTPD_TEST_PER_DIR_CREATE"
>>redefined
>>/home/stas/apache.org/httpd-apreq-2/env/c-modules/apache_httpd_test.h:74:1:
>>warning: this is the location of the previous definition
>
>
> This patch should fix; you may need to % make clean
> to get the c-modules to recompile during % make test.
It does. Thanks.
I always do make clean + ./buildconf when updating things.
> Index: env/c-modules/apreq_access_test/mod_apreq_access_test.c
> ===================================================================
> RCS file: /home/cvs/httpd-apreq-2/env/c-modules/apreq_access_test/mod_apreq_access_test.c,v
> retrieving revision 1.2
> diff -u -r1.2 mod_apreq_access_test.c
> --- env/c-modules/apreq_access_test/mod_apreq_access_test.c 11 Jul 2003 02:40:20 -0000 1.2
> +++ env/c-modules/apreq_access_test/mod_apreq_access_test.c 17 Sep 2003 21:46:09 -0000
> @@ -61,6 +61,10 @@
>
> #endif
>
> +#define APACHE_HTTPD_TEST_ACCESS_CHECKER apreq_access_checker
> +#define APACHE_HTTPD_TEST_COMMANDS access_cmds
> +#define APACHE_HTTPD_TEST_PER_DIR_CREATE create_access_config
> +
> #include "apache_httpd_test.h"
> #include "apreq_params.h"
> #include "apreq_env.h"
> @@ -68,9 +72,6 @@
> #include "apr_strings.h"
>
> module AP_MODULE_DECLARE_DATA apreq_access_test_module;
> -#define APACHE_HTTPD_TEST_ACCESS_CHECKER apreq_access_checker
> -#define APACHE_HTTPD_TEST_COMMANDS access_cmds
> -#define APACHE_HTTPD_TEST_PER_DIR_CREATE create_access_config
>
> struct access_test_cfg {
> apr_pool_t *pool;
>
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: lar2: build warnings
Posted by Joe Schaefer <jo...@sunstarsys.com>.
Stas Bekman <st...@stason.org> writes:
[...]
> mod_apreq_access_test.c:71:1: warning: "APACHE_HTTPD_TEST_ACCESS_CHECKER"
> redefined
> In file included from mod_apreq_access_test.c:64:
> /home/stas/apache.org/httpd-apreq-2/env/c-modules/apache_httpd_test.h:50:1:
> warning: this is the location of the previous definition
> mod_apreq_access_test.c:72:1: warning: "APACHE_HTTPD_TEST_COMMANDS" redefined
> /home/stas/apache.org/httpd-apreq-2/env/c-modules/apache_httpd_test.h:86:1:
> warning: this is the location of the previous definition
> mod_apreq_access_test.c:73:1: warning: "APACHE_HTTPD_TEST_PER_DIR_CREATE"
> redefined
> /home/stas/apache.org/httpd-apreq-2/env/c-modules/apache_httpd_test.h:74:1:
> warning: this is the location of the previous definition
This patch should fix; you may need to % make clean
to get the c-modules to recompile during % make test.
Index: env/c-modules/apreq_access_test/mod_apreq_access_test.c
===================================================================
RCS file: /home/cvs/httpd-apreq-2/env/c-modules/apreq_access_test/mod_apreq_access_test.c,v
retrieving revision 1.2
diff -u -r1.2 mod_apreq_access_test.c
--- env/c-modules/apreq_access_test/mod_apreq_access_test.c 11 Jul 2003 02:40:20 -0000 1.2
+++ env/c-modules/apreq_access_test/mod_apreq_access_test.c 17 Sep 2003 21:46:09 -0000
@@ -61,6 +61,10 @@
#endif
+#define APACHE_HTTPD_TEST_ACCESS_CHECKER apreq_access_checker
+#define APACHE_HTTPD_TEST_COMMANDS access_cmds
+#define APACHE_HTTPD_TEST_PER_DIR_CREATE create_access_config
+
#include "apache_httpd_test.h"
#include "apreq_params.h"
#include "apreq_env.h"
@@ -68,9 +72,6 @@
#include "apr_strings.h"
module AP_MODULE_DECLARE_DATA apreq_access_test_module;
-#define APACHE_HTTPD_TEST_ACCESS_CHECKER apreq_access_checker
-#define APACHE_HTTPD_TEST_COMMANDS access_cmds
-#define APACHE_HTTPD_TEST_PER_DIR_CREATE create_access_config
struct access_test_cfg {
apr_pool_t *pool;
--
Joe Schaefer