[Chicken-users] remote-mailbox

2011-07-09 Thread David N Murray
$ csi CHICKEN (c)2008-2011 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.7.0 linux-unix-gnu-x86 [ manyargs dload ptables ] compiled 2011-07-09 on localhost (Linux) #;1 (use remote-mailbox) Error: (import) during expansion of (import ...) - cannot import from undefined module:

[Chicken-users] wiki 500

2011-07-07 Thread David N Murray
Hi, I'm not sure where to direct this to, but entering io:event-dispatch in the Identifier search field generates a 500 error. http://wiki.call-cc.org/search?text=ident=io:event-dispatch Thanks, Dave ___ Chicken-users mailing list

[Chicken-users] double-free or corruption

2011-07-05 Thread David N Murray
Hi all, I have some code that runs fine on my Mac and under OpenBSD. Under Linux however, it crashes. Same code, all running under csi 4.7.0 64-bit. Could this be an issue with my code? I'm not sure I fully understand the ramifications of using shared structure with partition and append and

[Chicken-users] reload .so in csi?

2011-07-01 Thread David N Murray
Hi all, I run csi inside emacs. I have a .so file that occasionally needs to be updated. Is there a way to reload the .so after I re-make it, without having to exit csi? I've tried use, import, require-extension, and ,l the.so. It never picks up my changes. The only reliable solution is to

Re: [Chicken-users] reload .so in csi?

