You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by "Philip M. Gollucci" <pg...@p6m7g8.com> on 2005/07/24 04:03:28 UTC

Static MP2 builds

Hi,

I'm finally getting around to testing/trying static builds.

Unfortunately, I'm not getting very far:

So I'm being crazy and using perl 5.9.3 with ithreads
and SVN checkouts of httpd, apr, apr-utill, and mod_perl.
apr and apr-util are in httpd/srclib.

I ran httpd's ./buildconf first per instructions on the website. (also 
ran apr's buildconf -- probably should ammend to say do that too)  This 
also applies to apr-util me thinks.

So I went to instigate the error below
[  error] Can't find apr include/ directory,
[  error] use MP_APR_CONFIG=/path/to/apr-config

So I went and looked at lib/Apache2/Build.pm

in sub get_apr_config()

	[...]
   for (@tries) {
         next unless $_ && -e catfile $_, "apr.h";
         $self->{apr_includedir} = $_;
         last;
     }

     unless ($self->{apr_includedir}) {
         error "Can't find apr include/ directory,",
             "use MP_APR_CONFIG=/path/to/apr-config";
         exit 1;
     }

So its looking for apr.h --- this doesn't exist yet as
apr's configure hasn't been run.

	 ? AM I GOING Crazy ?

Maybe a patch (I'll craft it) so that if $self->httpd_is_source_tree
is set, then it looks for apr.h.in

--------------------

CFLAGS="-DAP_UNSAFE_ERROR_LOG_UNESCAPED -ggdb3 -O0"  \
  $PREFIX/perl/bin/perl Makefile.PL \
  MP_MAINTAINER=1 \
  MP_DEBUG=1 \
  MP_TRACE=1 \
  MP_AP_PREFIX=/usr/local/dev/repos/ASF/httpd/httpd/trunk \
  MP_AP_CONFIGURE=" \
         --prefix=$PREFIX/httpd \
         --with-perl=$PREFIX/perl/bin/perl \
         --enable-v4-mapped \
         --with-dbm=sdbm \
         --with-ssl=/usr \
         --enable-ssl \
         --enable-so \
         --with-port=8004 \
         --with-mpm=worker \
         --with-expat=/usr/local \
         --enable-maintainer-mode \
         --enable-threads \
         --enable-debug \
         --enable-mods-shared=all \
         --enable-modules=all \
         --enable-deflate=shared \
         --enable-proxy=shared \
         --enable-threads \
         --disable-log-forensic  "

no conflicting prior mod_perl version found - good.
Configuring Apache/2.3.01 mod_perl2/2.0.2-dev Perl/vv5.9.3
[  error] Can't find apr include/ directory,
[  error] use MP_APR_CONFIG=/path/to/apr-config
cd /usr/local/dev/repos/ASF/perl/modperl/trunk ; make all install
cd "src/modules/perl" && make
make: don't know how to make 
/usr/local/apps/5.9.3-ithreads_2.1.7_work//perl/lib/CORE/libperl.so. Stop
*** Error code 2

Stop in /usr/local/dev/repos/ASF/perl/modperl/trunk.




-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Static MP2 builds

Posted by Nikolay Ananiev <ha...@3dzone-bg.com>.
Philip, check this
http://www.issociate.de/board/post/187484/Another_error_with_MP_STATIC_EXTS=1.html
and also check todo/release

"Philip M. Gollucci" <pg...@p6m7g8.com> wrote in message
news:42E5CD77.9090307@p6m7g8.com...
> Philip M. Gollucci wrote:
> > Philippe M. Chiasson wrote:
> >
> >> You are missing: MP_USE_STATIC=1 in there...
> Okay, Static builds work well for me.  Now onto the next one:
> MP_STATIC_EXTS=1 + MP_USE_STATIC=1
>
> The docs say:
> Build Apache2::*.xs as static extensions; I however, get an error:
>
> Making all in support
> [snip]
> make: don't know how to make
> ../../../blib/arch/auto/APR/Base64/Base64.so. Stop
> *** Error code 2
> Stop in /usr/local/dev/repos/ASF/perl/modperl/trunk/WrapXS/APR.
> *** Error code 1
> Stop in /usr/local/dev/repos/ASF/perl/modperl/trunk/WrapXS.
> *** Error code 1
> Stop in /usr/local/dev/repos/ASF/perl/modperl/trunk.
>
> First question, is Apache2::*.xs supposed to include the APR wrappers?
>
>
>
> Configure lines below:
> cd $MP2_SRC ; svn up
> cd $MP2_SRC ; make distclean
> cd httpd-2.0.54 ; make realclean ; ./buildconf
> cd $MP2_SRC ; CFLAGS="-DAP_UNSAFE_ERROR_LOG_UNESCAPED -ggdb3 -O0"  \
>   $PREFIX/perl/bin/perl Makefile.PL \
>   MP_USE_STATIC=1 \
>   MP_STATIC_EXTS=1 \
>   MP_MAINTAINER=1 \
>   MP_DEBUG=1 \
>   MP_TRACE=1 \
>   MP_AP_PREFIX=/usr/local/dev/src/httpd-2.0.54 \
>   MP_AP_CONFIGURE=" \
>          --prefix=$PREFIX/httpd \
>          --with-perl=$PREFIX/perl/bin/perl \
>          --enable-v4-mapped \
>          --with-dbm=sdbm \
>          --with-ssl=/usr \
>          --enable-ssl \
>          --enable-so \
>          --with-port=8007 \
>          --with-mpm=worker \
>          --with-expat=/usr/local \
>          --enable-maintainer-mode \
>          --enable-threads \
>          --enable-debug \
>          --enable-mods-shared=all \
>          --enable-modules=all \
>          --enable-deflate=shared \
>          --enable-proxy=shared \
>          --enable-threads \
>          --disable-log-forensic  "
> cd $MP2_SRC ; make all install
>
>
> -- 
> END
> ------------------------------------------------------------
>      What doesn't kill us can only make us stronger.
>                  Nothing is impossible.
>
> Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
> Consultant / http://p6m7g8.net/Resume/resume.shtml
> Senior Developer / Liquidity Services, Inc.
> http://www.liquidityservicesinc.com




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Static MP2 builds

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Philip M. Gollucci wrote:
> Philippe M. Chiasson wrote:
> 
>> You are missing: MP_USE_STATIC=1 in there...
Okay, Static builds work well for me.  Now onto the next one:
MP_STATIC_EXTS=1 + MP_USE_STATIC=1

The docs say:
Build Apache2::*.xs as static extensions; I however, get an error:

Making all in support
[snip]
make: don't know how to make 
../../../blib/arch/auto/APR/Base64/Base64.so. Stop
*** Error code 2
Stop in /usr/local/dev/repos/ASF/perl/modperl/trunk/WrapXS/APR.
*** Error code 1
Stop in /usr/local/dev/repos/ASF/perl/modperl/trunk/WrapXS.
*** Error code 1
Stop in /usr/local/dev/repos/ASF/perl/modperl/trunk.

First question, is Apache2::*.xs supposed to include the APR wrappers?



Configure lines below:
cd $MP2_SRC ; svn up
cd $MP2_SRC ; make distclean
cd httpd-2.0.54 ; make realclean ; ./buildconf
cd $MP2_SRC ; CFLAGS="-DAP_UNSAFE_ERROR_LOG_UNESCAPED -ggdb3 -O0"  \
  $PREFIX/perl/bin/perl Makefile.PL \
  MP_USE_STATIC=1 \
  MP_STATIC_EXTS=1 \
  MP_MAINTAINER=1 \
  MP_DEBUG=1 \
  MP_TRACE=1 \
  MP_AP_PREFIX=/usr/local/dev/src/httpd-2.0.54 \
  MP_AP_CONFIGURE=" \
         --prefix=$PREFIX/httpd \
         --with-perl=$PREFIX/perl/bin/perl \
         --enable-v4-mapped \
         --with-dbm=sdbm \
         --with-ssl=/usr \
         --enable-ssl \
         --enable-so \
         --with-port=8007 \
         --with-mpm=worker \
         --with-expat=/usr/local \
         --enable-maintainer-mode \
         --enable-threads \
         --enable-debug \
         --enable-mods-shared=all \
         --enable-modules=all \
         --enable-deflate=shared \
         --enable-proxy=shared \
         --enable-threads \
         --disable-log-forensic  "
cd $MP2_SRC ; make all install


-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Developer / Liquidity Services, Inc.
	http://www.liquidityservicesinc.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Static MP2 builds

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Philippe M. Chiasson wrote:

>You are missing: MP_USE_STATIC=1 in there...
>  
>
D'oh!

Thanks!

-- 
END 
---------------------------------------------------------
    What doesn't kill us can only make us stronger.
               Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Developer / Liquidity Services, Inc.
     http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Static MP2 builds

Posted by "Philippe M. Chiasson" <go...@ectoplasm.org>.
Philip M. Gollucci wrote:
> Hi,
> 
> I'm finally getting around to testing/trying static builds.
> 
> Unfortunately, I'm not getting very far:
> 
> So I'm being crazy and using perl 5.9.3 with ithreads
> and SVN checkouts of httpd, apr, apr-utill, and mod_perl.
> apr and apr-util are in httpd/srclib.
> 
> I ran httpd's ./buildconf first per instructions on the website. (also
> ran apr's buildconf -- probably should ammend to say do that too)  This
> also applies to apr-util me thinks.
> 
> So I went to instigate the error below
> [  error] Can't find apr include/ directory,
> [  error] use MP_APR_CONFIG=/path/to/apr-config
> 

You are missing: MP_USE_STATIC=1 in there...

> CFLAGS="-DAP_UNSAFE_ERROR_LOG_UNESCAPED -ggdb3 -O0"  \
>  $PREFIX/perl/bin/perl Makefile.PL \
>  MP_MAINTAINER=1 \
>  MP_DEBUG=1 \
>  MP_TRACE=1 \
>  MP_AP_PREFIX=/usr/local/dev/repos/ASF/httpd/httpd/trunk \
>  MP_AP_CONFIGURE=" \
>         --prefix=$PREFIX/httpd \
>         --with-perl=$PREFIX/perl/bin/perl \
>         --enable-v4-mapped \
>         --with-dbm=sdbm \
>         --with-ssl=/usr \
>         --enable-ssl \
>         --enable-so \
>         --with-port=8004 \
>         --with-mpm=worker \
>         --with-expat=/usr/local \
>         --enable-maintainer-mode \
>         --enable-threads \
>         --enable-debug \
>         --enable-mods-shared=all \
>         --enable-modules=all \
>         --enable-deflate=shared \
>         --enable-proxy=shared \
>         --enable-threads \
>         --disable-log-forensic  "

--------------------------------------------------------------------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/     F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5