Hi Mikael,<br><br>The srfi replacements you sent got rid of Black Hole's compiler errors (thanks again), but 1.scm should not be used. Black Hole's original 1.scm is correct.<br><br>The problem with the new version is that its export clause forgets to export the extended version of <map>. This is the srfi-1 version of <map> that takes lists of differing lengths, rather than the r5rs version that doesn't. The problem is in line 239:<br>

<br>    append-map append-map! map! pair-for-each filter-map map-in-order<br><br>which originally read:<br><br>    map append-map append-map! map! pair-for-each filter-map map-in-order<br>
<br>Best,<br>-- Matt<br><br><div class="gmail_quote">On Wed, May 18, 2011 at 2:37 PM, Matthew Koichi Grimes <span dir="ltr"><<a href="mailto:mkg@cs.nyu.edu">mkg@cs.nyu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Great, that seems to have done the trick!<br><br>I got some compiler warnings when I loaded the sfri's individually, which I'll share below. I'm using gcc 4.4.5, on Ubuntu 10.10. Most of the warnings are "deprecated conversion from string constant to ‘char*’", but srfi/13 gives warnings about undefined variables, which is a bit more concerning:<br>


<br>> (import (std srfi/13))<br>/usr/local/Gambit-C/lib/modules/std/srfi/14 is being compiled...<br>13.c:536: warning: deprecated conversion from string constant to ‘char*’<br>13.c:73648: warning: deprecated conversion from string constant to ‘char*’<br>


*** WARNING -- Variable "13_#char-titlecase" used in module "13.o2" is undefined<br>*** WARNING -- Variable "13_#char-cased?" used in module "13.o2" is undefined<br><br>> (import (std srfi/1))<br>


/usr/local/Gambit-C/lib/modules/std/srfi/1 is being compiled...<br>1.c:481: warning: deprecated conversion from string constant to ‘char*’<br>1.c:29762: warning: deprecated conversion from string constant to ‘char*’<br><br>


> (import (std srfi/14))<br>(no compilation, no messages)<br><br>> (import (std srfi/16))<br>/usr/local/Gambit-C/lib/modules/std/srfi/16 is being compiled...<br>16.c:35: warning: deprecated conversion from string constant to ‘char*’<br>


16.c:89: warning: deprecated conversion from string constant to ‘char*’<br><br>> (import (std srfi/19))<br>
/usr/local/Gambit-C/lib/modules/std/srfi/19 is being compiled...<br>
19.c:1025: warning: deprecated conversion from string constant to ‘char*’<br>19.c:39474: warning: deprecated conversion from string constant to ‘char*’<br><br>> (import (std srfi/95))<br>/usr/local/Gambit-C/lib/modules/std/srfi/95 is being compiled...<br>


95.c:111: warning: deprecated conversion from string constant to ‘char*’<br>95.c:4711: warning: deprecated conversion from string constant to ‘char*’<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Wed, May 18, 2011 at 1:40 PM, Mikael <span dir="ltr"><<a href="mailto:mikael.rcv@gmail.com" target="_blank">mikael.rcv@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Please check if the attached files are valuable as replacement content for your std/srfi directory.<br>


<br>If they are, please email Per updates (for instance in diff format).<br><br>Alternatively you could use the BH syntactictower branch, it's not as tested as the default one though. In there the name of the srfi 13 module is (srfi strings) afaik.<br>




<br>Mikael<br><br><br><div class="gmail_quote"><div><div></div><div>2011/5/18 Matthew Koichi Grimes <span dir="ltr"><<a href="mailto:mkg@cs.nyu.edu" target="_blank">mkg@cs.nyu.edu</a>></span><br></div></div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>

I'm having trouble getting up and running with blackhole. I've installed it, and when I run "bsc", I get the following prompt:<br><br>  Loaded Black Hole.<br>
  Gambit v4.6.1<br>
<br>
  > <br>
<br>So far, so good. However, when I try to import srfi-13 (bundled with blackhole), I get this error:<br><br>> (import (std srfi/13))<br>*** ERROR -- Wrong number of arguments passed to procedure<br>(14_#char-set-adjoin!<br>






 '#<14_#:char-set #2 14_#s: "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\...<br> #\xb5)<br><br>For reference, here are the steps I've followed to install blackhole:<br><br>1) installed the blackhole/ directory in /usr/local/share/<br>






2) put in the PATH a soft link to gsc called bsc.<br>3) compiled blackhole by running "gsc build" from within the blackhole directory.<br>4) Added the following to .gambcini:<br><br>(let ((blackhole-path "/usr/local/share/blackhole"))<br>






          (and (equal? (path-strip-directory (car (command-line))) "bsc")<br>               (load (path-expand "build" blackhole-path))<br>               (begin <br>                 (set! module#ns-file (path-expand "ns.dat" blackhole-path))<br>






                 (println "Loaded Black Hole."))))<br><br><br>Any suggestions would be greatly appreciated,<br>-- Matt<br>
<br></div></div>_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca" target="_blank">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
<br></blockquote></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br>