You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Noel Burton-Krahn <no...@burton-krahn.com> on 2000/07/14 22:55:27 UTC

Apache::ASP: undefined *::handler if UniquePackages 1

I keep getting this error:

  1.Undefined subroutine
     &Apache::ASP::Compiles::_home_noel_public_html_faxpc_lib_global_asa::_home_noel_public_html_faxpc_htdocs_group_login_aspxDYN::handler
     called at /usr/lib/perl5/site_perl/5.005/Apache/ASP.pm line 1393. ,
     /usr/lib/perl5/site_perl/5.005/Apache/ASP.pm line 1395 

With Apache::ASP on my box:

    Apache-ASP-1.95
    mod_perl-1.24
    apache_1.3.12
    perl-5.005_03
    redhat-6.0

If I set 

    PerlSetVar UniquePackages 0

Then the error goes away.

Also, I notice that my Global variable does not actually get appended
to @INC.  

Anyone else had these problems?

--Noel


----------------------------------------------------------------------
Errors Output 

  1.Undefined subroutine
     &Apache::ASP::Compiles::_home_noel_public_html_faxpc_lib_global_asa::_home_noel_public_html_faxpc_htdocs_group_login_aspxDYN::handler
     called at /usr/lib/perl5/site_perl/5.005/Apache/ASP.pm line 1393. ,
     /usr/lib/perl5/site_perl/5.005/Apache/ASP.pm line 1395 

Debug Output 

  1.RUN ASP (v1.95) for /home/noel/public_html/faxpc/htdocs/group/login.asp 
  2.GlobalASA package Apache::ASP::Compiles::_home_noel_public_html_faxpc_lib_global_asa 
  3.compiling global.asa Apache::ASP::Compiles::_home_noel_public_html_faxpc_lib_global_asa
     _home_noel_public_html_faxpc_lib_global_asa - asp: Apache::ASP=HASH(0x820d024); compiled:
     HASH(0x836d630); exists: 1; id: _home_noel_public_html_faxpc_lib_global_asa; mtime: 962213323;
     package: Apache::ASP::Compiles::_home_noel_public_html_faxpc_lib_global_asa; 
  4.global.asa routines - Script_OnStart: 1; 
  5.opening lock file /tmp/noel-faxpc/server/internal.lock 
  6.opening lock file /tmp/noel-faxpc/server/application.lock 
  7.created $Application - 
  8.session id from cookie: 1025fa00817f71e2a16bf56cb217e131 
  9.refreshing 1025fa00817f71e2a16bf56cb217e131 with timeout 963608324 
 10.opening lock file /tmp/noel-faxpc/10/1025fa00817f71e2a16bf56cb217e131.lock 
 11.session not expired - time: 963607124; timeout: 963608296; 
 12.tieing session 1025fa00817f71e2a16bf56cb217e131 
 13.tied session - 
 14.updating LastSessionTimeout from 963608338 
 15.start time 
 16.Script_OnStart 
 17.executing Script_OnStart 
 18.tieing response package for STDOUT 
 19.executing _home_noel_public_html_faxpc_htdocs_group_login_aspxDYN::handler 
 20.Undefined subroutine
     &Apache::ASP::Compiles::_home_noel_public_html_faxpc_lib_global_asa::_home_noel_public_html_faxpc_htdocs_group_login_aspxDYN::handler
     called at /usr/lib/perl5/site_perl/5.005/Apache/ASP.pm line 1393. ,
     /usr/lib/perl5/site_perl/5.005/Apache/ASP.pm line 1395 
 21.Script_OnEnd 
 22.ASP Done Processing - asp: Apache::ASP=HASH(0x820d024); 

----------------------------------------------------------------------
# .htaccess
PerlSetVar AllowSessionState 1
PerlSetVar BufferingOn 1
PerlSetVar Debug -10
PerlSetVar DynamicIncludes 1
PerlSetVar Filter Off
PerlSetVar Global /home/noel/public_html/faxpc/lib
PerlSetVar MailErrorsTo noel@burton-krahn.com
PerlSetVar NoState 0
PerlSetVar ParanoidSession 0
PerlSetVar PodComments 1
PerlSetVar SessionSerialize 0
PerlSetVar SessionTimeout 20
PerlSetVar SoftRedirect 0
PerlSetVar StatINC 1
PerlSetVar StateDB SDBM_File
PerlSetVar StateDir /tmp/noel-faxpc
PerlSetVar StateManager 10
PerlSetVar UniquePackages 1

<Files *.asp>
  SetHandler perl-script
  PerlHandler Apache::ASP
</Files>