> Fred Moyer wrote: >>>> Fred Moyer wrote: >>>>> Greetings, >>>>> >>>>> Third time is the charm :) RC1 and RC2 were missing >>>>> t/conf/extra.conf.in from the MANIFEST. >>>> [...] >>>>> http://people.apache.org/~phred/Apache-Reload-0.10-RC3.tar.gz >>>> >>>> Fails all three tests here on WinXP/VC6 with perl-5.10.0, >>>> apache-1.3.39 and mod_perl-1.31 RC2 :-( >>> >>> Thanks for the spot Steve, I'll dig in and get this fixed. >> >> Here's the problem, the first line in t/conf/extra.last.conf.in is >> >> <IfModule mod_perl.c> >> >> And here is the unix vx linux relevant apache_test_config.pm section >> [1]. Notice how Win32 doesn't have mod_perl.c, hence the IfModule is >> false, and the location directives are not set. > > Ah, yes, I've seen this problem with <IfModule mod_perl.c> on Win32 > before. > > Isn't this list the list of compiled-in modules (as output by "apache > -l" (on Win32 at least)?). If so then mod_perl is missing because it > isn't "compiled-in": it is built as a DLL (.so) on Win32. Do you have a > statically-linked mod_perl in your Unix/Linux example? If so then do you > get exactly the same problem when linking dynamically instead?
I tried both static (1.3.39) and dynamic (2.0.4-dev) httpds, mod_perl.c shows up in httpd -l but not httpd2 -l. But mod_perl.c shows up in the list of modules in t/conf/apache_test_config.pm for both cases, just double checked again and verified it. >> I don't see a straightforward solution to this problem, if anyone has >> a suggestion please bring it forth. I can munge the Makefile.PL so >> that the tests aren't run if $O is Win32, but would rather have the >> tests run. > > In the past I've written httpd.conf files containing code like this: > > <IfDefine PERL> > LoadModule perl_module modules/mod_perl.so > </IfDefine> > <IfDefine PERL> > AddModule mod_perl.c > </IfDefine> > <IfDefine PERL> > # Anything mod_perl-specific here > </IfDefine> > > and then started the server with "-D PERL" if (and only if) I want > mod_perl, i.e. in the above arrangement you can treat <IfDefine PERL> > exactly like <IfModule mod_perl.c>, except that <IfDefine PERL> works. > Could anything like this be worked into it? Maybe add those top six lines to t/conf/extra.last.conf.in above the existing conf directives, remove the all.t and see if it the tests run? I just tried it here with *nix 1.3.39 static and tests passed. It would be great if this worked on your setup, I see a lot of modules where this could be used. >> >> [1] >> >> Win32 >> 'modules' => { >> 'mod_include.c' => 1, >> 'mod_asis.c' => 1, >> 'mod_env.c' => 1, >> 'mod_negotiation.c' => 1, >> 'http_core.c' => 1, >> 'mod_setenvif.c' => 1, >> 'mod_access.c' => 1, >> 'mod_dir.c' => 1, >> 'mod_isapi.c' => 1, >> 'mod_actions.c' => 1, >> 'mod_cgi.c' => 1, >> 'mod_so.c' => 1, >> 'mod_alias.c' => 1, >> 'mod_imap.c' => 1, >> 'mod_autoindex.c' => 1, >> 'mod_auth.c' => 1, >> 'mod_log_config.c' => 1, >> 'mod_mime.c' => 1, >> 'mod_userdir.c' => 1 >> >> *nix >> 'modules' => { >> 'mod_include.c' => 1, >> 'mod_asis.c' => 1, >> 'mod_env.c' => 1, >> 'mod_negotiation.c' => 1, >> 'http_core.c' => 1, >> 'mod_setenvif.c' => 1, >> 'mod_access.c' => 1, >> 'mod_dir.c' => 1, >> 'mod_cgi.c' => 1, >> 'mod_actions.c' => 1, >> 'mod_perl.c' => 1, >> 'mod_imap.c' => 1, >> 'mod_alias.c' => 1, >> 'mod_autoindex.c' => 1, >> 'mod_status.c' => 1, >> 'mod_auth.c' => 1, >> 'mod_log_config.c' => 1, >> 'mod_mime.c' => 1, >> 'mod_userdir.c' => 1 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]