On Tuesday 06 April 2004 09:27 pm, Stas Bekman wrote:
Beau E. Cox wrote:
So it's not linking against libperl.so, which probably means that it relies on mod_perl to load it. But I'm not sure whether your swapping test was right. The thing is: 'make test' overwrites t/conf/httpd.conf after you change it. So you need to do the following:
t/TEST -conf # now change t/conf/httpd.conf to swap the files order t/TEST
That's would be an equivalent of running 'make test' in the top level directory, besides ModPerl-Registry. So once you verify this we will find some sort of solution to pull mod_perl.so first.
Yes, you are correct sir! After following the above steps, 'make test' runs fine.
OK, I'll try to make Apache-Test include mod_perl first, may be tomorrow. Unless someone beats me to it.
Well, here is my two bits:
--- 2.0/src/modperl2/modperl-2.0/Apache-Test/lib/Apache/TestRunPerl.pm
2004-03-30 22:35:48.000000000 -1000
+++ 2.1/src/modperl2/modperl-2.0/Apache-Test/lib/Apache/TestRunPerl.pm
2004-04-07 04:01:11.240841008 -1000
@@ -35,6 +35,7 @@
# Apache::TestConfigPerl already configures mod_perl.so
Apache::TestConfig::autoconfig_skip_module_add('mod_perl.c');
+ Apache::TestConfig::autoconfig_skip_module_add('Embperl.c');
}
sub configure_modperl {
As you can see, I took the _easy_ way out. I could not figure out how to force mod_perl to be loaded first, so I just forced Apache::Test to skip loading Embperl.
Why this aproach is bad:
1) it's a q&d. 2) only addresses Embperl 3) posted by a notorious blow-hard wise-a**
Why this appreach is good:
1) it works 2) it's easy and simple 3) while only addressing Embperl, are there any others to worry about? 4) precludes addressing side effects, if any, of loading mod_perl first.
Nuh, that's again a workaround. I've committed a fix that makes sure that mod_perl.so is always loaded first. Please give a try to the cvs version of Apache-Test. Thanks.
__________________________________________________________________ Stas Bekman JAm_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]