[xml] LIBXML2/LIBXSLT build problems on VMS



Below are the problems I found building LIBXML2 and LIBXSLT on VMS recently.

LIBXML2
~~~~~~
Compile of TREE.C failed with errors about cur parameter on these lines:
    htmlSetMetaEncoding(cur, (const xmlChar *) encoding);
    htmlSetMetaEncoding(cur, BAD_CAST "UTF-8");
Changed them to use doc parameter instead, like this:
    htmlSetMetaEncoding(doc, (const xmlChar *) encoding);
    htmlSetMetaEncoding(doc, BAD_CAST "UTF-8");

Compile of TRIO.C failed on lines containing TRIO_VA_START(args, format)
with unexpected identifier.
Changed the following line in TRIODEF.H from:
    # define TRIO_VA_START(x,y) va_start((x),(y))
to:
    # define TRIO_VA_START(x,y) va_start(x,y)

Shortened function names for VMS 32 character limit:
in ATTRIBUTES.C from xsltResolveStylesheetAttributeSet to
xsltResolveStylesheetAttrSet
in TEMPLATES.C from xsltAttrTemplateValueProcessNode to
xsltAttrTemplateValueProcNode 

LIBXSLT
~~~~~~~
Added SECURITY.C to XSLT build script.
Added DYNAMIC.C to EXSLT build script.

In XSLTUTILS.C commented out the ifdefn for vsnprint, like this:

//#ifdef XSLT_NEED_TRIO
#define vsnprintf trio_vsnprintf
//#endif

Changed build of LIBXSLT to use FLOAT=IEEE on all compiles and the same
IEEE_MODE as LIBXML2 (DENORM_RESULTS) to resolve run-time crash and
formatting problem in format-number function.


Regards

Nigel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]