Re: Another error with MP_STATIC_EXTS=1

[prev] [thread] [next] [Date index for 2005/03/18]

From: Stas Bekman
Subject: Re: Another error with MP_STATIC_EXTS=1
Date: 02:18 on 18 Mar 2005
Nick *** wrote:
[...]
> But there is another bug as I said.
> Just run perl Makefile.PL MP_STATIC_EXTS=1 MP_COMPAT_1X=0 MP_USE_STATIC=1 MP_AP_CONFIGURE="--with-mpm=prefork" MP_AP_PREFIX=/usr/src/httpd
> and then run make. You will see what happens :)

Indeed, I can reproduce it. Here is a quick bandaid (for the above case). 
I'll work on the proper solution and post it here when I have it.

Index: lib/ModPerl/WrapXS.pm
===================================================================
--- lib/ModPerl/WrapXS.pm       (revision 158003)
+++ lib/ModPerl/WrapXS.pm       (working copy)
@@ -429,9 +429,10 @@
  use ModPerl::BuildMM ();

  ModPerl::BuildMM::WriteMakefile(
-    'NAME'    => '$class',
-    'VERSION' => '$version',
-    'depend'  => $deps,
+    NAME    => '$class',
+    VERSION => '$version',
+    linkext  =>  {'LINKTYPE' => ''},
+    depend  => $deps,
  );
  EOF

-------
% perl-5.8.6-ithread Makefile.PL MP_STATIC_EXTS=1 MP_COMPAT_1X=0 
MP_USE_STATIC=1 MP_AP_CONFIGURE="--with-mpm=prefork" 
MP_AP_PREFIX=/home/stas/apache.org/httpd-2.0 MP_INST_APACHE2=1 && make && 
make test

All tests successful, 8 tests skipped.
Files=228, Tests=2250, 191 wallclock secs (151.60 cusr + 22.43 csys = 
174.03 CPU)

All tests successful, 1 test skipped.
Files=15, Tests=75, 15 wallclock secs (10.23 cusr +  1.55 csys = 11.78 CPU)


        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Another error with MP_STATIC_EXTS=1
Nick *** 00:01 on 12 Mar 2005

Re: Another error with MP_STATIC_EXTS=1
Stas Bekman 02:33 on 17 Mar 2005

Re: Another error with MP_STATIC_EXTS=1
Nick *** 08:17 on 17 Mar 2005

Re: Another error with MP_STATIC_EXTS=1
Stas Bekman 02:18 on 18 Mar 2005

Re: Another error with MP_STATIC_EXTS=1
Nick *** 11:07 on 18 Mar 2005

Re: Another error with MP_STATIC_EXTS=1
Stas Bekman 16:33 on 18 Mar 2005

Generated at 16:59 on 18 Mar 2005 by mariachi v0.52