Re: warnings when requiring wait.ph
On Sep 09, John West wrote:
> Hi, all-
>
> I'm attempting the installation of the latest Test::Harness (2.30) from
> the CPAN. The module tests fail with the error:
>
> t/test-harness.....NOK 9# Failed test (t/test-harness.t at line
> 531)
> # got: 'Constant subroutine __need_size_t redefined at
> /usr/lib/perl/5.8.0/stddef.ph line 146.
> # '
> # expected: ''
>
> Indeed, if I issue:
>
> $ perl -e 'require "wait.ph"'
>
> from the command line I get:
>
> Constant subroutine __need_size_t redefined at
> /usr/lib/perl/5.8.0/stddef.ph line 146.
>
> Is this an error in my set up (most likely, I expect), an issue that
> originates upstream, or otherwise? If this is a known issue, is there a
> work-around or patch?
It's an upstream error. I just submitted the following patch upstream.
- Kurt
--- utils/h2ph.PL 2003-09-09 22:58:20.000000000 -0400
+++ utils/h2ph.PL.new 2003-09-09 23:06:11.000000000 -0400
@@ -120,7 +120,9 @@
open(OUT,">$Dest_dir/$outfile") || die "Can't create $outfile: $!\n";
}
- print OUT "require '_h2ph_pre.ph';\n\n";
+ print OUT
+ "require '_h2ph_pre.ph';\n\n",
+ "no warnings 'redefine';\n\n";
while (defined (local $_ = next_line($file))) {
if (s/^\s*\#\s*//) {
Reply to: