You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Malcolm J Harwood <mj...@liminalflux.net> on 2005/05/13 23:35:40 UTC

RC6 build problems

I'm attempting to build a static apache/mp RC6, and running into some build 
issues.

The config line ends up looking like this:

 perl Makefile.PL 
MP_AP_PREFIX=/home/mjh/devel/abs/local/apache-mod_perl//src/httpd-2.0.53 
MP_USE_STATIC=1 MP_AP_CONFIGURE="--with-mpm=prefork --prefix=/usr 
--enable-layout=RedHat --datadir=/home/httpd --disable-auth 
--disable-autoindex --disable-cgi --disable-dir --disable-env --disable-imap 
--disable-include --disable-negotiation --disable-userdir --enable-deflate 
--enable-logio --enable-ssl --enable-access --disable-mime" 
MP_AP_DESTDIR=/home/mjh/devel/abs/local/apache-mod_perl//pkg/

and results in a line reading:
 cd "/home/mjh/devel/abs/local/apache-mod_perl/src/httpd-2.0.53" && make 
DESTDIR=0 10 6 4 3 2 10DESTDIR) install

in the Makefile.

Specifying DESTDIR ether as an environment variable or on the config command 
line doesn't make any difference to the outcome. The MP_AP_DESTDIR doesn't 
seem to affect things either.

This make worked (sans the MP_AP_DESTDIR) with RC4.


Anyone got any ideas? 

Re: RC6 build problems

Posted by Stas Bekman <st...@stason.org>.
Malcolm J Harwood wrote:
> On Tuesday 24 May 2005 05:00 pm, Stas Bekman wrote:
> 
> 
>>>Apart from the few that don't run due to my not having the required cpan
>>>modules install on the build machine, all tests passed.
>>
>>You mean those are skipped, no? Or do they fail?
> 
> 
> They are skipped (and thus I can't say for certain if they'd fail or not if I 
> did have the appropriate modules installed).

So it's good. 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

Re: RC6 build problems

Posted by Malcolm J Harwood <mj...@liminalflux.net>.
On Tuesday 24 May 2005 05:00 pm, Stas Bekman wrote:

> > Apart from the few that don't run due to my not having the required cpan
> > modules install on the build machine, all tests passed.
> You mean those are skipped, no? Or do they fail?

They are skipped (and thus I can't say for certain if they'd fail or not if I 
did have the appropriate modules installed).

Re: RC6 build problems

Posted by Stas Bekman <st...@stason.org>.
Malcolm J Harwood wrote:
> On Tuesday 24 May 2005 03:15 pm, Stas Bekman wrote:
> 
> 
>>>Syntax error on line 53
>>>of
>>>/home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0/t/conf/extra.c
>>>onf: Invalid command 'AddOutputFilter', perhaps mis-spelled or defined by
>>>a module not included in the server configuration
>>>
>>>Which looks like it's another missing IfModule.
>>
>>Yes, thank you, Malcolm. I've no built httpd w/o anything at all and
>>discovered mod_mime and mod_alias conditionals were needed. Please check
>>the current svn. It should be all working now.
> 
> 
> Apart from the few that don't run due to my not having the required cpan 
> modules install on the build machine, all tests passed.

You mean those are skipped, no? Or do they fail?

-- 
__________________________________________________________________
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

Re: RC6 build problems

Posted by Malcolm J Harwood <mj...@liminalflux.net>.
On Tuesday 24 May 2005 03:15 pm, Stas Bekman wrote:

> > Syntax error on line 53
> > of
> > /home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0/t/conf/extra.c
> >onf: Invalid command 'AddOutputFilter', perhaps mis-spelled or defined by
> > a module not included in the server configuration
> >
> > Which looks like it's another missing IfModule.
>
> Yes, thank you, Malcolm. I've no built httpd w/o anything at all and
> discovered mod_mime and mod_alias conditionals were needed. Please check
> the current svn. It should be all working now.

