You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Struan Donald <st...@365.co.uk> on 2000/09/04 20:09:37 UTC

Can't locate object method "can_stack_handlers" via package "Apache"

Hi,

the problem i'm having is that i'm trying to use a module with the
following code in:

if(Apache->can_stack_handlers) {
        Apache->push_handlers(PerlChildInitHandler => sub {
                for my $aref (@ChildConnect) {
                        shift @$aref;
                        Apache::Sybase::Simple->connect(@$aref);
                }
        });
}

it's being run in loaded in startup.pl which causes apache to die on
startup without any errors and when i run the startup,pl on the
command line i get:

Can't locate object method "can_stack_handlers" via package "Apache"
at /usr/lib/perl5/site_perl/5.005/Apache/Sybase/Simple.pm line 22.
BEGIN failed--compilation aborted at startup.pl line 3.

startup.pl consists of:

use lib qw(/local/0/site/perl);

use Apache::Sybase::Simple; 

Apache::Sybase::Simple->connect_on_init("user", "pass", "server"); 

1;

It's running on RedHat 6.2 with the RedHat rpm of Apache 1.3.12 and
mod_perl 1.24 which was compiled with apxs just in case it was a weird
issue with the RedHat rpm of mod_perl. Aside from the APXS options the
only other compile option was EVERYTHING=1 so stacked handlers are
compiled in.

So, what am i missing?

thanks

struan
-- 
Struan Donald
mailto:struan@365.co.uk
Code Flunky, 365 Plc.
http://www.365corp.com/