Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 87154 invoked from network); 2 Feb 2005 03:28:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Feb 2005 03:28:48 -0000 Received: (qmail 27218 invoked by uid 500); 2 Feb 2005 03:28:47 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 27200 invoked by uid 500); 2 Feb 2005 03:28:47 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 27187 invoked by uid 99); 2 Feb 2005 03:28:47 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.logilune.com (HELO mail.logilune.com) (195.80.154.36) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Feb 2005 19:28:45 -0800 Received: from [127.0.0.1] (localhost.logilune.com [127.0.0.1]) by mail.logilune.com (Postfix) with ESMTP id 86C211E1967; Wed, 2 Feb 2005 04:28:42 +0100 (CET) Message-ID: <420048E8.1040204@stason.org> Date: Tue, 01 Feb 2005 22:28:40 -0500 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: Dominique Quatravaux Cc: dev@perl.apache.org Subject: Re: [WISHLIST] Be able to troubleshoot config file with perl -cx as before References: <41FF99E2.60600@idealx.com> In-Reply-To: <41FF99E2.60600@idealx.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Dominique Quatravaux wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Dear Stas and fellow mod_perl maintainers, > > I would like to be able to do the "perl -cx"-on-the-Apache-config-file > trick described in the Eagle book ("Debugging sections" in > chapter 8, page 420 in my edition but 428 in some others according to > Google), but I run across the following problem: > > $ perl -e 'use strict; use Apache2; use Apache::compat;' > Bareword "Apache::ServerUtil::server_root" not allowed while "strict > subs" in use at /usr/local/lib/perl/5.6.1/Apache2/Apache/compat.pm > line 329. > BEGIN not safe after errors--compilation aborted at > /usr/local/lib/perl/5.6.1/Apache2/Apache/compat.pm line 412. > Compilation failed in require at -e line 1. > BEGIN failed--compilation aborted at -e line 1. > > And consequently perl -cx on my Apache configuration file does not > reliably syntax-check my > section. > > I am running mod_perl 1.999.20, I reckon everything else is irrelevant > to this particular problem. This is not going to work, since it requires a running mod_perl. I'm pretty sure the perl -cx worked in mp1 only in certain cases, where no mod_perl symbols were used. Try the modperl1 config where you use some Apache module and you will get the same problem. -- __________________________________________________________________ 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 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org