Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 27941 invoked from network); 4 Dec 2003 18:54:39 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Dec 2003 18:54:39 -0000 Received: (qmail 83818 invoked by uid 500); 4 Dec 2003 18:54:29 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 83803 invoked by uid 500); 4 Dec 2003 18:54:29 -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 83790 invoked from network); 4 Dec 2003 18:54:29 -0000 Received: from unknown (HELO mail.logilune.com) (195.154.174.52) by daedalus.apache.org with SMTP; 4 Dec 2003 18:54:29 -0000 Received: from stason.org (localhost.logilune.com [127.0.0.1]) by mail.logilune.com (Postfix) with ESMTP id BB7F37A1CC; Thu, 4 Dec 2003 19:54:31 +0100 (CET) Message-ID: <3FCF8423.30206@stason.org> Date: Thu, 04 Dec 2003 10:59:47 -0800 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: Enrico Sorcinelli Cc: dev@perl.apache.org Subject: Re: [MP2] failed to resolve handler `Apache::PerlSections' References: <20031204153205.5575d4de.e.sorcinelli@pisa.iol.it> In-Reply-To: <20031204153205.5575d4de.e.sorcinelli@pisa.iol.it> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Enrico Sorcinelli wrote: > Hi all, > > with this simple configuration (Apache 2.0.47 / mod_perl 1.9911): > > ... > LoadModule perl_module modules/mod_perl.so > PerlModule Apache2 > PerlModule Apache::Status > > use lib '/home/lib/perl'; > > ... > > I've this error (the server doesn't start at all): > > [Thu Dec 04 14:14:31 2003] [error] failed to resolve handler `Apache::PerlSections' > Syntax error on line 12 of /usr/local/apache-2.0.47/conf/mod_perl.conf: > handler Apache::PerlSections failed with status=500 > > The same directives work fine with until mp2 1.9910. > > Moreover, if I comment "PerlModule Apache::Status" line or I move it after first > section in httpd.conf file, the server starts. > > I don't think that this depend on Apache::Status because it's the same between > 1.9910 and 19911. Thank you Enrico for the report. The problem seems to be as following: Apache::Status somehow autovivifies Apache::PerlSections stash, while Apache/PerlSections.pm wasn't loaded yet. That's why preloading Apache::PerlSections solves the problem. Our code does not attempt to load packages whose stashes exist, which is obviously wrong. I'll post a patch soonish. I think instead of checking for the stash, we need to check %INC. __________________________________________________________________ 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