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] 2.0.0 ok on NetBSD 2.0.2(i386)
Date Wed, 25 May 2005 19:06:48 GMT
Stas Bekman wrote:
> Carl Brewer wrote:
> 
>>
>>
>> I'm now running 2.0.0 on my NetBSD 2.0.2 server (i386) with
>> no problems so far and a pretty painless port from 1.99.16 :
>>
>> Thanks Stas et al.
>>
>> Except for this (something I missed?)
>>
>>
>> noisy: {45} t/REPORT > mybugreport
>> /usr/pkg/lib/perl5/site_perl/5.8.6/i386-netbsd-thread-multi/auto/APR/Request/Error/Error.so:

>> Undefined PLT symbol "apreq_strerror" (symnum = 43)
>> noisy: {46} pwd
>> /data/src/mod_perl-2.0.0
>> noisy: {47} more mybugreport
>> noisy: {49} mp2bug > mybugreport
>> /usr/pkg/lib/perl5/site_perl/5.8.6/i386-netbsd-thread-multi/auto/APR/Request/Error/Error.so:

>> Undefined PLT symbol "apreq_strerror" (symnum = 43)
>>
>>
>> I don't think it's a big deal, everything I'm running
>> seems fine.
> 
> 
> Carl, this is not mod_perl, but APR::Request = libapreq. Please post 
> libapreq/APR::Request errors to the libapreq-dev list: 
> http://httpd.apache.org/apreq/

Actually, it is a problem of ModPerl::TestReport, my apologies for 
discarding it in first place. I've committed the following fix to svn. 
Please confirm that it works for you. Thanks.

Index: Changes
===================================================================
--- Changes     (revision 178490)
+++ Changes     (working copy)
@@ -12,6 +12,11 @@

  =item 2.0.1-dev

+fix ModPerl::TestReport used by t/REPORT and mp2bug to use
+ExtUtils::MakeMaker's MM->parse_version to get the interesting
+packages version number, w/o trying to load them (which may fail if
+the environment is not right) [Stas]
+
  fix a bug in ModPerl::RegistryCooker: now stripping __(END|DATA)__
  only at the beginning of the line [Stas]


Index: lib/ModPerl/TestReport.pm
===================================================================
--- lib/ModPerl/TestReport.pm   (revision 178501)
+++ lib/ModPerl/TestReport.pm   (working copy)
@@ -19,6 +19,8 @@

  use base qw(Apache::TestReportPerl);

+use ExtUtils::MakeMaker ();
+
  my @interesting_packages = qw(
      CGI
      ExtUtils::MakeMaker
@@ -52,11 +54,7 @@
          for my $dir (@inc) {
              my $path = "$dir/$filename";
              if (-e $path) {
-                no warnings 'redefine';
-                my $ver = eval { require $path;
-                                 delete $INC{$path};
-                                 $package->VERSION;
-                         };
+                my $ver = MM->parse_version($path);
                  # two versions could be installed (one under Apache2/)
                  push @{ $packages{$package} }, $ver if $ver;
              }


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