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.

Aloha => Beau;


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to