2011-07-01 Thread David N Murray
On Jul 1, Jim Ursetto scribed: On Jul 1, 2011, at 1:38 PM, Christian Kellermann wrote: A convenient way is to define a system comprising your source for the .so with the system egg (http://api.call-cc.org/doc/system). This uses the compile-file procedure to create a new .so name each time

Re: [Chicken-users] help -- segmentation fault when (import chicken)

2011-06-18 Thread David N Murray
On Jun 18, Christian Kellermann scribed: * HP Wei hpwe...@gmail.com [110618 03:53]: Machine: iMac Mac OS X 10.6.7 I installed chicken by the following command: sudo port install chicken I have no problem building chicken from sources on OS X 10.6.7. You need XCode installed and

[Chicken-users] posix strptime

2011-06-01 Thread David N Murray
Hi all, I'm trying to convert a time string to seconds and back and I'm having a problem using string-time, local-time-seconds, and seconds-local-time in unit posix: CHICKEN (c)2008-2011 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.7.0 openbsd-unix-gnu-x86-64 [ 64bit manyargs

Re: [Chicken-users] Possible numbers bug

2011-05-27 Thread David N Murray
On May 27, Christian Kellermann scribed: I forgot to add I am using a 64 bit linux machine for my tests. I've duplicated your (incorrect) result: CHICKEN (c)2008-2011 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.7.0 macosx-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]

Re: [Chicken-users] Possible numbers bug

2011-05-27 Thread David N Murray
On May 27, Kon Lovett scribed: Chicken x86: 520cbadfbf1e95567b1b49bd543fa8ab sauron:chicken-4.7.0 dnm$ csi -v CHICKEN (c)2008-2011 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.7.0 macosx-unix-gnu-x86-64 [ 64bit manyargs dload ptables ] compiled 2011-05-26 on sauron.local

Re: [Chicken-users] [wish list] chicken-install: show available eggs, upgrade all installed eggs?

2011-05-05 Thread David N Murray
On May 5, Felix scribed: For example, I may have several applications that use one or the other installed egg. Those eggs may be out of date, but I'm more interested in having my system running, so when I install new extensions, chicken-install will warn me when an egg requires higher

[Chicken-users] Diagnosing Compile Issues

2011-04-12 Thread David N Murray
Hi all, I have a source file that appears to load fine in csi but won't compile with csc. Any advice on how to diagnose what the compiler is complaining about? $ csi CHICKEN (c)2008-2011 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.6.7 macosx-unix-gnu-x86-64 [ 64bit manyargs

[Chicken-users] Building My Own .so

2011-03-24 Thread David N Murray
Hi, I'm trying to wrap some utility functions in a module into a .so. I'm getting undefined symbol errors, and I'm not quite sure how to resolve them: $ csc -s lib.scm -j lib Undefined symbols: _C_regex_toplevel, referenced from: _f_1400 in lib.o _C_symbol_2dutils_toplevel, referenced

[Chicken-users] ezxdisp install on OS X

2011-03-12 Thread David N Murray
Hi, I couldn't chicken-install ezxdisp on my Mac. It failed with the complaint /usr/local/bin/csc -feature compiling-extension -setup-mode-s -O3 -d1 -X easyffi ezxdisp.scm -C -w ezxdisp-x11.c -C -I. -I/usr/X11R6/include -L -L -L/usr/X11R6/lib -lX11 -j ezxdisp ld: -L must be immediately

Re: [Chicken-users] Big Randoms

2011-03-11 Thread David N Murray
On Mar 10, Kon Lovett scribed: Hi David, I get the folllowing: $ csi -n CHICKEN (c)2008-2011 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.6.5 macosx-unix-gnu-ppc [ manyargs dload ptables ] compiled 2011-02-03 on Nikko.local (Darwin) [snip] #;3 (random-integer (expt 2

Re: [Chicken-users] Big Randoms

2011-03-11 Thread David N Murray
On Mar 11, David N Murray scribed: #;2 (random-integer (expt 2 32)) Floating point exception Looking at the difference between your csi announcement and mine, I notice that I'm building the 64bit version. Is there something I can do to build chicken and the egg (and use gdb?) to get more

Re: [Chicken-users] Big Randoms

2011-03-11 Thread David N Murray
On Mar 11, Christian Kellermann scribed: If we are lucky we can see something obvious. :) For posterity (and the archives) $ ulimit -c unlimited # enables coredumps but, I did it this way, instead: $ cat t1.scm (use srfi-27) (print (random-integer (expt 2 32))) $ csc -o t1 -k t1.scm $ gdb t1

[Chicken-users] getenv

2011-03-11 Thread David N Murray
Hi all, I'm not sure fixing the docs is the correct thing here, but I'll be happy to do it. http://wiki.call-cc.org/man/4/Unit%20library#get-environment-variable [procedure] (get-environment-variable STRING) [procedure] (getenv STRING) Returns the value of the environment variable STRING or #f

[Chicken-users] Big Randoms

2011-03-10 Thread David N Murray
$ csi CHICKEN (c)2008-2010 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.6.0 macosx-unix-gnu-x86-64 [ 64bit manyargs dload ptables ] compiled 2010-12-08 on sauron.local (Darwin) #;1 (use srfi-27) [snip loadings] ; loading /usr/local/lib/chicken/5/numbers.import.so ... ; loading

[Chicken-users] Installing Eggs in 4.3.0

2010-01-18 Thread David N Murray
Hi all, I just installed 4.3.0 on my Vista box and got it built (at least it looks like it's built). I figured it might be a good idea to update the eggs I have installed with the new csc, so I tried: chicken-install defstruct It complains that it can't find chicken.h (and generates a zillion

[Chicken-users] Embedded C Question

2010-01-05 Thread David N Murray
(apologies if this posts twice to the list. originally sent 20 hours ago) Hi all, I've been toying around with embedded C just to learn how. I have the following sample: (use easyffi) (import foreign) # #include stdio.h #include time.h const char* dummy(char* dst, int len, int seconds) {

[Chicken-users] Embedded C Question

2010-01-05 Thread David N Murray
Hi all, I've been toying around with embedded C just to learn how. I have the following sample: (use easyffi) (import foreign) # #include stdio.h #include time.h const char* dummy(char* dst, int len, int seconds) { struct tm* tm = localtime(seconds); snprintf(dst, len,

[Chicken-users] csi segfault on date-string

2009-12-13 Thread David N Murray
(Should this go to the dev list?) This took me a while to find. It was buried in a record-printer of a defstruct that had a default of 0 for a time field: $ csi -n CHICKEN (c)2008-2009 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.1.7 openbsd-unix-gnu-x86-64 [ 64bit manyargs

Re: [Chicken-users] Build error

2009-10-22 Thread David N Murray
I thought this sounded familiar: http://lists.gnu.org/archive/html/chicken-users/2009-08/msg00069.html But, there doesn't seem to be a resolution in the thread. I couldn't get make PLATFORM=mingw-msys to work either, but I can't remember why. I did get 4.2.0 built using a command prompt (CMD,

Re: [Chicken-users] srfi-19 DST

2009-09-13 Thread David N Murray
Sorry for the extraordinarily long-winded email the first time around. The attached patch seems to fix the problem: d...@kili:~/tr/scheme$ export TZ=EST5EDT d...@kili:~/tr/scheme$ csi -q t.scm #,(date 39200 9 4 2 13 9 2009 -14400 EDT #t #f #f #f) Sun Sep 13 02:04:09-0400 2009

Re: [Chicken-users] readline?

2009-09-13 Thread David N Murray
On Sep 13, Jim Ursetto scribed: On Sat, Sep 12, 2009 at 10:39 PM, David N Murray dmur...@jsbsystems.com wrote: d...@kili:~/tr/scheme$ cat ~/.csirc (require 'readline) (current-input-port (make-gnu-readline-port)) (gnu-history-install-file-manager (string-append (or (getenv HOME

[Chicken-users] readline?

2009-09-12 Thread David N Murray
Sometimes I think it's just me: d...@kili:~/tr/scheme$ cat ~/.csirc (require 'readline) (current-input-port (make-gnu-readline-port)) (gnu-history-install-file-manager (string-append (or (getenv HOME) .) /.csi.history)) d...@kili:~/tr/scheme$ csi CHICKEN (c)2008-2009 The Chicken Team

[Chicken-users] srfi-19 DST

2009-09-12 Thread David N Murray
Hi Kon! Under OpenBSD, I'm required to set the TZ environment variable: d...@kili:~/tr/scheme$ csi CHICKEN (c)2008-2009 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.1.7 openbsd-unix-gnu-x86-64 [ 64bit manyargs dload ptables applyhook ] compiled 2009-09-02 on kili.jsbsystems.com

Re: [Chicken-users] srfi-29 on 4.1.7

2009-09-07 Thread David N Murray
On Sep 2, Kon Lovett scribed: I am working on srfi-19 but this will not be available until Fri. Thanks Kon. I tried to install srfi-19 and it requires type-errors:1.4.0. Both chicken.kitten-technologies.co.uk and galinha.ucpel.tche.br are reporting Error: [Server] version not found:

[Chicken-users] Code Organization

2009-09-07 Thread David N Murray
Hi all, I'm coming from an SBCL/Slime environment and would like some advice on code organization. I'm working on a medium-sized project and have multiple source code files for the various sections of the program. I have a similar environment setup in Emacs to replace slime and be able to run

Re: [Chicken-users] Re: latest (rev 15708) build on OpenBSD

2009-09-05 Thread David N Murray
On Sep 4, felix scribed: Does the C library on OpenBSD handle +inf. in it's strtol? It looks like it doesn't (see convert_string_to_number in runtime.c). No, it doesn't. Is this the fix? All tests run after I applied this. --- runtime.c.~1~ Wed Sep 2 15:58:55 2009 +++ runtime.c

[Chicken-users] latest (rev 15708) build on OpenBSD

2009-09-02 Thread David N Murray
Hi, Should this go to chicken-devel? I just checked out the latest via subversion and was trying to build it on an OpenBSD AMD64 box. It built fine, but runtests.sh fails: library tests ... Error: unbound variable: +inf. Call history:

Re: [Chicken-users] srfi-19

2009-09-02 Thread David N Murray
On Sep 2, Christian Kellermann scribed: find a patch for the srfi-19 egg attached to this email. When applied to the trunk of the chicken3 egg it will happily install on chicken 4. This has been sent to Kon for review, so don't consider this one blessed by the original author. Maybe Kon will

[Chicken-users] 4.1 check-errors

2009-09-02 Thread David N Murray
I'm trying to chicken-install locale and it requires check-errors. check-errors fails to build because it tries to import srfi-12 (the require is commented out, but the egg won't install). I removed srfi-12 from the import list of conditions.scm (patch attached) and the tests all ran fine.

[Chicken-users] srfi-19

2009-09-01 Thread David N Murray
Hi all, I'm a noob to Scheme Chicken, so forgive me if this is really trivial, but I'm struggling mightily. # csi CHICKEN (c)2008-2009 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.1.0 - SVN rev. 15292 openbsd-unix-gnu-x86-64 [ 64bit manyargs dload ptables applyhook ] compiled