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...
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/
cp lib/Devel/Declare.pm blib/lib/Devel/Declare.pm
cp lib/Devel/Declare/MethodInstaller/Simple.pm blib/lib/Devel/Declare/
/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"
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 \
Declare.o:Declare.c:(.text+0x6589): undefined reference to `_hook_op_c
Declare.o:Declare.c:(.text+0x65a2): undefined reference to `_hook_op_c
Declare.o:Declare.c:(.text+0x65bd): undefined reference to `_hook_op_c
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Devel/Declare/Declare.dll] Error 1
/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.