[error] failed to resolve handler `TestModules::cgi'
Please email solutions if possible. I apologize if attaching the file causes any inconvenience. __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ mybugreport Description: mybugreport - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [error] failed to resolve handler `TestModules::cgi'
Samip Mehra wrote: Please email solutions if possible. I apologize if attaching the file causes any inconvenience. In the future please inline your bug-report so it's easy to quote it in reply. > I have installed Apache 2.0.48 on Red Hat Linux 9.0. I have installed all other needed modules but am having problems > with mod_perl-1.99_11. I am using perl5.8.0 since I dont expect to use threads.pm. I think my problem is not having the > CGI.pm 3.01 and the Compress::Zlib 1.09, but shouldn't it skip these tests. Please help. > > This is what I get when I do a "make test" > > FAILED test 5 > Failed 1/6 tests, 83.33% okay > Failed Test Stat Wstat Total Fail Failed List of Failed > --- > modules/cgi.t 55 100.00% 1-5 > modules/cgiupload.t013 22 100.00% 1-2 > modules/include.t 61 16.67% 5 They actually require CGI 2.93, please try again with the latest cvs version which fixes the requirement. You can get from here: http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution If you still have the same problems, please run: rm t/logs/error.log t/TEST -v modules/cgi.t modules/cgiupload.t modules/include.t and post here the console output and the contents of t/logs/error_log Thanks. __ Stas BekmanJAm_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]
[mp2] not being able to shutdown 'redefined' warnings in PerlRun
When running:
modperl-2.0/ModPerl-Registry> t/TEST perlrun_require
I get
Subroutine whatever redefined at .../t/cgi-bin/lib.pl line 2.
warnings. I know why do we get this warning, but I fail to shut it down by
adding: no warnings 'redefine' in t/cgi-bin/perlrun_require.pl:
Index: t/cgi-bin/perlrun_require.pl
===
RCS file: /home/cvs/modperl-2.0/ModPerl-Registry/t/cgi-bin/perlrun_require.pl,v
retrieving revision 1.1
diff -u -r1.1 perlrun_require.pl
--- t/cgi-bin/perlrun_require.pl6 Jan 2003 10:42:38 - 1.1
+++ t/cgi-bin/perlrun_require.pl19 Dec 2003 02:12:08 -
@@ -6,7 +6,11 @@
my $vars = Apache::Test::config()->{vars};
my $require = catfile $vars->{serverroot}, 'cgi-bin', 'lib.pl';
-require $require;
+# ModPerl::PerlRun resets %INC, after compiling the script
+{
+no warnings 'redefine';
+require $require;
+}
print "Content-type: text/plain\n\n";
it still warns. Only if I add this directive to the required file the warning
disappears:
Index: t/cgi-bin/lib.pl
===
RCS file: /home/cvs/modperl-2.0/ModPerl-Registry/t/cgi-bin/lib.pl,v
retrieving revision 1.1
diff -u -r1.1 lib.pl
--- t/cgi-bin/lib.pl6 Jan 2003 10:42:38 - 1.1
+++ t/cgi-bin/lib.pl19 Dec 2003 02:13:58 -
@@ -1,2 +1,3 @@
-sub whatever { return 1;}
+no warnings 'redefine';
+sub whatever { return 1; }
1;
something weird is going on.
I'd have thought that perl may have decided this is a constant sub, but it's
not (no () proto) and warning doesn't say it's a constant... Hints?
__
Stas BekmanJAm_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]
