I've been having trouble building (the latest CVS) mp2 with perl 5.8.1 (@21148) -- see this thread on p5p if you want the gory details:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2003-09/msg00701.html
The answer seems to be to ensure that mod_perl.so appears before mod_perl.lib in the MODPLER_LIB macro in src/modules/perl/Makefile.modperl. The attached patch to lib/Apache/Build.pm (against CVS) achieves this by simply sorting the keys of the %libs hash (which are 'dso', 'shared', 'static').
Is this an appropriate way to do it, or too much like a happy coincidence?
- Steve
--- Build.pm.orig 2003-09-06 02:10:18.000000000 +0100
+++ Build.pm 2003-09-11 16:42:22.000000000 +0100
@@ -1279,7 +1279,9 @@
}
my @libs;
- for my $type (map { uc } keys %libs) {
+ # NOTE: The keys are sorted to make sure the DSO/SHARED lib comes out before
+ # the STATIC lib. Happily, a straightforward sort() does this for us!
+ for my $type (map { uc } sort keys %libs) {
push @libs, $self->{"MODPERL_LIB_$type"} if $self->{"MP_USE_$type"};
}
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
