perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [mp2] finishing support for MP_USE_STATIC=1 MP_STATIC_EXTS=1
Date Fri, 18 Mar 2005 22:44:49 GMT
Nick *** wrote:

>  >Nick? Can you please remind us what do you use MP_STATIC_EXTS=1 for?
> 
> This option is the only way to build MP2 under Cygwin. Cygwin doesn't
> allow undefined symbols when linking, so it's not possible to build a
> dynamic mod_perl.so and dynamic extensions.

OK, so Randy's BUILD_APREXT should do the trick. Randy, will you have the 
tuits to have that feature used for all when MP_STATIC_EXTS=1 is used?

Also the following needs be integrated:

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

but need to do that only if MP_STATIC_EXTS=1.

You can see what the problems are, by running:

% 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=/path/to/httpd-2.0 MP_INST_APACHE2=1 && make && make test

the incomplete patch above solves the build problem. And BUILD_APREXT 
should solve the t/apr-ext tests failure. Notice that you may not see 
these failures, in case you have mp2 already installed.

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

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


Mime
View raw message