You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by jo...@philips.com on 2003/02/14 09:20:40 UTC

[Question] Prototype Mismatch for Base64 under RunPerl

OS: Windows2000
Apache: 1.3.27
ModPerl: 1.27_01-dev

I have a script that ran perfectly well when not run under ModPerl but 
have recently tried to run it under modperl using the RunPerl module. It 
still seems to run OK, however my error log now seems to being filled with 
the following error messages ...

Prototype mismatch: sub 
Apache::ROOT::MSS_2dcgi::documents_2ecgi::encode_base64 vs ($;$) at 
c:/NMS/Perl/lib/Exporter.pm line 57.
Prototype mismatch: sub 
Apache::ROOT::MSS_2dcgi::documents_2ecgi::decode_base64 vs ($) at 
c:/NMS/Perl/lib/Exporter.pm line 57.

The errors are connected with the MIME::Base64 module when it defines the 
external subroutine names. The relevant section of my conf file is ...

Alias /MSS-cgi/        "C:/NMS/MSSWeb/cgi-bin/"
Alias /MSS-js/         "C:/NMS/MSSWeb/includes/"
Alias /MSS-images/     "C:/NMS/MSSWeb/images/"

<Location "/MSS-cgi"> 
AllowOverride None
Order allow,deny
Allow from all
SetHandler perl-script
PerlHandler Apache::PerlRun
Options +ExecCGI
PerlSendHeader On
</Location>

I've searched all potential areas on the net with no success. Can anyone 
here assist ?

John Everitt

Re: [Question] Prototype Mismatch for Base64 under RunPerl

Posted by Stas Bekman <st...@stason.org>.
john.everitt@philips.com wrote:
> 
> OS: Windows2000
> Apache: 1.3.27
> ModPerl: 1.27_01-dev
> 
> I have a script that ran perfectly well when not run under ModPerl but 
> have recently tried to run it under modperl using the RunPerl module. It 
> still seems to run OK, however my error log now seems to being filled 
> with the following error messages ...
> 
> Prototype mismatch: sub 
> Apache::ROOT::MSS_2dcgi::documents_2ecgi::encode_base64 vs ($;$) at 
> c:/NMS/Perl/lib/Exporter.pm line 57.
> Prototype mismatch: sub 
> Apache::ROOT::MSS_2dcgi::documents_2ecgi::decode_base64 vs ($) at 
> c:/NMS/Perl/lib/Exporter.pm line 57.
> 
> The errors are connected with the MIME::Base64 module when it defines 
> the external subroutine names. The relevant section of my conf file is ...
> 
> Alias /MSS-cgi/        "C:/NMS/MSSWeb/cgi-bin/"
> Alias /MSS-js/         "C:/NMS/MSSWeb/includes/"
> Alias /MSS-images/     "C:/NMS/MSSWeb/images/"
> 
> <Location "/MSS-cgi">
> AllowOverride None
> Order allow,deny
> Allow from all
> SetHandler perl-script
> PerlHandler Apache::PerlRun
> Options +ExecCGI
> PerlSendHeader On
> </Location>
> 
> I've searched all potential areas on the net with no success. Can anyone 
> here assist ?

While working on the potential areas you must have missed some real resources ;)

Usually the search path is simple:

1. perl.apache.org/docs/
2. http://perl.apache.org/maillist/modperl.html#Searchable_Archives

failing to find anything at [1], I went to [2] and here you go:
http://marc.theaimsgroup.com/?l=apache-modperl&w=2&r=1&s=Prototype+mismatch&q=b

In particular this reply from Perrin seems to be most helpful:
http://marc.theaimsgroup.com/?l=apache-modperl&m=100515176231857&w=2
And since you haven't posted the information we ask for:
http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems
I'm guessing that you are using perl 5.6.0 which may be the reason for the 
problem.

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