Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Nov 2005 21:17:32 -0800
From:      Brandon Fosdick <bfoz@bfoz.net>
To:        "Jack L." <xxjack12xx@gmail.com>
Cc:        ports@freebsd.org
Subject:   Re: www/apache2 build error on 6.0-S
Message-ID:  <437C126C.9030300@bfoz.net>
In-Reply-To: <ab581e310511162019r30233c76hcbfc3f1a849c751d@mail.gmail.com>
References:  <437C0278.6080906@bfoz.net> <ab581e310511162019r30233c76hcbfc3f1a849c751d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
It built fine on an amd64 machine to, but that's the only one I've gotten it to work on so far. I've completely rebuilt the sempron box twice now and the problem won't go away.

It seems that the problem traces to http_config.h. Specifically there are two definitions of AP_INIT_TAKE1 and friends, controlled by a #if defined(AP_HAVE_DESIGNATED_INITIALIZER). Removing the first definition allows it to continue building. Although at this point I have no idea if there are any side effects of doing so. Nor do I know where AP_HAVE_DESIGNATED_INITIALIZER comes from.


Jack L. wrote:
> Hmm... It compiled just fine on my 6.0 Intel 3.2ghz i386.
> 
> On 11/16/05, *Brandon Fosdick* <bfoz@bfoz.net <mailto:bfoz@bfoz.net>>
> wrote:
> 
>     I originally send this to apache@ but didn't get a reply. Since then
>     I've rebuilt the box in question and I'm still getting the same
>     build error. Has anyone else seen this?
> 
>     BTW, the box is 6.0-S on a Sempron 3100+.
> 
>     -------- Original Message --------
>     Subject: www/apache20 on 6.0-S
>     Date: Sun, 06 Nov 2005 17:18:10 -0800
>     From: Brandon Fosdick < bfoz@bfoz.net <mailto:bfoz@bfoz.net>>
>     To: apache@FreeBSD.org <mailto:apache@FreeBSD.org>
> 
>     I'm trying to build www/apache20 on a 6.0 box (updated from 5.4) and
>     the build is failing with the errors below. Anybody else seeing this?
> 
>     # make clean -DWITHOUT_IPV6 install clean
>     ...
>     Making all in prefork
>     /usr/tmp/usr/ports/www/apache2/work/httpd-2.0.55/srclib/apr/libtool
>     --silent --mode=compile cc    -O2 -fno-strict-aliasing -pipe
>     -march=athlon-xp  -D_REENTRANT -D_THREAD_SAFE
>     -DAP_HAVE_DESIGNATED_INITIALIZER  
>     -I/usr/tmp/usr/ports/www/apache2/work/httpd-
>     2.0.55/srclib/apr/include
>     -I/usr/tmp/usr/ports/www/apache2/work/httpd-2.0.55/srclib/apr-util/include
>     -I/usr/local/include -I.
>     -I/usr/tmp/usr/ports/www/apache2/work/httpd-2.0.55/os/unix
>     -I/usr/tmp/usr/ports/www/apache2/work/httpd-
>     2.0.55/server/mpm/prefork
>     -I/usr/tmp/usr/ports/www/apache2/work/httpd-2.0.55/modules/http
>     -I/usr/tmp/usr/ports/www/apache2/work/httpd-2.0.55/modules/filters
>     -I/usr/tmp/usr/ports/www/apache2/work/httpd-2.0.55/modules/proxy
>     -I/usr/tmp/usr/ports/www/apache2/work/httpd- 2.0.55/include
>     -I/usr/tmp/usr/ports/www/apache2/work/httpd-2.0.55/modules/generators
>     -I/usr/include/openssl
>     -I/usr/tmp/usr/ports/www/apache2/work/httpd-2.0.55/modules/dav/main
>     -prefer-non-pic -static -c prefork.c && touch prefork.lo
>     prefork.c:1332: error: initializer element is not constant
>     prefork.c:1332: error: (near initialization for `prefork_cmds[3].name')
>     prefork.c:1332: warning: initialization from incompatible pointer type
>     prefork.c:1332: error: extra brace group at end of initializer
>     prefork.c:1332: error: (near initialization for `prefork_cmds[3].func')
>     prefork.c:1332: warning: excess elements in union initializer
>     prefork.c:1332: warning: (near initialization for
>     `prefork_cmds[3].func')
>     prefork.c:1332: warning: excess elements in union initializer
>     prefork.c:1332: warning: (near initialization for
>     `prefork_cmds[3].func')
>     prefork.c:1332: warning: excess elements in union initializer
>     prefork.c:1332: warning: (near initialization for
>     `prefork_cmds[3].func')
>     prefork.c:1332: warning: excess elements in union initializer
>     prefork.c:1332: warning: (near initialization for
>     `prefork_cmds[3].func')
>     prefork.c:1332: warning: excess elements in union initializer
>     prefork.c:1332: warning: (near initialization for
>     `prefork_cmds[3].func')
>     prefork.c:1332: error: initializer element is not constant
>     prefork.c:1332: error: (near initialization for `prefork_cmds[3].func')
>     prefork.c:1332: warning: braces around scalar initializer
>     prefork.c:1332: warning: (near initialization for
>     `prefork_cmds[3].cmd_data')
>     prefork.c:1332: warning: braces around scalar initializer
>     ...
> 
>     the same errors are repeated for the next 11 lines of prefork.c
> 
>     Here are the relevant lines of prefork.c. I don't see anything that
>     jumps out.
> 
>     static const command_rec prefork_cmds[] = {
>     UNIX_DAEMON_COMMANDS,
>     LISTEN_COMMANDS,
>     AP_INIT_TAKE1("StartServers", set_daemons_to_start, NULL, RSRC_CONF,
>                   "Number of child processes launched at server startup"),
>     AP_INIT_TAKE1("MinSpareServers", set_min_free_servers, NULL, RSRC_CONF,
>                   "Minimum number of idle children, to handle request
>     spikes"),
>     AP_INIT_TAKE1("MaxSpareServers", set_max_free_servers, NULL, RSRC_CONF,
>                   "Maximum number of idle children"),
>     AP_INIT_TAKE1("MaxClients", set_max_clients, NULL, RSRC_CONF,
>                   "Maximum number of children alive at the same time"),
>     AP_INIT_TAKE1("ServerLimit", set_server_limit, NULL, RSRC_CONF,
>                   "Maximum value of MaxClients for this run of Apache"),
>     { NULL }
>     };
> 
>     _______________________________________________
>     freebsd-ports@freebsd.org <mailto:freebsd-ports@freebsd.org> mailing
>     list
>     http://lists.freebsd.org/mailman/listinfo/freebsd-ports
>     To unsubscribe, send any mail to
>     "freebsd-ports-unsubscribe@freebsd.org
>     <mailto:freebsd-ports-unsubscribe@freebsd.org>"
> 
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?437C126C.9030300>