in reply to Re: Error with ExtUtils::Depends under Cygwin
in thread Error with ExtUtils::Depends under Cygwin

Thanks syphilis, that did the trick!

I found the check library in:

/usr/local/lib/perl5/site_perl/5.12.1/cygwin-thread-multi-64int/auto/B +/Hooks/OP/Check

The Makefile had no EXTRALIBS or LDLOADLIBS settings, so I added them per your suggestion and the module built and installed correctly. Interestingly, I also found this line in the Makefile:

# LIBS => q[-L/usr/local/lib/perl5/site_perl/5.12.1/cygwin-thread- +multi-64int/auto/B/Hooks/OP/Check -lCheck]
...so at some point it did know where the library was, but didn't actually use it. I tried to install MooseX::Declare again and got the same failure when it got to Devel::Declare, which I resolved the same way. Afterwards the install completed without problems. Not sure if the underlying problem is a bug in the tool chain, a bug in Cygwin, or just some strangeness with my system, but everything seems to be working now.

Replies are listed 'Best First'.
Re^3: Error with ExtUtils::Depends under Cygwin
by syphilis (Archbishop) on Aug 15, 2010 at 22:27 UTC
    Not sure if the underlying problem is a bug in the tool chain, a bug in Cygwin, or just some strangeness with my system, but everything seems to be working now

    Probably none of the above. I suspect it's the version of ExtUtils::MakeMaker that's responsible. The version of EU::MM that shipped with my Cygwin's perl (5.10.1) is 6.55_02. I don't think that's an official release of EU::MM. It's more likely to be one that the Cygwin folk have put together to cater for shortcomings in the official version - such as the refusal to accept 'dll' as a file extension against which linking can occur.

    There seems to be an (overly) ultra-conservative approach to fixing EU::MM and I know that ActiveState release their own renditions of EU::MM with ActivePerl. Looks like Cygwin might be doing the same. When you build perl from source you, of course, get to use only the official (crippled) version of EU::MM.

    If you can locate and install this 6.55_02 version, you'll probably be better off.

    UPDATE: Looks like Cygwin also provide their own build of ExtUtils::Depends, so it's also possible that the solution to your problem lies in there

    Cheers,
    Rob
      Ah, I see. So the problem is that Make::Maker in the stock Perl release needs to be tweaked for Cygwin. Thanks again for the help syphilis!