torsdag 13 januari 2005 01.56 skrev Stas Bekman:
> Hi Oden,

Hi Stas.

> > I have been struggling for several hours now trying to understand how
> > Apache-Test is supposed to work with mod_perl-2.0.0-RC3, apache-2.0.52
> > and Mandrakelinux. I'm maintaining these softwares in Mandrakelinux.
> >
> > Apache-Test seems to think it's a apache-1.x environment passing -D
> > APACHE1 and for example using "Port" in the generated config file. Even
> > though I have constructed a httpd.conf.in file it still wants to put Port
> > in the generated file. I'm very confused..., and no perl hacker.
>
> don't touch httpd.conf. httpd.conf.in will be ignored. if you want to add
> more config it has to be named differently. Please see:

Oh, I was reading Apache-Test/README and the "Cheat List" section. I says this 
was the thing to do. I first tried to put my httpd.conf.in file in 
Apache-Test/t/conf/ but that was ignored. Then I put it in t/conf/ and that 
actually worked better until I got "Port" in the generated file for some 
reason...

> http://perl.apache.org/docs/general/testing/testing.html#Extending_Configur
>ation_Setup I guess it should say that people must not create httpd.conf.in.
>
> please explain in detail (show the commands) what are doing, since I don't
> understand how did you get A-T think it's running apache1.

Nothing fancy, make is (excuse the rpm stuff):

%{__perl} Makefile.PL \
%if %{build_debug}
    MP_MAINTAINER=1 \
    MP_TRACE=1 \
    MP_CCOPTS="$(%{apxs} -q CFLAGS) -g3 -Werror" \
%else
    MP_CCOPTS="$(%{apxs} -q CFLAGS)" \
%endif
    MP_APXS=%{apxs} \
    MP_APR_CONFIG=%{_bindir}/apr-config \
    MP_INST_APACHE2=1 \
    INSTALLDIRS=vendor </dev/null

"make test" gives:

[...]

/usr/bin/perl5.8.5 -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c 
unlimited; /usr/bin/perl5.8.5 /home/oden/RPM/BUILD/mod_perl-2.0.0-RC3/t/TEST 
-clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= 
APACHE_TEST_APXS= \
/usr/bin/perl5.8.5 -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c 
unlimited; /usr/bin/perl5.8.5 /home/oden/RPM/BUILD/mod_perl-2.0.0-RC3/t/TEST 
-bugreport -verbose=0
[  error] Found mod_perl/1.999020, but it can't be used with 
Apache-PREFORK-AdvancedExtranetServer/2.0.52
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
make: *** [run_tests] Error 1

Here I suspected it didn't like my funny server string, so I commented lines 
61-65 in the Apache-Test/lib/Apache/TestRunPerl.pm file and that gives:

[...]

/usr/bin/perl5.8.5 -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c 
unlimited; /usr/bin/perl5.8.5 /home/oden/RPM/BUILD/mod_perl-2.0.0-RC3/t/TEST 
-clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= 
APACHE_TEST_APXS= \
/usr/bin/perl5.8.5 -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c 
unlimited; /usr/bin/perl5.8.5 /home/oden/RPM/BUILD/mod_perl-2.0.0-RC3/t/TEST 
-bugreport -verbose=0
/usr/sbin/httpd2  -d /home/oden/RPM/BUILD/mod_perl-2.0.0-RC3/t 
-f /home/oden/RPM/BUILD/mod_perl-2.0.0-RC3/t/conf/httpd.conf -D APACHE1 -D 
PERL_USEITHREADS
using Apache-PREFORK-AdvancedExtranetServer/2.0.52 (prefork MPM)

waiting 120 seconds for server to start: .Syntax error on line 27 
of /home/oden/RPM/BUILD/mod_perl-2.0.0-RC3/t/conf/httpd.conf:
Port was replaced with Listen in Apache 2.0
[  error]
server has died with status 255 (t/logs/error_log wasn't created, start the 
server in the debug mode)
make: *** [run_tests] Error 143

> A-T is bundled with modperl and it's the one that should be run. Not any
> previously installed A-T.

The system is clean except for parts of mod_perl 1.x that seems to be a 
requisite to get this mod_perl pick up missing pieces. Here's what's 
installed:

$ rpm -ql mod_perl-common-1.3.31_1.29-3mdk | grep "/usr/lib/"
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Connection.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Constants
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Constants.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Constants/Exports.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Debug.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/ExtUtils.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/FakeRequest.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/File.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Include.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Leak.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Log.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/ModuleConfig.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/MyConfig.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Opcode.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Options.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/PerlRun.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/PerlRunXS.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/PerlSections.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/RedirectLogFix.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Registry.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/RegistryBB.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/RegistryLoader.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/RegistryNG.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Resource.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/SIG.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Server.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/SizeLimit.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/StatINC.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Status.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Symbol.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Symdump.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Table.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/URI.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/Util.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/httpd_conf.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/src.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Apache/testold.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Bundle
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Bundle/Apache.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/Apache/Leak/Leak.so
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/Apache/Symbol/Symbol.so
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/Apache/mod_perl.exp
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/Apache/typemap
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/cgi_to_mod_perl.pod
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/mod_perl.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/mod_perl.pod
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/mod_perl_cvs.pod
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/mod_perl_hooks.pm
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/mod_perl_hooks.pm.PL
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/mod_perl_method_handlers.pod
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/mod_perl_traps.pod
/usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/mod_perl_tuning.pod

Oh, I get the same errors on Intel machines too. And the same error if I 
uninstall the mod_perl 1.x stuff. Additionally I get the same errors on 
Mandrakelinux 10.0, 10.1 as well as "Cooker" (the development branch of 
Mandrakelinux).

Thanks in advance.

-- 
Regards // Oden Eriksson

Reply via email to