Apart from the few that don't run due to my not having the required cpan 
modules install on the build machine, all tests passed.

Thanks.

Re: RC6 build problems

Posted by Stas Bekman <st...@stason.org>.
Malcolm J Harwood wrote:
> On Tuesday 17 May 2005 01:59 pm, you wrote:
> 
> 
>>>The line:
>>>	TypesConfig "/etc/httpd/conf/mime.types"
>>>
>>>Should be enclosed in <IfModule mod_mime.c> </IfModule>, for the case
>>>where mod_mime is disabled. I'm not seeing where the httpd.conf file is
>>>generated though.
>>
>>This was an Apache-Test issue, now fixed. Please test with the current
>>svn. 
> 
> 
> Finally got to testing this, it fails elsewhere:
> 
> Syntax error on line 53 
> of /home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0/t/conf/extra.conf:
> Invalid command 'AddOutputFilter', perhaps mis-spelled or defined by a module 
> not included in the server configuration
> 
> Which looks like it's another missing IfModule.

Yes, thank you, Malcolm. I've no built httpd w/o anything at all and 
discovered mod_mime and mod_alias conditionals were needed. Please check 
the current svn. It should be all working now.


-- 
__________________________________________________________________
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

Re: RC6 build problems

Posted by Malcolm J Harwood <mj...@liminalflux.net>.
On Tuesday 17 May 2005 01:59 pm, you wrote:

> > The line:
> > 	TypesConfig "/etc/httpd/conf/mime.types"
> >
> > Should be enclosed in <IfModule mod_mime.c> </IfModule>, for the case
> > where mod_mime is disabled. I'm not seeing where the httpd.conf file is
> > generated though.
> This was an Apache-Test issue, now fixed. Please test with the current
> svn. 

Finally got to testing this, it fails elsewhere:

Syntax error on line 53 
of /home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0/t/conf/extra.conf:
Invalid command 'AddOutputFilter', perhaps mis-spelled or defined by a module 
not included in the server configuration

Which looks like it's another missing IfModule.


-- 
"Computer games don't affect kids; I mean if Pac-Man affected us as
kids, we'd all be running around in darkened rooms, munching magic
pills and listening to repetitive electronic music."
- Kristian Wilson, Nintendo, Inc, 1989

Re: latest svn build problems

Posted by Malcolm J Harwood <mj...@liminalflux.net>.
On Wednesday 25 May 2005 01:55 pm, Stas Bekman wrote:

> <IfModule mod_env.c> is the right one. Now committed. Thanks Malcolm!
> Anything else?

Everything works fine here.
Thanks.

Re: latest svn build problems

Posted by Stas Bekman <st...@stason.org>.
Malcolm J Harwood wrote:
> On Tuesday 24 May 2005 05:21 pm, Stas Bekman wrote:
> 
> 
>>Please try:
>>
>>Index: ModPerl-Registry/t/conf/extra.conf.in
>>===================================================================
>>--- ModPerl-Registry/t/conf/extra.conf.in       (revision 178247)
>>+++ ModPerl-Registry/t/conf/extra.conf.in       (working copy)
>>@@ -203,7 +203,9 @@
>>  # XXX: would be nice to have Apache-Test support a new 'tmp' token
>>  # (similar to t_logs) which will map onto t/tmp by default and provide
>>  # a new -tmp option to override this default
>>-SetEnv TMPDIR @t_logs@
>>+<IfModule mod_setenvif.c>
>>+    SetEnv TMPDIR @t_logs@
>>+</IfModule>
>>  # </sandbox-friendly>
> 
> 
> That doesn't work, but using:
> 	<IfModule mod_setenv.c>
> or
> 	<IfModule mod_env.c>
> does.

<IfModule mod_env.c> is the right one. Now committed. Thanks Malcolm!

Anything else?

-- 
__________________________________________________________________
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

Re: latest svn build problems

Posted by Malcolm J Harwood <mj...@liminalflux.net>.
On Tuesday 24 May 2005 05:21 pm, Stas Bekman wrote:

