You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by jo...@porsche.co.at on 2004/09/08 11:32:35 UTC
modperl 1.99_1, Apache 2.0.50 - make test failure
Hi,
I'm new to this list and trying to compile modperl for Apache2.
(I've done this some time ago for modperl 1.26 and Apache 1.3.22.)
I'm using Perl 5.8.5 under AIX 4.3.3. My compiler is vac 5.0.2.8.
Everything compiles well and Apache2 is running wonderful on it's own.
I've done the following for modperl:
$> perl Makefile.PL MP_APXS=/www/apache2/bin/apxs MP_USE_DSO=1
MP_INST_APACHE2=1
$> make
$> make test
And here is the first error:
"make test" produces this output at the end:
==============================================================cut here
==========================================
usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /build/perl/mod_perl-1.99_16/t/TEST
-clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER=
APACHE_TEST_APXS= \
/usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /build/perl/mod_perl-1.99_16/t/TEST
-bugreport -verbose=0
/www/apache2/bin/httpd -d /build/perl/mod_perl-1.99_16/t -f
/build/perl/mod_perl-1.99_16/t/conf/httpd.conf -D APACHE2
using Apache/2.0.50 (prefork MPM)
waiting 120 seconds for server to start: ......[Wed Sep 08 10:50:44 2004]
[info] 26 Apache:: modules loaded
[Wed Sep 08 10:50:44 2004] [info] 7 APR:: modules loaded
[Wed Sep 08 10:50:44 2004] [info] base server + 20 vhosts ready to run
tests
....................................................................................................................
waiting 120 seconds for server to start: not ok
[ error] giving up after 121 secs. If you think that your system
is slow or overloaded try again with a longer timeout value.
by setting the environment variable APACHE_TEST_STARTUP_TIMEOUT
to a high value (e.g. 420) and repeat the last command.
[ error] server failed to start! (please examine t/logs/error_log)
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
make: *** [run_tests] Error 1
==============================================================cut here
==========================================
And in the error_log is only one line:
END in modperl_extra.pl, pid=19306
What shall I do now?
Does anyone have the same problem?
I've tried to run the command with strace, but I think this works different
under AIX,
because it won't start, when I say:
strace /www/apache2/bin/httpd -d /build/perl/mod_perl-1.99_16/t -f
/build/perl/mod_perl-1.99_16/t/conf/httpd.conf -D APACHE2 -DONE_PROCESS
-DNO_DETATCH
It complains: usage: strace [mid sid level] ...
I've never done anything with strace so far.
Is there anybody out there who can help me?
TIA, best regards,
Johannes
======================
Johannes Grumböck
Porsche Informatik GmbH
Handelszentrum 7
A-5101 Bergheim
Tel.: +43 662 4670 6323
Fax: +43 662 4670 16323
--
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
Re: [mp2] Setting correct charset / content encoding for request
Posted by Stas Bekman <st...@stason.org>.
Chris Jacobson wrote:
> Hello! Let me get the system specs out of the way first...
>
> Apache: 2.0.50
> mod_perl: 1.99_16
> Apreq2: 2.04-dev
> Perl: 5.8.5
>
> I am attempting to set the charset value in the response headers to
> 'utf8', but I can't seem to get it to drop the 'iso-8859-1' value for
> some reason.
>
> I began with the following code: (Assuming $ContentType = "text/html")
>
> $r->content_type("$ContentType; charset=utf-8");
> $r->print($Request);
>
> And the response headers look like this:
>
> Date: Wed, 08 Sep 2004 15:29:56 GMT
> Server: Apache/2.0.50 (Unix) mod_perl/1.99_16 Perl/v5.8.5
> Content-Type: text/html; charset=ISO-8859-1
>
>
> Then I changed the code to use the content_encoding function:
>
> $r->content_type($ContentType); #("$ContentType;
> charset=utf-8");
> $r->content_encoding("utf8");
> $r->print($Request);
>
> And now the response headers look like this:
>
> Date: Wed, 08 Sep 2004 15:33:21 GMT
> Server: Apache/2.0.50 (Unix) mod_perl/1.99_16 Perl/v5.8.5
> Content-Type: text/html; charset=ISO-8859-1
> Content-Encoding: utf8
>
> For some reason, I cannot get the "Content-Type:" string to just be
> "text/html" or "text/html; charset=utf8". I have a feeling that
> "Content-Encoding" has nothing to do with what I am trying to achieve
> here.... Am I missing something completely obvious here? Any help would
> be appreciated.
What's $r? Is it a genuine $r or an Apache::Request subclass? Could you
please submit an A-T skeleton so we can reproduce the problem you are
talking about?
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
http://perl.apache.org/docs/2.0/user/help/help.html#Problem_Description
http://perl.apache.org/~geoff/bug-reporting-skeleton-mp2.tar.gz
Thanks.
--
__________________________________________________________________
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
--
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
[mp2] Setting correct charset / content encoding for request
Posted by Chris Jacobson <ch...@online-rewards.com>.
Hello! Let me get the system specs out of the way first...
Apache: 2.0.50
mod_perl: 1.99_16
Apreq2: 2.04-dev
Perl: 5.8.5
I am attempting to set the charset value in the response headers to
'utf8', but I can't seem to get it to drop the 'iso-8859-1' value for
some reason.
I began with the following code: (Assuming $ContentType = "text/html")
$r->content_type("$ContentType; charset=utf-8");
$r->print($Request);
And the response headers look like this:
Date: Wed, 08 Sep 2004 15:29:56 GMT
Server: Apache/2.0.50 (Unix) mod_perl/1.99_16 Perl/v5.8.5
Content-Type: text/html; charset=ISO-8859-1
Then I changed the code to use the content_encoding function:
$r->content_type($ContentType); #("$ContentType;
charset=utf-8");
$r->content_encoding("utf8");
$r->print($Request);
And now the response headers look like this:
Date: Wed, 08 Sep 2004 15:33:21 GMT
Server: Apache/2.0.50 (Unix) mod_perl/1.99_16 Perl/v5.8.5
Content-Type: text/html; charset=ISO-8859-1
Content-Encoding: utf8
For some reason, I cannot get the "Content-Type:" string to just be
"text/html" or "text/html; charset=utf8". I have a feeling that
"Content-Encoding" has nothing to do with what I am trying to achieve
here.... Am I missing something completely obvious here? Any help would
be appreciated.
Thanks,
Chris Jacobson
--
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
Antwort: Re: modperl 1.99_1, Apache 2.0.50 - make test failure
Posted by jo...@porsche.co.at.
Hi Stas,
I tried the Timeout-value and as you thought it hasn't any influence
because with
the prefork-model the server needs around 26secs to startup.
I found something new. As I commented out every module I tried to figure
out
which one is the bad one, so I activated one after the other and did
"t/TEST -conf"
and "t/TEST" each time. There are two bad ones.
Each time I activated mod_proxy (ie. mod_proxy and mod_proxy_http) or
mod_dav
(ie. mod_dav and mod_dav_fs) the server didn't startup and quit silently.
Independent of the fact which of the two modules I loaded and independent
from
the order of the Loadmodule-Statements. No chance in combination with
mod_perl.
So I compiled mod_proxy and mod_dav statically into httpd. And big
surprise:
Now everything works! :-)
I got some errors (Can't load module...) on the test-routines for the APR::
modules.
Should I post them here, because I don't know if this is a "bug"?
Tomorrow I will try to do the strace thing for the case "everyhting as DSO"
and
then open a bug-report.
kind regards,
Johannes
Stas Bekman <st...@stason.org> wrote on 08.09.2004 17:09:41:
> johannes.grumboeck@porsche.co.at wrote:
>
> > I'm new to this list and trying to compile modperl for Apache2.
> > (I've done this some time ago for modperl 1.26 and Apache 1.3.22.)
> > I'm using Perl 5.8.5 under AIX 4.3.3. My compiler is vac 5.0.2.8.
>
> Johannes, to submit problem report please use:
> http://perl.apache.org/bugs/
>
....................................................................................
> > waiting 120 seconds for server to start: not ok
> > [ error] giving up after 121 secs. If you think that your system
> > is slow or overloaded try again with a longer timeout value.
> > by setting the environment variable APACHE_TEST_STARTUP_TIMEOUT
> > to a high value (e.g. 420) and repeat the last command.
> >
> > [ error] server failed to start! (please examine t/logs/error_log)
> > +--------------------------------------------------------+
> > | Please file a bug report: http://perl.apache.org/bugs/ |
>
> Have you read the suggestion? Did you try to set the startup timeout to a
> higher value? Though it's probably not the cause, especially not with
> prefork mpm, it's still something to try.
>
> > And in the error_log is only one line:
> > END in modperl_extra.pl, pid=19306
> >
> > What shall I do now?
> > Does anyone have the same problem?
> >
> > I've tried to run the command with strace, but I think this works
different
> > under AIX,
> > because it won't start, when I say:
> > strace /www/apache2/bin/httpd -d /build/perl/mod_perl-1.99_16/t -f
> > /build/perl/mod_perl-1.99_16/t/conf/httpd.conf -D APACHE2 -DONE_PROCESS
> > -DNO_DETATCH
> > It complains: usage: strace [mid sid level] ...
> > I've never done anything with strace so far.
> >
> > Is there anybody out there who can help me?
>
> % man strace
>
> --
> __________________________________________________________________
> 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
>
> --
> 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
>
--
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
Re: modperl 1.99_1, Apache 2.0.50 - make test failure
Posted by Stas Bekman <st...@stason.org>.
johannes.grumboeck@porsche.co.at wrote:
> I'm new to this list and trying to compile modperl for Apache2.
> (I've done this some time ago for modperl 1.26 and Apache 1.3.22.)
> I'm using Perl 5.8.5 under AIX 4.3.3. My compiler is vac 5.0.2.8.
Johannes, to submit problem report please use:
http://perl.apache.org/bugs/
....................................................................................
> waiting 120 seconds for server to start: not ok
> [ error] giving up after 121 secs. If you think that your system
> is slow or overloaded try again with a longer timeout value.
> by setting the environment variable APACHE_TEST_STARTUP_TIMEOUT
> to a high value (e.g. 420) and repeat the last command.
>
> [ error] server failed to start! (please examine t/logs/error_log)
> +--------------------------------------------------------+
> | Please file a bug report: http://perl.apache.org/bugs/ |
Have you read the suggestion? Did you try to set the startup timeout to a
higher value? Though it's probably not the cause, especially not with
prefork mpm, it's still something to try.
> And in the error_log is only one line:
> END in modperl_extra.pl, pid=19306
>
> What shall I do now?
> Does anyone have the same problem?
>
> I've tried to run the command with strace, but I think this works different
> under AIX,
> because it won't start, when I say:
> strace /www/apache2/bin/httpd -d /build/perl/mod_perl-1.99_16/t -f
> /build/perl/mod_perl-1.99_16/t/conf/httpd.conf -D APACHE2 -DONE_PROCESS
> -DNO_DETATCH
> It complains: usage: strace [mid sid level] ...
> I've never done anything with strace so far.
>
> Is there anybody out there who can help me?
% man strace
--
__________________________________________________________________
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
--
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