Philip M. Gollucci wrote:
The insertion of -Wdeclaration-after-statement breaks the build as the
following gcc version doesn't support it:
cc -I/home/stas/src/mod_perl-2.0.2/src/modules/perl
-I/home/stas/src/mod_perl-2.0.2/xs
-I/home/stas/httpd/prefork-2.0.55/include
-I/home/stas/httpd/prefork-2.0.55/include -I/usr/local/include
-I/home/stas/httpd/prefork-2.0.55/include -fno-strict-aliasing
-fno-delete-null-pointer-checks -pipe -I/usr/local/include
-I/usr/libdata/perl5/i386-openbsd/5.8.6/CORE -DMOD_PERL -Wall
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
-Werror -DAP_DEBUG -DAP_HAVE_DESIGNATED_INITIALIZER
-Wdeclaration-after-statement -DMP_COMPAT_1X -g -DMP_DEBUG -DMP_TRACE
-D_POSIX_THREADS d_perl.c && mv mod_perl.o mod_perl.lo
cc1: error: unrecognized option `-Wdeclaration-after-stat
*** Error code 1
gcc -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.7/3.3.5/specs
Configured with:
Thread model: single
gcc version 3.3.5 (propolice)
Not sure what to do about it, the mp2 build code assumes that any gcc
above 3.3.2 should have it:
if ($self->has_gcc_version('3.3.2') &&
$ccopts !~ /declaration-after-statement/) {
debug "Adding -Wdeclaration-after-statement to ccopts";
$ccopts .= " -Wdeclaration-after-statement";
}
}
D'oh, thats relatively new things too. As its the only case I've heard
of, I suggest we IF() protect it. IS gcc4.0 on OpenBsd yet -- might be
kin 3.8 ?
dunno, I'm not really an OpenBSD user, I just had to build mp2 there for
some testing.
(and there are 3 tests that fail in mp2.0.2, but I have no time at the
moment to debug those)
--
_____________________________________________________________
Stas Bekman mailto:[EMAIL PROTECTED] http://stason.org/
MailChannels: Assured Messaging(TM) http://mailchannels.com/
The "Practical mod_perl" book http://modperlbook.org/
http://perl.apache.org/ http://perl.org/ http://logilune.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]