Subject: | Compilation fails with perl 5.21.x (related to Perl___notused) |
Compilation fails with perl 5.21.5 on a FreeBSD 9.2 system. On the same system mod_perl builds fine with 5.18.4 (and has only minor test failures):
cd "src/modules/perl" && make
ccache cc -I/usr/local/src/CPAN/build/mod_perl-2.0.8-O4McxP/src/modules/perl -I/usr/local/src/CPAN/build/mod_perl-2.0.8-O4McxP/xs -I/usr/local/include/apr-1 -I/usr/local/include/apr-1 -I/usr/include -I/usr/local/include -I/usr/local/include/db5 -I/usr/local/include/apache22 -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -I/usr/perl5.21.5p/lib/5.21.5/amd64-freebsd/CORE -DMOD_PERL -DMP_COMPAT_1X -O2 -pipe -DPIC -fPIC -c mod_perl.c && mv mod_perl.o mod_perl.lo
mod_perl.c: In function 'set_taint_var':
mod_perl.c:165: error: 'Perl___notused' redeclared as different kind of symbol
/usr/perl5.21.5p/lib/5.21.5/amd64-freebsd/CORE/inline.h:235: error: previous declaration of 'Perl___notused' was here
*** [mod_perl.lo] Error code 1
Stop in /usr/local/src/CPAN/build/mod_perl-2.0.8-O4McxP/src/modules/perl.
*** [modperl_lib] Error code 1