<?xml version="1.0" encoding="windows-1252"?>
<node id="1010898" title="Re: Investigating Devel::Pragma's broken install on Cygwin, need help to fix it. ExtUtils::Depends possibly guilty??" created="2012-12-30 01:37:22" updated="2012-12-30 01:37:22">
<type id="11">
note</type>
<author id="524150">
syphilis</author>
<data>
<field name="doctext">
&lt;i&gt;The hook_op_annotation.h file is not found by g++&lt;/i&gt;&lt;br&gt;&lt;br&gt;I don't think it needs to find that file - the build just needs to link to /usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int/auto/B/Hooks/OP/Annotation/libAnnotation.a.&lt;br&gt;I can see that the location of that file was spelt out with:
&lt;c&gt;
-L/usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int/auto/B/Hooks/OP/Annotation
&lt;/c&gt;
But the crucial &lt;c&gt;-lAnnotation&lt;/c&gt; is missing. What happened to it ?

&lt;br&gt;Did the 'perl Makefile.PL' step warn of "no library found for -lAnnotation" ?&lt;br&gt;If it did, then the build process won't even try to link to that file. Otherwise, it's probably a case of ExtUtils-Depends forgetting to put
the &lt;c&gt;-lAnnotation&lt;/c&gt; in.

&lt;br&gt;&lt;br&gt;Try opening the generated Makefile, find the 2 separate lines beginning &lt;c&gt;EXTRALIBS&lt;/c&gt; and &lt;c&gt;LDLOADLIBS&lt;/c&gt;, add (by hand) the &lt;c&gt;-lAnnotation&lt;/c&gt; at the end of each of those 2 lines, then run 'make' again.
&lt;br&gt;&lt;br&gt; That ghastly hack will work with any luck .... assuming that /usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int/auto/B/Hooks/OP/Annotation/libAnotation.a (which should have been installed as part of B::Hooks::OP::Annotation) exists.&lt;br&gt;Another snag might be that the order in which -lCheck and -lAnnotation are specified in those 2 lines is important.

&lt;br&gt;&lt;br&gt;Sorry - too many dependencies for me to actually try this out for myself.

&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Rob</field>
<field name="root_node">
1010887</field>
<field name="parent_node">
1010887</field>
</data>
</node>
