Hi!

I am in the midst of porting Apache::AuthenCache to mp2, and am having some
issues getting any method from Apache::Module.

I have downloaded the newest CVS snapshot:

modperl-2.0_20040819104308.tar.gz

Am running:

Apache/2.0.50
mod_perl/1.99_15-dev
Perl/v5.8.4

If I run MethodLookup, it correctly displays the methods available from the
module:

speeves3:/usr/local/tarball/modperl-2.0# perl -MApache2 -MModPerl::MethodLookup
-e print_module Apache::Module

Module 'Apache::Module' contains the following XS methods:

Method               Invoked on object type
----------------------------------------------------------------
cmds                 Apache::Module
find_linked_module   Apache::Module
get_config           Apache::Module
loaded               Apache::Module
minor_version        Apache::Module
module_index         Apache::Module
name                 Apache::Module
next                 Apache::Module
remove_loaded_module Apache::Module
top_module           Apache::Module
version              Apache::Module
----------------------------------------------------------------

But, when I run make test I get:

Undefined subroutine &Apache::Module::loaded called at
blib/lib/Apache/AuthenCache.pm line 476.

I have found that various docs show different syntax for the new
Apache::Module::loaded, so I tried Apache::Module->loaded as well, which throws
a different error:

Can't locate object method "loaded" via package "Apache::Module"

I am using:

use Apache::Module;

if (Apache::Module::loaded('Apache::Status')) {
#  $r->log->debug("status: launching menu");
  Apache::Status->menu_item('AuthenCache' => 'AuthenCache Menu Item',
                            \&status_menu);
}

How do I go about debugging this thing?

thanks,

--
Shannon Eric Peevey
President - EriKin Corporation
[EMAIL PROTECTED]
(940) 391-6777
http://www.erikin.com

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to