Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I'm trying to install Devel::Declare to use MooseX::Declare on cygwin perl 5.10 and hitting a g++ compiler error.
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/ blib/lib/Devel/Declare/Context/ cp lib/Devel/ blib/lib/Devel/ cp lib/Devel/Declare/MethodInstaller/ blib/lib/Devel/Declare/ +MethodInstaller/ /usr/bin/perl5.10.0.exe "-Iinc" /usr/lib/perl5/5.10/ExtUtils/xsubpp - +typemap /usr/lib/perl5/5.10/ExtUtils/typemap Declare.xs > Declare.xs +c && mv Declare.xsc Declare.c gcc -c -I/usr/lib/perl5/site_perl/5.10/i686-cygwin/B/Hooks/OP/Check/I +nstall -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing +-pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"0.005011\ +" -DXS_VERSION=\"0.005011\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" + Declare.c Running Mkbootstrap for Devel::Declare () chmod 644 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/lib/perl5/5.10/i686-cygwin/CORE/libperl.dll.a \ Declare.o:Declare.c:(.text+0x6589): undefined reference to `_hook_op_c +heck' Declare.o:Declare.c:(.text+0x65a2): undefined reference to `_hook_op_c +heck' Declare.o:Declare.c:(.text+0x65bd): 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.005011.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 have never had a good relationship with C compilers. Can someone suggest a way forwards? Does anyone know of a cygwin binary package I can use? Or what I could google for?

I also had some problems with the permissions, +x was missing on "/usr/lib/perl5/5.10/i686-cygwin" and some subdirectories. I fixed this, and this doesn't look like a permission problem any more.


- Boldra

In reply to Devel::Declare for cygwin; "undefined reference to '_hook_op_check'" by Boldra

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others avoiding work at the Monastery: (4)
    As of 2018-06-18 03:06 GMT
    Find Nodes?
      Voting Booth?
      Should cpanminus be part of the standard Perl release?

      Results (107 votes). Check out past polls.