Is anyone having problems compiling SSAX-SXML on Gambit?
We used Dominique Boucher's SSAX-SXML. It can be found on the Gambit page's dumping grounds.
Essentially there has been two issues with this distribution, both of which are easily fixed:
- Add namespace to the distribution. This is done by adding -prelude '(##namespace ("ssax-sxml#")) (##include "~~/lib/gambit#.scm") (##include "~~/lib/ssax-sxml/ssax-sxml#.scm")' to the gsc compile rows in the Makefile. Make ssax-sxml# contain (##namespace ("ssax-sxml#" [list of the ssax-sxml functions you want to use] )) . - Patch the srl:appy-string-append of sxml-tools/serializer.scm , in order never to pass string-append more than 8192 parameters. We did this through rewriting it to use a string port instead. Having this not fixed does cause a problem, I think it is when serializing SXML to XML without passing a port parameter.
Also I have a lose memory that that SSAX-SXML distribution is compiled with (declare (not safe)) by default, which may not be preferable.
M
2008/8/16 Bradley Lucier lucier@math.purdue.edu
On Aug 15, 2008, at 10:00 PM, Frederick LeMaster wrote:
Adjusting gambit to accept .c files not in the current directory will allow SSAX to build. There's a patch for that in bug #41.
That's not enough for any of the SSAX sources I found (CVS, the gambit one from 2006) to build using the Makefiles.
Brad
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list