Return-Path: X-Original-To: apmail-perl-modperl-cvs-archive@www.apache.org Delivered-To: apmail-perl-modperl-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 13EDA11D33 for ; Wed, 13 Aug 2014 13:13:59 +0000 (UTC) Received: (qmail 79811 invoked by uid 500); 13 Aug 2014 13:13:58 -0000 Delivered-To: apmail-perl-modperl-cvs-archive@perl.apache.org Received: (qmail 79780 invoked by uid 500); 13 Aug 2014 13:13:58 -0000 Mailing-List: contact modperl-cvs-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@perl.apache.org List-Id: Delivered-To: mailing list modperl-cvs@perl.apache.org Received: (qmail 79766 invoked by uid 99); 13 Aug 2014 13:13:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2014 13:13:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2014 13:13:36 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B0BA72388831; Wed, 13 Aug 2014 13:13:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1617727 - in /perl/modperl/trunk/xs/APR: Const/Makefile.PL aprext/Makefile.PL aprext/modperl_dummy.c Date: Wed, 13 Aug 2014 13:13:34 -0000 To: modperl-cvs@perl.apache.org From: stevehay@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140813131334.B0BA72388831@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: stevehay Date: Wed Aug 13 13:13:34 2014 New Revision: 1617727 URL: http://svn.apache.org/r1617727 Log: Simplify the avoidance of perl_module in places where it isn't (really) defined Revision 1617722 pointed out an easier way to achieve what was done by revision 1502392. (Unfortunately, modperl_dummy.c is currently still required for the three other symbols that it provides, added by revision 1538006.) Modified: perl/modperl/trunk/xs/APR/Const/Makefile.PL perl/modperl/trunk/xs/APR/aprext/Makefile.PL perl/modperl/trunk/xs/APR/aprext/modperl_dummy.c Modified: perl/modperl/trunk/xs/APR/Const/Makefile.PL URL: http://svn.apache.org/viewvc/perl/modperl/trunk/xs/APR/Const/Makefile.PL?rev=1617727&r1=1617726&r2=1617727&view=diff ============================================================================== --- perl/modperl/trunk/xs/APR/Const/Makefile.PL (original) +++ perl/modperl/trunk/xs/APR/Const/Makefile.PL Wed Aug 13 13:13:34 2014 @@ -1,7 +1,15 @@ use lib qw(../lib); use ModPerl::BuildMM (); +use Apache2::Build; + +my $build = Apache2::Build->build_config(); +my $ccopts = $build->ccopts; + +# avoid referencing &perl_module outside of mod_perl +$ccopts .= ' -DMP_IN_XS'; ModPerl::BuildMM::WriteMakefile( NAME => 'APR::Const', VERSION_FROM => 'Const.pm', + CCFLAGS => $ccopts, ); Modified: perl/modperl/trunk/xs/APR/aprext/Makefile.PL URL: http://svn.apache.org/viewvc/perl/modperl/trunk/xs/APR/aprext/Makefile.PL?rev=1617727&r1=1617726&r2=1617727&view=diff ============================================================================== --- perl/modperl/trunk/xs/APR/aprext/Makefile.PL (original) +++ perl/modperl/trunk/xs/APR/aprext/Makefile.PL Wed Aug 13 13:13:34 2014 @@ -33,6 +33,13 @@ my %args = (NAME => 'lib' . $bu clean => { FILES => "@clean" }, ); +my $ccopts = $build->ccopts; + +# avoid referencing &perl_module outside of mod_perl +$ccopts .= ' -DMP_IN_XS'; + +$args{CCFLAGS} = $ccopts; + ModPerl::BuildMM::WriteMakefile(%args); # avoid redefined warnings from imported postamble symbol from Modified: perl/modperl/trunk/xs/APR/aprext/modperl_dummy.c URL: http://svn.apache.org/viewvc/perl/modperl/trunk/xs/APR/aprext/modperl_dummy.c?rev=1617727&r1=1617726&r2=1617727&view=diff ============================================================================== --- perl/modperl/trunk/xs/APR/aprext/modperl_dummy.c (original) +++ perl/modperl/trunk/xs/APR/aprext/modperl_dummy.c Wed Aug 13 13:13:34 2014 @@ -16,21 +16,6 @@ #include "mod_perl.h" -/* FIXME: To define extern perl_module to something so libaprext.lib can be - * linked without error when building against httpd-2.4+. (The symbol is - * referenced by modperl_apache_compat.h for httpd-2.4+, so must be defined - * somewhere in that case.) - */ -module AP_MODULE_DECLARE_DATA perl_module = { - STANDARD20_MODULE_STUFF, - NULL, /* dir config creater */ - NULL, /* dir merger --- default is to override */ - NULL, /* server config */ - NULL, /* merge server config */ - NULL, /* table of config file commands */ - NULL, /* register hooks */ -}; - /* FIXME: These functions are called from modperl_trace() in libaprext.lib * but are normally defined in mod_perl.c which can't be included. */