<?xml version="1.0" encoding="windows-1252"?>
<node id="1007202" title="Re^3: if Digest::SHA1 loaded Can't load LibXML/LibXML.dll Invalid access to memory location" created="2012-12-05 00:32:07" updated="2012-12-05 00:32:07">
<type id="11">
note</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
&lt;p&gt;&lt;i&gt;When I try to build XML-LibXML-2.0012 against a static libxml2.a, the build fails because it expects dynamic libxml2 symbols (prefixed with '_imp__').&lt;/i&gt;
&lt;p&gt; If you're getting that _imp stuff you're building against the DLL -- you need &lt;c&gt; perl Makefile.PL  DEFINE=" -DLIBXSLT_STATIC -DLIBEXSLT_STATIC -DLIBXML_STATIC  "  ... &lt;/c&gt; to build sucessfully against static version, in addition to the appropriate LIBS/INC 
&lt;p&gt; The problem with Makefile.PL is it rewrites my LIBS/INC arguments to what it thinks should be -- doesn't let me choose between static/dynamic -- kind of defeats the purpose of those args
&lt;p&gt; Hmm, I guess I could have installed the static/dynamic versions in different directories -- then when Makefile.PL  does its detecting it can't choose wrong -- I guess
&lt;p&gt; &lt;c&gt;
sh configure --disable-static --enable-shared  prefix=/junk/static
make install

sh configure --disable-shared --enable-static prefix=/junk/dynamic
make install
&lt;/c&gt;</field>
<field name="root_node">
1003763</field>
<field name="parent_node">
1006998</field>
<field name="reputation">
1</field>
</data>
</node>
