in reply to Re^4: Bad file descriptor error in Win32 VC2015 compiled perl-5.20.3
in thread Bad file descriptor error in Win32 VC2015 compiled perl-5.20.3

I'm out of ideas as to why my STDOUT file descriptor is evidently corrupt on the Win7 machine

Same here.

It would be interesting to know whether the same problem exists when perl-5.20.3 is built with gcc.
If you think that's worth investigating you could install 32-bit and/or 64-bit StrawberryPerl portable builds of 5.20.3 and see how they handle the installation of Path::Tiny.
You could also try a more recent version of perl.
But whether any of that would lead to enlightenment is anyone's guess ;-)

On my Windows7 machine, I have 64-bit perl-5.18.0 built with "Microsoft (R) C/C++ Optimizing Compiler Version 14.00.40310.41 for AMD64" - which is a different version of perl built using a different Microsoft Compiler.
FWIW (not much) Path::Tiny builds fine on that build of perl.

Cheers,
Rob
  • Comment on Re^5: Bad file descriptor error in Win32 VC2015 compiled perl-5.20.3

Replies are listed 'Best First'.
Re^6: Bad file descriptor error in Win32 VC2015 compiled perl-5.20.3
by shadowsong (Pilgrim) on Mar 30, 2016 at 10:44 UTC

    Rob,

    Thanks for all your help. The idea was to go with perl-5.20.x as that was the latest version of perl that works with mod_perl v2.0.9.

    The problem I was having wasn't just limited to Path::Tiny, but any module I attempted to install via cpan would fail with that Bad File Descriptor error. After much grief I got fed up and compiled it using VC2010. It now works as expected and I can install modules hassle free.

    If I had to put money on it - I would say it was down the patches applied to perlio.c et al; in order to get it to compile with VC2015...

    Cheers,
    Shadowsong