> Please try:
>
> Index: ModPerl-Registry/t/conf/extra.conf.in
> ===================================================================
> --- ModPerl-Registry/t/conf/extra.conf.in       (revision 178247)
> +++ ModPerl-Registry/t/conf/extra.conf.in       (working copy)
> @@ -203,7 +203,9 @@
>   # XXX: would be nice to have Apache-Test support a new 'tmp' token
>   # (similar to t_logs) which will map onto t/tmp by default and provide
>   # a new -tmp option to override this default
> -SetEnv TMPDIR @t_logs@
> +<IfModule mod_setenvif.c>
> +    SetEnv TMPDIR @t_logs@
> +</IfModule>
>   # </sandbox-friendly>

That doesn't work, but using:
	<IfModule mod_setenv.c>
or
	<IfModule mod_env.c>
does.

Re: latest svn build problems (was Re: RC6 build problems)

Posted by Stas Bekman <st...@stason.org>.
Malcolm J Harwood wrote:
> On Saturday 14 May 2005 01:52 pm, you wrote:
> 
> 
>>The same thing happens with mod_env disabled:
>>
>>Syntax error on line 862
>>of
>>/home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0.0-dev/t/conf/htt
>>pd.conf: Invalid command 'SetEnv', perhaps mis-spelled or defined by a
>>module not included in the server configuration
> 
> 
> The latest from svn adds a new one:
> 
> .Syntax error on line 217 
> of /home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-svn/ModPerl-Registry/t/conf/extra.conf:
> Invalid command 'SetEnv', perhaps mis-spelled or defined by a module not 
> included in the server configuration

Please try:

Index: ModPerl-Registry/t/conf/extra.conf.in
===================================================================
--- ModPerl-Registry/t/conf/extra.conf.in       (revision 178247)
+++ ModPerl-Registry/t/conf/extra.conf.in       (working copy)
@@ -203,7 +203,9 @@
  # XXX: would be nice to have Apache-Test support a new 'tmp' token
  # (similar to t_logs) which will map onto t/tmp by default and provide
  # a new -tmp option to override this default
-SetEnv TMPDIR @t_logs@
+<IfModule mod_setenvif.c>
+    SetEnv TMPDIR @t_logs@
+</IfModule>
  # </sandbox-friendly>

-- 
__________________________________________________________________
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

latest svn build problems (was Re: RC6 build problems)

Posted by Malcolm J Harwood <mj...@liminalflux.net>.
On Saturday 14 May 2005 01:52 pm, you wrote:

> The same thing happens with mod_env disabled:
>
> Syntax error on line 862
> of
> /home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0.0-dev/t/conf/htt
>pd.conf: Invalid command 'SetEnv', perhaps mis-spelled or defined by a
> module not included in the server configuration

The latest from svn adds a new one:

.Syntax error on line 217 
of /home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-svn/ModPerl-Registry/t/conf/extra.conf:
Invalid command 'SetEnv', perhaps mis-spelled or defined by a module not 
included in the server configuration

Re: RC6 build problems

Posted by Stas Bekman <st...@stason.org>.
Malcolm J Harwood wrote:
[...]
> The same thing happens with mod_env disabled:
> 
> Syntax error on line 862 
> of /home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0.0-dev/t/conf/httpd.conf:
> Invalid command 'SetEnv', perhaps mis-spelled or defined by a module not 
> included in the server configuration

This part is now fixed. Could you please try the current svn?
http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution
(don't use the snapshot tarball, it's stale at the moment)

-- 
__________________________________________________________________
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

Re: RC6 build problems

Posted by Malcolm J Harwood <mj...@liminalflux.net>.
On Friday 13 May 2005 11:12 pm, Malcolm J Harwood wrote:

