With the help of Craig Berry and David Hansen I have come a long way
building XML::Parser.
I have summarized what I had to do in the following com-file:
---- 8< -----------------------------------------------
$! 1. Download XML-Parser-2.29. Version 2.30 does not contain the Expat
parser anymore, and is
$! consequently harder to build under VMS. Unpack the downloaded file.
This should result in
$! the creation of the directory XML-PARSER-2_29.
$! 2. Enter the xml-parser directory.
$ sd [.XML-PARSER-2_29]
$! 3. Make the MMS file
$ perl makefile.pl
$! 4. Remove superfluous CR characters.
$ perl -pi -e "s/\r$//" [...]*.c [...]*.h [...]*.xs [.EXPAT]TYPEMAP.
$! 5. Replace too long function names.
$! On some systems ExtUtils::XSSymSet might be called VMS::XSSymSet.
$! A series of warnings will indicate which symbols have been trimmed.
$ perl -pi -e "use ExtUtils::XSSymSet; BEGIN{$s = new ExtUtils::XSSymSet}
s/[\w_]{31,}(?=\()/$s->addsym($&)/eg" [...]*.h [...]*.c [...]*.xs
$! 6. Fix a bug in [.expat]expat.xs.
$! This should modify line 993 so that it declares len as unsigned int.
$ perl -pi -e "s/int\s+len;/unsigned $&/ and warn qq{$. : $_}"
[.expat]expat.xs
$! 7. Replace bad -o options in [.expat]descrip.mms:
$ perl -pi -e "s/,-o,\$\@// and s/$/\/Object=\$\@/" [.expat]descrip.mms
$! 8. Now build the parser package.
$! You may want to check that this went all right by looking at
mms.log.
$ mms /output=mms.log
$! 9. Now install the package and test it:
$ mms install
$ mms test
---- 8< -----------------------------------------------
This almost works. However, some tests still fail:
Failed Test Status Wstat Total Fail Failed List of failed
----------------------------------------------------------------------------
---
t/astress.t 25 21 84.00% 4-24
t/namespaces.t 268 1024 16 15 93.75% 2-16
t/skip.t 268 1024 4 3 75.00% 2-4
Failed 3/13 test scripts, 76.92% okay. 39/113 subtests failed, 65.49% okay.
I am looking at the remaining problems, and intend to fix them soon.
Regards,
Nico Verwer
[EMAIL PROTECTED]