続ActivePerlとXML::LibXML

VC98では(例のバイナリを落としてきて、VCの該当ディレクトリにlibとかincludeとか入れてある前提で)次のパッチを適用すればコンパイル/テストOK。

--- perl-libxml-mm.c.org	Fri Jun  9 12:36:25 2006
+++ perl-libxml-mm.c	Fri Jun  9 12:36:50 2006
@@ -955,6 +955,7 @@
        code in LibXML.xs */
     SV* retval = &PL_sv_undef;
     STRLEN len = 0;
+    xmlChar* decoded;
 
     if ( refnode != NULL ) {
         xmlDocPtr real_doc = refnode->doc;
@@ -965,7 +966,7 @@
             if ( PmmNodeEncoding(real_doc) == XML_CHAR_ENCODING_NONE ) {
                 PmmNodeEncoding(real_doc) = XML_CHAR_ENCODING_UTF8;
             }
-            xmlChar * decoded = PmmFastDecodeString( PmmNodeEncoding(real_doc) ,
+            decoded = PmmFastDecodeString( PmmNodeEncoding(real_doc) ,
                                                      (const xmlChar *)string,
                                                      (const xmlChar*)real_doc->encoding);
             xs_warn( "push decoded string into SV" );

それにしても、あらためてXML::LibXMLのMakefileとかREADMEとか読んでみたわけですが、なんかこの辺ってバッドなにおいがプンプンなんですね(汗

Which Version of libxml2 should be used?
========================================

(snip)

The following versions are tested:

o past 2.4.20: tested; working.
o 2.4.25: tested; not working
o past 2.4.25: tested, working
o past 2.5.0: tested; brocken Attribute handling
o version 2.5.5: tested; tests pass, but known as broken
o up to version 2.5.11: tested; working
o version 2.6.0: tested; not working
o to version 2.6.2: tested; working
o version 2.6.3: tested; not working
o version 2.6.4: tested; not working (XML Schema errors)
o version 2.6.5: tested; not working (broken XIncludes)
o up to version 2.6.8: tested; working