> "make test" fails with the following:
>
> .Syntax error on line 101
> of
> /home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0.0-RC6/t/conf/htt
>pd.conf: Invalid command 'TypesConfig', perhaps mis-spelled or defined by a
> module not included in the server configuration
>
>
> The line:
> 	TypesConfig "/etc/httpd/conf/mime.types"
>
> Should be enclosed in <IfModule mod_mime.c> </IfModule>, for the case where
> mod_mime is disabled. I'm not seeing where the httpd.conf file is generated
> though.

I tested this with 2.0.0-dev and it occurs there too.

The same thing happens with mod_env disabled:

Syntax error on line 862 
of /home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0.0-dev/t/conf/httpd.conf:
Invalid command 'SetEnv', perhaps mis-spelled or defined by a module not 
included in the server configuration

Re: RC6 build problems

Posted by Stas Bekman <st...@stason.org>.
Malcolm J Harwood wrote:
> And the next one...
> 
> 
> "make test" fails with the following:
> 
> .Syntax error on line 101 
> of /home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0.0-RC6/t/conf/httpd.conf:
> Invalid command 'TypesConfig', perhaps mis-spelled or defined by a module not 
> included in the server configuration
> 
> 
> The line:
> 	TypesConfig "/etc/httpd/conf/mime.types"
> 
> Should be enclosed in <IfModule mod_mime.c> </IfModule>, for the case where 
> mod_mime is disabled. I'm not seeing where the httpd.conf file is generated 
> though.

This was an Apache-Test issue, now fixed. Please test with the current 
svn. Thank you, Malcolm.


-- 
__________________________________________________________________
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

Re: RC6 build problems

Posted by Malcolm J Harwood <mj...@liminalflux.net>.
And the next one...


"make test" fails with the following:

.Syntax error on line 101 
of /home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0.0-RC6/t/conf/httpd.conf:
Invalid command 'TypesConfig', perhaps mis-spelled or defined by a module not 
included in the server configuration


The line:
	TypesConfig "/etc/httpd/conf/mime.types"

Should be enclosed in <IfModule mod_mime.c> </IfModule>, for the case where 
mod_mime is disabled. I'm not seeing where the httpd.conf file is generated 
though.




Re: RC6 build problems

Posted by Malcolm J Harwood <mj...@liminalflux.net>.
On Friday 13 May 2005 08:06 pm, Stas Bekman wrote:

> It comes from Makefile.PL:
>
> ap_install: ap_build
> 	cd "$build->{MP_AP_PREFIX}" && make DESTDIR=$(DESTDIR) install
> EOF
>
> Please apply the attached patch. It should fix the problem.

It does. Thanks.

Re: RC6 build problems

Posted by Stas Bekman <st...@stason.org>.
Malcolm J Harwood wrote:
> I'm attempting to build a static apache/mp RC6, and running into some build 
> issues.
> 
> The config line ends up looking like this:
> 
>  perl Makefile.PL 
> MP_AP_PREFIX=/home/mjh/devel/abs/local/apache-mod_perl//src/httpd-2.0.53 
> MP_USE_STATIC=1 MP_AP_CONFIGURE="--with-mpm=prefork --prefix=/usr 
> --enable-layout=RedHat --datadir=/home/httpd --disable-auth 
> --disable-autoindex --disable-cgi --disable-dir --disable-env --disable-imap 
> --disable-include --disable-negotiation --disable-userdir --enable-deflate 
> --enable-logio --enable-ssl --enable-access --disable-mime" 
> MP_AP_DESTDIR=/home/mjh/devel/abs/local/apache-mod_perl//pkg/
> 
> and results in a line reading:
>  cd "/home/mjh/devel/abs/local/apache-mod_perl/src/httpd-2.0.53" && make 
> DESTDIR=0 10 6 4 3 2 10DESTDIR) install

It comes from Makefile.PL:

ap_install: ap_build
	cd "$build->{MP_AP_PREFIX}" && make DESTDIR=$(DESTDIR) install
EOF

Please apply the attached patch. It should fix the problem.

-- 
__________________________________________________________________
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