perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Apache::Constants don't map 1:1 into Apache::Const
Date Fri, 17 May 2002 08:25:50 GMT
Currently we have a problem with Constants in 1.x and 2.x which don't 
map 1:1, since in 2.0 some constants are gone, some are renamed. See the 
report below.

How should we deal with that? Currently Apache::compat only forwards the 
symbols to Apache::Const, so this doesn't always work.

Do we need to manually trap requests for the renamed and removed 
constants in Apache::compat and satisfy the caller?

-------- Original Message --------
Subject: compatibility problem
Date: Fri, 17 May 2002 16:43:32 +1000 (EST)
From: Jie Gao <>

Hi all,

I've been trying to get httpd-2.0.35 + mod_perl-1.99_01 work with backward


#! /usr/bin/perl
use lib '/usr/lib/perl5/site_perl/5.6.1/i386-linux/Apache2';
use strict;
use Apache::compat ();
use Apache2 ();
use My::AuthCookieHandler;

and this script won't run to finish with the error:

unknown group `response' at 
/usr/lib/perl5/site_perl/5.6.1/My/ line 6.
BEGIN failed--compilation aborted at 
/usr/lib/perl5/site_perl/5.6.1/My/ line 6.
Compilation failed in require at ./ line 6.
BEGIN failed--compilation aborted at ./ line 6.

And this is the line in question:

use Apache::Constants qw(:common :response M_GET M_POST AUTH_REQUIRED 

If I take out response, it croaks at "REDIRECT".

Any ideas why?




Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message