Subject: | test.pl fails with perl 5.16.3 |
On an old freebsd 9.x system with a self-compiled 5.16.3 (threaded) installed, the test suite fails:
...
PERL_DL_NONLAZY=1 "/usr/perl5.16.3t/bin/perl" "-Iblib/lib" "-Iblib/arch" test.pl
blib/lib/Big5Plus.pm: Can't close file: test.pl.e
BEGIN failed--compilation aborted at test.pl line 1.
*** [test_dynamic] Error code 9
...
First: there is not enough diagnostics. I added a "$!" to the die() after the problematic close and see now:
blib/lib/Big5Plus.pm: Can't close file: test.pl.e: Bad file descriptor
So I removed the gensym() call for $fh and let perl autogenerate the filehandle --- now the test suite started to pass.
This seems to be the case also for all the other Char-* distributions.