I'm trying to install MooseX::Declare under Cygwin. I downloaded, built and installed Perl 5.12.1 /usr/local. When I try to install MooseX::Declare I get problems with it's dependency Devel::Declare. This is the error I see:

Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lCheck Writing Makefile for Devel::Declare cp lib/Devel/Declare/Context/Simple.pm blib/lib/Devel/Declare/Context/ +Simple.pm cp lib/Devel/Declare.pm blib/lib/Devel/Declare.pm cp lib/Devel/Declare/MethodInstaller/Simple.pm blib/lib/Devel/Declare/ +MethodInstaller/Simple.pm /usr/local/bin/perl.exe "-Iinc" /usr/local/lib/perl5/5.12.1/ExtUtils/x +subpp -typemap /usr/local/lib/perl5/5.12.1/ExtUtils/typemap Declare +.xs > Declare.xsc && mv Declare.xsc Declare.c gcc -c -I/usr/local/lib/perl5/site_perl/5.12.1/cygwin-thread-multi-64 +int/B/Hooks/OP/Check/Install -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ + -fno-strict-aliasing -pipe -DUSEIMPORTLIB -O3 -DVERSION=\"0.006000 +\" -DXS_VERSION=\"0.006000\" "-I/usr/local/lib/perl5/5.12.1/cygwin-t +hread-multi-64int/CORE" Declare.c Running Mkbootstrap for Devel::Declare () chmod 644 Declare.bs rm -f blib/arch/auto/Devel/Declare/Declare.dll g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,- +-stack,8388608 -Wl,--enable-auto-image-base -L/usr/local/lib Declare. +o -o blib/arch/auto/Devel/Declare/Declare.dll \ /usr/local/lib/perl5/5.12.1/cygwin-thread-multi-64int/CORE/c +ygperl5_12_1.dll \ Declare.o:Declare.c:(.text+0x6624): undefined reference to `_hook_op_c +heck' Declare.o:Declare.c:(.text+0x663a): undefined reference to `_hook_op_c +heck' collect2: ld returned 1 exit status make: *** [blib/arch/auto/Devel/Declare/Declare.dll] Error 1 FLORA/Devel-Declare-0.006000.tar.gz /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible

I googled around and found this bug. Great, its fixed! However, perldoc perllocal says this:

Sat Aug 14 06:39:37 2010: "Module" ExtUtils::Depends · "installed into: /usr/local/lib/perl5/site_perl/5.12.1" · "LINKTYPE: dynamic" · "VERSION: 0.302" · "EXE_FILES: "

which appears to be the lastest version. I looked at the git repository and it appears the fix is fact in this version. So, now what?

One other thing may be relevant...prior to installing Perl 5.12.1 I had installed Perl 5.13 and attempted to fetch MooseX::Declare, but had some other issues and decided to try the safe approach. Possibly something from this earlier attempt is interfering with the 5.12?

EDIT: As syphilis pointed out, I didn't really say what my problem is. The problem is that I'm getting this error despite the fact that I have the version of ExtUtils::Depends with the bug fix in it.


In reply to Error with ExtUtils::Depends under Cygwin by newleaf

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.