You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Joe Schaefer <jo...@sunstarsys.com> on 2003/10/05 19:28:18 UTC
Re: [apreq-2] does not use apr-config --includes
On 06 Aug 2003, Eric Clark <ec...@zerohp.com> writes:
> Recently I checked out the cvs of apreq-2 and had trouble getting it
> to build. My apr header files do not live in the same location as the
> httpd header files, the build system needs to check apr-config
> --includes to find them.
This should be rectified in current cvs.
> The other thing I noticed is that since my httpd is built entirely
> using DSO's that the tests failed because the httpd.conf does not
> load mod_alias.
Stas, does this problem ring any bells?
--
Joe Schaefer
Re: [apreq-2] does not use apr-config --includes
Posted by Stas Bekman <st...@stason.org>.
Joe Schaefer wrote:
>>The other thing I noticed is that since my httpd is built entirely
>>using DSO's that the tests failed because the httpd.conf does not
>>load mod_alias.
it doesn't load mod_alias because it either can't find your system-wide
httpd.conf from which it inherits these settings), or because it doesn't
include it (which will make a perfect sense if you don't use Alias).
> Stas, does this problem ring any bells?
Yup, Alias is one of the last ones that misses <IfModule > around it, I'll
shortly commit the inlined fix.
Meanwhile you can fix that by fixing the autogenerated httpd.conf, which
doesn't use these aliases anyway:
t/TEST -conf
perl -pi -e 's|^Alias.*||' t/conf/httpd.conf
t/TEST
Index: Apache-Test/lib/Apache/TestConfig.pm
===================================================================
RCS file:
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfig.pm,v
retrieving revision 1.175
diff -u -r1.175 TestConfig.pm
--- Apache-Test/lib/Apache/TestConfig.pm 1 Oct 2003 13:45:23 -0000
1.175
+++ Apache-Test/lib/Apache/TestConfig.pm 6 Oct 2003 20:00:07 -0000
@@ -1315,10 +1315,12 @@
EOF
}
+ print $out "<IfModule mod_alias.c>\n";
for (keys %aliases) {
next unless $vars->{$aliases{$_}};
- print $out "Alias /getfiles-$_ $vars->{$aliases{$_}}\n";
+ print $out " Alias /getfiles-$_ $vars->{$aliases{$_}}\n";
}
+ print $out "</IfModule>\n";
print $out "\n";
__________________________________________________________________
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