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 <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]

Hi all,

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

MY startupl.pl:

#! /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;
1;

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

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

And this is the line in question:

use Apache::Constants qw(:common :response M_GET M_POST AUTH_REQUIRED 
REDIRECT);

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

Any ideas why?

Thanks,



Jie

-- 


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to