From tkunze@ccrma.stanford.edu Wed Mar 31 10:37:47 1999 Received: from ccrma.stanford.edu (ccrma.Stanford.EDU [36.49.0.84]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id KAA07213 for ; Wed, 31 Mar 1999 10:37:39 -0800 (PST) Received: from ccrma.stanford.edu ([207.97.74.43]) by ccrma.stanford.edu (8.8.8/8.8.8) with ESMTP id KAA08952; Wed, 31 Mar 1999 10:39:10 -0800 (PST) Sender: tkunze@ccrma.stanford.edu Message-ID: <37026837.CC59E152@ccrma.stanford.edu> Date: Wed, 31 Mar 1999 13:23:51 -0500 From: Tobias Kunze X-Mailer: Mozilla 4.05 [en] (X11; I; IRIX 6.5 IP22) MIME-Version: 1.0 To: clisp-list@seagull.cons.org CC: Multiple recipients of list Subject: Re: Newest clisp broken? References: <3701E6C1.7C259FF2@sci.fi> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit yes, let's take that off-line. Thanks to Sam, though! -Tobias Matti Koskinen wrote: > > first thanks to all for solving this problem. i got cm built now. > still, there is something weird. it doesn't work. stella starts > and stella-commands work, but everything in parentheses are silently > ignored, but this may be an issue to discuss on cm-list. From hoehle@zeus.gmd.de Wed Mar 31 20:58:06 1999 Received: from mail.gmd.de (mail.gmd.de [129.26.8.90]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id UAA12996 for ; Wed, 31 Mar 1999 20:57:29 -0800 (PST) Received: from zeus.gmd.de (zeus.gmd.de [129.26.145.1]) by mail.gmd.de (8.8.8/8.8.8) with ESMTP id GAA09724 for ; Thu, 1 Apr 1999 06:59:01 +0200 (MET DST) Received: (from hoehle@localhost) by zeus.gmd.de (8.9.1/8.9.1) id GAA29156 for clisp-list@seagull.cons.org; Thu, 1 Apr 1999 06:58:59 +0200 (MET DST) Date: Thu, 1 Apr 1999 06:58:59 +0200 (MET DST) From: Joerg Hoehle Message-Id: <199904010458.GAA29156@zeus.gmd.de> To: clisp-list@seagull.cons.org Subject: Re: Require and CLOS Hi, > CLISP 1995-04-04 (April 1995) > > A bit old... Old versions of CLISP had CLOS built-in, and yours obviously has, since you have a file clos.lsp. But you needed to (use-package "CLOS") from your package with old CLISPs. 21 July 1996 ============ User visible changes -------------------- * The package CLOS is now among the default use list of a new package. (USE-PACKAGE "CLOS") is not needed any more. To use PCL, you now need to (UNUSE-PACKAGE "CLOS") explicitly. > Perhaps this package is badly damaged and I should dump it. I don't think it is :-) Hope this helps & sorry for the late answer, Jorg Hohle. From hoehle@zeus.gmd.de Wed Mar 31 21:06:29 1999 Received: from mail.gmd.de (mail.gmd.de [129.26.8.90]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id VAA13049 for ; Wed, 31 Mar 1999 21:04:19 -0800 (PST) Received: from zeus.gmd.de (zeus.gmd.de [129.26.145.1]) by mail.gmd.de (8.8.8/8.8.8) with ESMTP id HAA02449 for ; Thu, 1 Apr 1999 07:05:49 +0200 (MET DST) Received: (from hoehle@localhost) by zeus.gmd.de (8.9.1/8.9.1) id HAA29253 for clisp-list@seagull.cons.org; Thu, 1 Apr 1999 07:05:49 +0200 (MET DST) Date: Thu, 1 Apr 1999 07:05:49 +0200 (MET DST) From: Joerg Hoehle Message-Id: <199904010505.HAA29253@zeus.gmd.de> To: clisp-list@seagull.cons.org Subject: Re: communication via unix pipes Alexander Vorobiev writes: > Or maybe it is possible to avoid using /dev/fd/* files and to connect streams > directly to open file descriptors? Mega hack below: For some time, I'd been wondering if by setting CLISP's internal stream object structure using some sys::... calls (like the compiler, inspector or describe do read-only), an open stream could be setf'd to a different fd... Basically, you have platform dependent code (UNIX) and want to get one of the extra open files connected to a regular CLISP stream. Jorg. From tkunze@ccrma.stanford.edu Thu Apr 1 01:40:13 1999 Received: from ccrma.stanford.edu (ccrma.Stanford.EDU [36.49.0.84]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id BAA16140 for ; Thu, 1 Apr 1999 01:40:08 -0800 (PST) Received: from ccrma.stanford.edu ([207.97.74.33]) by ccrma.stanford.edu (8.8.8/8.8.8) with ESMTP id BAA16894 for ; Thu, 1 Apr 1999 01:41:31 -0800 (PST) Sender: tkunze@ccrma.stanford.edu Message-ID: <37033BB6.FAAE63F1@ccrma.stanford.edu> Date: Thu, 01 Apr 1999 04:26:14 -0500 From: Tobias Kunze X-Mailer: Mozilla 4.05 [en] (X11; I; IRIX 6.5 IP22) MIME-Version: 1.0 To: ":clisp" Subject: clisp-1999-01-08: make lispinit.mem SGI Error Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi- Trying to build the newest clisp (1999-01-08) in order to research Matti's problems, but the build fails on my SGI running IRIX 6.5.3f in make lispinit.mem, when the freshly compiled fasls are loaded into the interpreted image: % cd /usr/local/lisp/clisp-1999-01-08/ % setenv CC "cc -woff all" % ./configure % cd src % ./makemake --with-readline --with-dynamic-ffi --with-gettext > Makefile % make config.lsp ; edit config.lsp (or copy from old build) % make init % make allc % make libreadline.a % make lisp.run % make interpreted.mem % make lispinit.mem [compiling all files...] ./lisp.run -N locale -norc -x "(load \"init.fas\") (sys::%saveinitmem) (exit)" i i i i i i i ooooo o ooooooo ooooo ooooo I I I I I I I 8 8 8 8 8 o 8 8 I I I I I I I 8 8 8 8 8 8 I I I I I I I 8 8 8 ooooo 8oooo I \ `+' / I 8 8 8 8 8 \ `-+-' / 8 o 8 8 o 8 8 `-__|__-' ooooo 8oooooo ooo8ooo ooooo 8 | ------+------ Copyright (c) Bruno Haible, Michael Stoll 1992, 1993 Copyright (c) Bruno Haible, Marcus Daniels 1994-1997 Copyright (c) Pierpaolo Bernardi, Sam Steingold 1998 ;; Loading file defseq.fas ...*** Termination code 138 (bu21) The call is the first LOAD call (Top-level-form-32) in init.fas. When I comment it out, the next load fails (with the same bus error). The form is: #Y(#:TOP-LEVEL-FORM-32 #15Y(00 00 00 00 00 00 00 00 00 01 DA 2F 01 19 01) "defseq" LOAD ) Any ideas what might go wrong here? Is the compiler producing bad binary code? The default SGI_ABI is -n32. I also note that the fasl files start with a line (SYSTEM::VERSION '(19981031.)) which is obviously not 19990108. Is that ok? -Tobias From tl@exotica.inesc.pt Thu Apr 1 01:58:02 1999 Received: from inesc.inesc.pt (inesc.inesc.pt [146.193.0.1]) by seagull.cdrom.com (8.8.8/8.6.6) with SMTP id BAA16365 for ; Thu, 1 Apr 1999 01:57:40 -0800 (PST) Received: from exotica.inesc.pt by inesc.inesc.pt with SMTP; id AA29169 (/); Thu, 1 Apr 1999 10:59:16 +0100 Received: from exotica (tl@localhost [127.0.0.1]) by exotica.inesc.pt (8.8.7/8.8.7) with ESMTP id KAA06662; Thu, 1 Apr 1999 10:59:56 +0100 Message-Id: <199904010959.KAA06662@exotica.inesc.pt> X-Mailer: exmh version 2.0.2 To: clisp-list@clisp.cons.org Cc: tl@exotica.inesc.pt Subject: ffi & float: what's wrong ? Reply-To: thibault.langlois@inesc.pt Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 01 Apr 1999 10:59:56 +0100 From: Thibault Langlois Hello, I trying to use clisp's ffi. I have some problems using floats. The building process seem ok but the function that return float dot not give expected results. Can anybody help me ? Thibault Langlois Here are the files: ffitest.c: int twice (int n) { return 2 * n; } float timespi (float n) { return 3.14 * n; } callffitest.lsp: (use-package 'ffi) (def-c-call-out twice (:name "twice") (:arguments (n int)) (:return-type int)) (def-c-call-out timespi (:name "timespi") (:arguments (n single-float)) (:return-type single-float)) Then I follow instructions from impnotes.html: azimuth:/usr/local/src/clisp-1999-03-25/four$ clisp-link create-module-set ffitest callffitest.c azimuth:/usr/local/src/clisp-1999-03-25/four$ gcc -c ffitest.c azimuth:/usr/local/src/clisp-1999-03-25/four$ cd ffitest azimuth:/usr/local/src/clisp-1999-03-25/four/ffitest$ ln -s ../ffitest.o ffitest.o azimuth:/usr/local/src/clisp-1999-03-25/four/ffitest$ cd .. azimuth:/usr/local/src/clisp-1999-03-25/four$ base/lisp.run -M base/lispinit.mem -c callffitest.lsp i i i i i i i ooooo o ooooooo ooooo ooooo I I I I I I I 8 8 8 8 8 o 8 8 I \ `+' / I 8 8 8 8 8 8 \ `-+-' / 8 8 8 ooooo 8oooo `-__|__-' 8 8 8 8 8 | 8 o 8 8 o 8 8 ------+------ ooooo 8oooooo ooo8ooo ooooo 8 Copyright (c) Bruno Haible, Michael Stoll 1992, 1993 Copyright (c) Bruno Haible, Marcus Daniels 1994-1997 Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998 Copyright (c) Bruno Haible, Sam Steingold 1999 Compiling file /usr/local/src/clisp-1999-03-25/four/callffitest.lsp ... Compilation of file /usr/local/src/clisp-1999-03-25/four/callffitest.lsp is finished. 0 errors, 0 warnings Bye. azimuth:/usr/local/src/clisp-1999-03-25/four$ clisp-link add-module-set ffitest base base+ffitest gcc -O -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -fomit-frame-pointer -O2 -fexpensive-optimizations -DUNICODE -DDYNAMIC_FFI -I/usr/local/src/clisp-1999-03-25/four -c callffitest.c In file included from callffitest.c:1: /usr/local/src/clisp-1999-03-25/four/clisp.h:456: warning: register used for two global register variables gcc -O -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -fomit-frame-pointer -O2 -fexpensive-optimizations -DUNICODE -DDYNAMIC_FFI -I/usr/local/src/clisp-1999-03-25/four -c modules.c In file included from modules.d:11: /usr/local/src/clisp-1999-03-25/four/clisp.h:456: warning: register used for two global register variables gcc -O -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -fomit-frame-pointer -O2 -fexpensive-optimizations -DUNICODE -DDYNAMIC_FFI -x none modules.o callffitest.o ffitest.o lisp.a libsigsegv.a libintl.a libreadline.a libavcall.a libcallback.a -lncurses -ldl -o lisp.run base+ffitest/lisp.run -M base/lispinit.mem -q -i -x (saveinitmem "base+ffitest/lispinit.mem") 832536 ; 524288 azimuth:/usr/local/src/clisp-1999-03-25/four$ base+ffitest/lisp.run -M base+ffitest/lispinit.mem -i callffitest i i i i i i i ooooo o ooooooo ooooo ooooo I I I I I I I 8 8 8 8 8 o 8 8 I \ `+' / I 8 8 8 8 8 8 \ `-+-' / 8 8 8 ooooo 8oooo `-__|__-' 8 8 8 8 8 | 8 o 8 8 o 8 8 ------+------ ooooo 8oooooo ooo8ooo ooooo 8 Copyright (c) Bruno Haible, Michael Stoll 1992, 1993 Copyright (c) Bruno Haible, Marcus Daniels 1994-1997 Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998 Copyright (c) Bruno Haible, Sam Steingold 1999 ;; Loading file /usr/local/src/clisp-1999-03-25/four/callffitest.lsp ... ;; Loading of file /usr/local/src/clisp-1999-03-25/four/callffitest.lsp is finished. [1]> (twice 5) 10 ===========> correct [2]> (timespi 2) *** - 2 cannot be converted to the foreign type SINGLE-FLOAT ===========> ok 1. Break [3]> [4]> (timespi 2.0) 0.0 ===========> why ? I use a freshly compiled clisp (1999-03-25) on a GNU/Linux RedHat5.2 PC with kernel 2.2.2 From haible@ilog.fr Thu Apr 1 09:09:30 1999 Received: from sceaux.ilog.fr (sceaux.ilog.fr [193.55.64.10]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id JAA20986 for ; Thu, 1 Apr 1999 09:09:25 -0800 (PST) Received: from ilog.ilog.fr ([172.17.4.22]) by sceaux.ilog.fr (8.9.1/8.9.1) with ESMTP id TAA16296 for ; Thu, 1 Apr 1999 19:11:03 +0200 (MET DST) Received: from jaures.ilog.fr (jaures.ilog.fr [172.16.1.81]) by ilog.ilog.fr (8.8.8/8.7.3) with ESMTP id TAA27217; Thu, 1 Apr 1999 19:09:59 +0200 (MET DST) From: Bruno Haible Received: (from haible@localhost) by jaures.ilog.fr (8.9.0/8.9.0) id TAA04354; Thu, 1 Apr 1999 19:10:54 +0200 (MET DST) Date: Thu, 1 Apr 1999 19:10:54 +0200 (MET DST) Message-Id: <199904011710.TAA04354@jaures.ilog.fr> To: clisp-list@seagull.cons.org Subject: Re: communication via unix pipes In-Reply-To: References: Alexander Vorobiev writes: > The first thing i tried was to use /dev/fd/* files (as I know > appropriate file descriptors): > ... > Is it possible to make clisp deal with such "special" files properly? It will be fixed in tomorrow's snapshot (ftp://cellar.goems.com/pub/clisp/) and future releases. Thanks for the suggestion. Bruno From Davdres@aol.com Thu Apr 1 19:18:31 1999 Received: from imo25.mx.aol.com (imo25.mx.aol.com [198.81.17.69]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id TAA26730 for ; Thu, 1 Apr 1999 19:16:40 -0800 (PST) From: Davdres@aol.com Received: from Davdres@aol.com by imo25.mx.aol.com (IMOv20.2) id 8ZRGa21935 for ; Thu, 1 Apr 1999 22:14:35 -0500 (EST) Message-ID: <165397fb.2435901b@aol.com> Date: Thu, 1 Apr 1999 22:14:35 EST Subject: Win 98 clisp page fault To: clisp-list@clisp.cons.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: AOL 4.0 for Windows 95 sub 205 Reply-To: Davdres@aol.com I have downloaded the clisp-win32.zip. The 1/08/99 version. I have a pentium 66 with 48 meg of ram running windows 98. I download clisp from one of the ftp sites available from the clip web site, http://clisp.cons.org/~haible/. Actually I have downloaded it twice. No matter how I run it I always end up with a page fault. Has anyone run into this? lisp -results in (no banner display): LISP caused an invalid page fault in module LISP.EXE at 015f:004014b9. Registers: EAX=00e42118 CS=015f EIP=004014b9 EFLGS=00010283 EBX=00e42118 SS=0167 ESP=0074d51c EBP=00d9006c ECX=ffffff8b DS=0167 ESI=00db78dc FS=3ed7 EDX=00e40e1c ES=0167 EDI=00e1006c GS=0000 Bytes at CS:EIP: 8b 40 04 0f be c8 49 83 f9 08 77 14 ff 24 8d 49 Stack dump: 00402400 00e42118 0074d930 0074d7f8 00000004 00e40df4 0040183e 00e40df4 0000003c 00000000 004d08cc 00000000 00000000 00000000 00000000 00000000 list -M lispinit.mem - after display of the banner results in: LISP caused an invalid page fault in module LISP.EXE at 015f:00466b3d. Registers: EAX=01325427 CS=015f EIP=00466b3d EFLGS=00010246 EBX=00000080 SS=0167 ESP=00664cb8 EBP=006652d8 ECX=012add01 DS=0167 ESI=012cd79d FS=193f EDX=00002a02 ES=0167 EDI=00000004 GS=0000 Bytes at CS:EIP: 8b 40 fd 3b 05 08 12 4b 00 74 7e 8b c8 80 e1 07 Stack dump: 00000004 ffffff7f 0041616d 00000001 012c8cf0 00000080 00000000 00000000 00664cc4 00000000 00000000 012cd79c 00e40f2c 00664e64 012cfff4 00e40eb4 From haible@ilog.fr Fri Apr 2 02:41:21 1999 Received: from sceaux.ilog.fr (sceaux.ilog.fr [193.55.64.10]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id CAA01057 for ; Fri, 2 Apr 1999 02:40:51 -0800 (PST) Received: from ilog.ilog.fr ([172.17.4.22]) by sceaux.ilog.fr (8.9.1/8.9.1) with ESMTP id MAA03195 for ; Fri, 2 Apr 1999 12:42:30 +0200 (MET DST) Received: from jaures.ilog.fr (jaures.ilog.fr [172.16.1.81]) by ilog.ilog.fr (8.8.8/8.7.3) with ESMTP id MAA09832 for ; Fri, 2 Apr 1999 12:41:27 +0200 (MET DST) From: Bruno Haible Received: (from haible@localhost) by jaures.ilog.fr (8.9.0/8.9.0) id MAA07032; Fri, 2 Apr 1999 12:42:21 +0200 (MET DST) Date: Fri, 2 Apr 1999 12:42:21 +0200 (MET DST) Message-Id: <199904021042.MAA07032@jaures.ilog.fr> To: clisp-list@clisp.cons.org Subject: Problems With Windows 95 Binary [Message forwarded from . Please CC him in your replies. -- Bruno.] Greetings, I am running into trouble trying to execute the clisp binary for Windows 95, plagued with an illegal operation: LISP caused an invalid page fault in module LISP.EXE at 0137:004014b9. Registers: EAX=00b41000 CS=0137 EIP=004014b9 EFLGS=00010287 EBX=00b41000 SS=013f ESP=0074d51c EBP=00aa006c ECX=00000008 DS=013f ESI=00ad88fc FS=348f EDX=00b50138 ES=013f EDI=00b40068 GS=0000 Bytes at CS:EIP: 8b 40 04 0f be c8 49 83 f9 08 77 14 ff 24 8d 49 Stack dump: 00402400 00b41000 0074d930 0074d7f8 00000004 00b50110 0040183e 00b50110 0000003c 00000000 004d08cc 00000000 00000000 00000000 00000000 00000000 I have attempted different win95 versions of clisp from different sites, and I have also tried to execute the lisp application on other PCs, always ending in the same or at least similar result above. Is this a common problem with a common fix? Anybody run into something like this? Any help would be appreciated, and advanced apologies if this problem is documented in a FAQ somewhere; I'm a clisp newbie. --Sean From victor20@together.net Fri Apr 2 05:34:07 1999 Received: from mx01.together.net (mx01.together.net [204.97.120.61]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id FAA02432 for ; Fri, 2 Apr 1999 05:33:56 -0800 (PST) Received: from default (dial-157-tnt-03.btvt.together.net [209.91.3.157]) by mx01.together.net (8.8.7/8.8.8) with SMTP id IAA05939 for ; Fri, 2 Apr 1999 08:35:42 -0500 Message-ID: <3704F229.DA4@together.net> Date: Fri, 02 Apr 1999 08:36:57 -0800 From: Sean Horner Reply-To: victor20@together.net Organization: Fuzzy Dice Publishing X-Mailer: Mozilla 3.01Gold (Win95; I) MIME-Version: 1.0 To: clisp-list@clisp.cons.org Subject: Problems With Windows 95 Clisp Binary Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Greetings, I am running into trouble trying to execute the clisp binary for Windows 95, plagued with an illegal operation: LISP caused an invalid page fault in module LISP.EXE at 0137:004014b9. Registers: EAX=00b41000 CS=0137 EIP=004014b9 EFLGS=00010287 EBX=00b41000 SS=013f ESP=0074d51c EBP=00aa006c ECX=00000008 DS=013f ESI=00ad88fc FS=348f EDX=00b50138 ES=013f EDI=00b40068 GS=0000 Bytes at CS:EIP: 8b 40 04 0f be c8 49 83 f9 08 77 14 ff 24 8d 49 Stack dump: 00402400 00b41000 0074d930 0074d7f8 00000004 00b50110 0040183e 00b50110 0000003c 00000000 004d08cc 00000000 00000000 00000000 00000000 00000000 I have attempted different win95 versions of clisp from different sites, and I have also tried to execute the lisp application on other PCs, always ending in the same or at least similar result above. Is this a common problem with a common fix? Anybody run into something like this? Any help would be appreciated, and advanced apologies if this problem is documented in a FAQ somewhere; I'm a clisp newbie. --Sean From sparrow@sparrow.diamant.ru Mon Apr 5 04:19:04 1999 Received: from sparrow.diamant.ru (qmailr@sparrow.diamant.ru [194.186.43.21]) by seagull.cdrom.com (8.8.8/8.6.6) with SMTP id EAA08216 for ; Mon, 5 Apr 1999 04:18:52 -0700 (PDT) Received: (qmail 3570 invoked by uid 50002); 5 Apr 1999 11:23:36 -0000 To: clisp-list@seagull.cons.org Subject: Re: communication via unix pipes References: <199903301759.TAA19387@jaures.ilog.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: Alexander Vorobiev Date: 05 Apr 1999 15:23:35 +0400 In-Reply-To: Bruno Haible's message of "Wed, 31 Mar 1999 00:48:03 -0800 (PST)" Message-ID: Lines: 28 User-Agent: Gnus/5.07008 (Pterodactyl Gnus v0.80) XEmacs/20.4 (Emerald) Bruno Haible writes: > Yes, really. The spec for CORBA bindings is already there, thanks to > Franz and Harlequin. See > ftp://ftp.omg.org/pub/docs/orbos/98-10-16.ps > ftp://ftp.omg.org/pub/docs/orbos/98-10-16.pdf Thanks for the links, it will be interesting to compare the spec with ILU lisp bindings ftp://ftp.parc.xerox.com/pub/ilu/2.0a14/manual-html/manual_8.html > You have the choice between ILU and MICO. ILU supports only Allegro CL but fortunately allegro-specific things are isolated and there are some recommendations on how to implement support for other lisps. It requires knowledge of some internals of the lisp implementations though (for connecting lisp gc to ilu network gc for example). I tried running demos (using ACL5/Linux Trial Edition) and it looked very impressive. AFAIK MICO supports only C++ (Java?) There is another free orb - ORBit (this is what GNOME project is based on). It supports only C at present. Guile bindings are planned. Alexander From sparrow@sparrow.diamant.ru Mon Apr 5 04:20:16 1999 Received: from sparrow.diamant.ru (qmailr@sparrow.diamant.ru [194.186.43.21]) by seagull.cdrom.com (8.8.8/8.6.6) with SMTP id EAA08247 for ; Mon, 5 Apr 1999 04:19:52 -0700 (PDT) Received: (qmail 3575 invoked by uid 50002); 5 Apr 1999 11:25:06 -0000 To: clisp-list@seagull.cons.org Subject: Re: communication via unix pipes References: <199904011710.TAA04354@jaures.ilog.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: Alexander Vorobiev Date: 05 Apr 1999 15:25:06 +0400 In-Reply-To: Bruno Haible's message of "Thu, 1 Apr 1999 09:22:56 -0800 (PST)" Message-ID: Lines: 14 User-Agent: Gnus/5.07008 (Pterodactyl Gnus v0.80) XEmacs/20.4 (Emerald) Bruno Haible writes: > It will be fixed in tomorrow's snapshot (ftp://cellar.goems.com/pub/clisp/) > and future releases. > > Thanks for the suggestion. Thanks a lot for quick help, I'll try it. Alexander -- It's not just a language, it's an adventure. Common Lisp. From haible@ilog.fr Tue Apr 6 03:03:00 1999 Received: from sceaux.ilog.fr (sceaux.ilog.fr [193.55.64.10]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id DAA23299 for ; Tue, 6 Apr 1999 03:02:59 -0700 (PDT) Received: from ilog.ilog.fr ([172.17.4.22]) by sceaux.ilog.fr (8.9.1/8.9.1) with ESMTP id MAA18815 for ; Tue, 6 Apr 1999 12:04:34 +0200 (MET DST) Received: from jaures.ilog.fr (jaures.ilog.fr [172.16.1.81]) by ilog.ilog.fr (8.8.8/8.7.3) with ESMTP id MAA12932; Tue, 6 Apr 1999 12:03:28 +0200 (MET DST) From: Bruno Haible Received: (from haible@localhost) by jaures.ilog.fr (8.9.0/8.9.0) id MAA26680; Tue, 6 Apr 1999 12:04:24 +0200 (MET DST) Date: Tue, 6 Apr 1999 12:04:24 +0200 (MET DST) Message-Id: <199904061004.MAA26680@jaures.ilog.fr> To: clisp-list@seagull.cons.org Subject: Re: ffi & float: what's wrong ? In-Reply-To: <199904010959.KAA06662@exotica.inesc.pt> References: <199904010959.KAA06662@exotica.inesc.pt> Thibault Langlois writes: > > Hello, > I trying to use clisp's ffi. I have some problems using floats. > The building process seem ok but the function that return float > dot not give expected results. Can anybody help me ? > ... > (def-c-call-out timespi > (:name "timespi") > (:arguments (n single-float)) > (:return-type single-float)) You compiled the function `timespi' with an ANSI C compiler, and unfortunately `def-c-call-out' implies :language :c, which means K&R C. K&R C and ANSI C differ in their calling convention for floats. So, you have to write (def-call-out timespi (:name "timespi") (:language :stdc) ; means ANSI C (:arguments (n single-float)) (:return-type single-float)) This is fixed in today's snapshot: def-c-call-out will now mean :language :stdc. Bruno PS: Thanks for the complete example. Without being able to reproduce the problem, I would have had no clue where to look. From tl@exotica.inesc.pt Wed Apr 7 11:59:32 1999 Received: from inesc.inesc.pt (inesc.inesc.pt [146.193.0.1]) by seagull.cdrom.com (8.8.8/8.6.6) with SMTP id LAA14332 for ; Wed, 7 Apr 1999 11:56:05 -0700 (PDT) Received: from exotica.inesc.pt by inesc.inesc.pt with SMTP; id AA01534 (/); Wed, 7 Apr 1999 19:58:18 +0100 Received: from exotica (tl@localhost [127.0.0.1]) by exotica.inesc.pt (8.8.7/8.8.7) with ESMTP id TAA18689; Wed, 7 Apr 1999 19:02:48 +0100 Message-Id: <199904071802.TAA18689@exotica.inesc.pt> X-Mailer: exmh version 2.0.2 To: clisp-list@seagull.cons.org Cc: tl@exotica.inesc.pt Reply-To: thibault.langlois@inesc.pt Subject: Re: ffi & float: what's wrong ? In-Reply-To: Your message of "Tue, 06 Apr 1999 03:12:32 PDT." <199904061004.MAA26680@jaures.ilog.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 07 Apr 1999 19:02:48 +0100 From: Thibault Langlois Everything is working as expected now. Thanks a lot. Thibault | You compiled the function `timespi' with an ANSI C compiler, and | unfortunately `def-c-call-out' implies :language :c, which means | K&R C. K&R C and ANSI C differ in their calling convention for floats. | So, you have to write | | (def-call-out timespi | (:name "timespi") | (:language :stdc) ; means ANSI C | (:arguments (n single-float)) | (:return-type single-float)) | | This is fixed in today's snapshot: def-c-call-out will now mean | :language :stdc. | | Bruno | | PS: Thanks for the complete example. Without being able to reproduce the | problem, I would have had no clue where to look. From hoehle@zeus.gmd.de Wed Apr 7 15:50:07 1999 Received: from mail.gmd.de (mail.gmd.de [129.26.8.90]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id PAA17376 for ; Wed, 7 Apr 1999 15:49:41 -0700 (PDT) Received: from zeus.gmd.de (zeus.gmd.de [129.26.145.1]) by mail.gmd.de (8.8.8/8.8.8) with ESMTP id AAA25976; Thu, 8 Apr 1999 00:51:54 +0200 (MET DST) Received: (from hoehle@localhost) by zeus.gmd.de (8.9.1/8.9.1) id AAA12075; Thu, 8 Apr 1999 00:51:53 +0200 (MET DST) Date: Thu, 8 Apr 1999 00:51:53 +0200 (MET DST) From: Joerg Hoehle Message-Id: <199904072251.AAA12075@zeus.gmd.de> To: clisp-devel@seagull.cons.org Cc: clisp-list@clisp.cons.org Subject: binary .fas (Was: compile-file & *print-pretty*) Hi, Raymond Toy wrote: > Do people actually hand-edit fas files or process them in any way > other than creating them via Clisp? Just curious. I've always > treated them as binary files. I've done so in the past. I copied system::REMOVE-OLD-DEFINITION and some little more from init.fas to another .fas file, possibly tests/tests.fas. The effect was that I had a self-contained .fas file that I could load from lisp.run without using -M lispinit.mem. So I could execute some tests running in compiled mode, e.g. without a possible interpreter or load/savemem bug or whatever I was hunting. Another benefit of this technique is that it allows you to get rid of *.mem, e.g. if you want a really small memory footprint, yet have many CL features still running because a lot is implemented in C (the missing features implemented in Lisp you can still copy&paste from other CLISP *.fas compiled sources with little work). Regards, Jorg Hohle. From toy@rtp.ericsson.se Thu Apr 8 15:17:07 1999 Received: from gwu.ericy.com (gwu.ericy.com [208.196.3.162]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id PAA01686 for ; Thu, 8 Apr 1999 15:17:01 -0700 (PDT) Received: from mr3.exu.ericsson.se ([138.85.11.55]) by gwu.ericy.com (8.8.8/8.8.8) with ESMTP id RAA08362 for ; Thu, 8 Apr 1999 17:20:34 -0500 (CDT) Received: from netmanager7.rtp.ericsson.se (netmanager7.rtp.ericsson.se [147.117.132.245]) by mr3.exu.ericsson.se (8.8.8/8.8.8) with ESMTP id RAA00753 for ; Thu, 8 Apr 1999 17:18:24 -0500 (CDT) Received: from rcur (wcsdsp4.rtp.ericsson.se [147.117.132.216]) by netmanager7.rtp.ericsson.se (8.9.1/8.6.4) with ESMTP id SAA08037 for ; Thu, 8 Apr 1999 18:18:20 -0400 (EDT) To: CLISP Mailing List Subject: Determining what a deftype is? Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII Date: Thu, 08 Apr 1999 18:18:33 -0400 Message-ID: <15671.923609913@rtp.ericsson.se> From: Raymond Toy Is there any way for CLISP to tell me what the definition of a deftype is? That is, say I've done (deftype int8 () '(integer -128 127)) Is there any way I can recover that information from CLISP? In CMUCL, I can do something like (kernel::type-specifier (c::specifier-type 'int8)) which returns (signed-byte 8). I suppose it doesn't really matter since CLISP doesn't use too much type information for optimization. Ray From haible@ilog.fr Fri Apr 9 00:21:12 1999 Received: from sceaux.ilog.fr (sceaux.ilog.fr [193.55.64.10]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id AAA07069 for ; Fri, 9 Apr 1999 00:20:58 -0700 (PDT) Received: from ilog.ilog.fr ([172.17.4.22]) by sceaux.ilog.fr (8.9.1/8.9.1) with ESMTP id JAA28209 for ; Fri, 9 Apr 1999 09:23:32 +0200 (MET DST) Received: from jaures.ilog.fr (jaures.ilog.fr [172.16.1.81]) by ilog.ilog.fr (8.8.8/8.7.3) with ESMTP id JAA13855; Fri, 9 Apr 1999 09:22:21 +0200 (MET DST) From: Bruno Haible Received: (from haible@localhost) by jaures.ilog.fr (8.9.0/8.9.0) id JAA11777; Fri, 9 Apr 1999 09:23:28 +0200 (MET DST) Date: Fri, 9 Apr 1999 09:23:28 +0200 (MET DST) Message-Id: <199904090723.JAA11777@jaures.ilog.fr> To: clisp-list@seagull.cons.org Subject: Re: Determining what a deftype is? In-Reply-To: <15671.923609913@rtp.ericsson.se> References: <15671.923609913@rtp.ericsson.se> Raymond Toy writes: > > Is there any way for CLISP to tell me what the definition of a deftype > is? > > That is, say I've done > > (deftype int8 () '(integer -128 127)) > > Is there any way I can recover that information from CLISP? Yes. (type-expand-1 'int8) ==> (integer -128 127) ; t (type-expand 'int8) ==> (integer -128 127) Both functions are documented in impnotes.html. Bruno From toy@rtp.ericsson.se Fri Apr 9 05:33:01 1999 Received: from gwa.ericsson.com (gwa.ericsson.com [198.215.127.2]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id FAA09779 for ; Fri, 9 Apr 1999 05:32:55 -0700 (PDT) Received: from mr3.exu.ericsson.se ([138.85.11.55]) by gwa.ericsson.com (8.8.8/8.8.8) with ESMTP id HAA06702 for ; Fri, 9 Apr 1999 07:35:01 -0500 (CDT) Received: from netmanager7.rtp.ericsson.se (netmanager7.rtp.ericsson.se [147.117.132.245]) by mr3.exu.ericsson.se (8.8.8/8.8.8) with ESMTP id HAA09129 for ; Fri, 9 Apr 1999 07:35:00 -0500 (CDT) Received: from rcur (wcsdsp4.rtp.ericsson.se [147.117.132.216]) by netmanager7.rtp.ericsson.se (8.9.1/8.6.4) with ESMTP id IAA28393 for ; Fri, 9 Apr 1999 08:34:55 -0400 (EDT) To: clisp-list@seagull.cons.org References: <199904090723.JAA11777@jaures.ilog.fr> Subject: Re: Determining what a deftype is? In-reply-to: (Your message of Fri, 09 Apr 1999 00:22:24 PDT.) <199904090723.JAA11777@jaures.ilog.fr> Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII Date: Fri, 09 Apr 1999 08:35:09 -0400 Message-ID: <16128.923661309@rtp.ericsson.se> From: Raymond Toy >>>>> "Bruno" == Bruno Haible writes: Bruno> Raymond Toy writes: >> >> Is there any way for CLISP to tell me what the definition of a deftype >> is? >> Bruno> Yes. Bruno> (type-expand-1 'int8) ==> (integer -128 127) ; t Bruno> (type-expand 'int8) ==> (integer -128 127) Bruno> Both functions are documented in impnotes.html. Sorry for troubling you for this! I'll look in impnotes first from now one. Thanks, Ray From hoehle@tzd.telekom.de Fri Apr 9 07:40:22 1999 Received: from fw1b.telekom.de (gw1.telekom.de [194.25.15.11]) by seagull.cdrom.com (8.8.8/8.6.6) with SMTP id HAA11093 for ; Fri, 9 Apr 1999 07:39:48 -0700 (PDT) Received: by fw1b.telekom.de; (5.65v4.0/1.3/10May95) id AA09116; Fri, 9 Apr 1999 16:42:27 +0200 Received: from Q8P65.blf01.telekom.de by mailgate1b.telekom.de; (5.65v4.0/1.1.8.2/02Aug95-1122AM) id AA22877; Fri, 9 Apr 1999 16:42:27 +0200 Received: from q9f09.dmst02.telekom.de by q8p65.blf01.telekom.de with ESMTP for clisp-list@clisp.cons.org; Fri, 9 Apr 1999 16:41:17 +0200 Received: from w9f00992.dmst02.telekom.de (W9F00992.dmst02.telekom.de [164.27.121.145]) by q9f09.dmst02.telekom.de (8.8.5/8.8.5) with SMTP id QAA18078 for ; Fri, 9 Apr 1999 16:31:57 +0200 Received: from tzd.telekom.de by w9f00992.dmst02.telekom.de (SMI-8.6/SMI-SVR4) id QAA04600; Fri, 9 Apr 1999 16:41:15 +0200 Message-Id: <370E118B.441520D9@tzd.telekom.de> Date: Fri, 09 Apr 1999 16:41:15 +0200 From: "J`o'rg-Cyril H`o'hle" Organization: Deutsche Telekom AG X-Mailer: Mozilla 4.08 [en] (WinNT; I) To: clisp-list@clisp.cons.org Subject: space efficient CLISP? Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: Quoted-Printable Hi, Eric Marsden says in http://www.chez.com/emarsden/downloads/index.html CLISP (a space-efficient Common Lisp implementation) Todays HD and RAM seem cheap and people start using the full-blown CLISP including compiler and CLOS for scripting purposes. I'm wondering if there's still interest in sharing/contributing knowledge about making CLISP really small. I don't intend to reduce the C part (lisp.run) e.g. by throwing out complex numbers, supporting only one floating point format instead of 4 or other modification to the C files. But a lot could be gained in the past by e.g. throwing out some Lisp (not loading all .fas files), taking advantage of the fact that ~500 functions are written in C. For example, the compiler and possibly CLOS and dependent files were not necessary in the past, lispinit.mem then became half its normal size. Many applications don't use the compiler at run-time, or DESCRIBE, or even FORMAT (partly thanks to the format compiler)! One could even build an image containing the own apllication's .fas files and only few needed parts of the distributed .fas files -- depending on the application. I'm not sure if it's still possible to omit CLOS from the current CLISP, as more and more internal parts make indirect use of it, the condition system being the most important, DESCRIBE coming to mind and more. If you're interested in this topic, feel free to get in touch with me (hoehle at tzd.telekom.de) or use clisp-list. Or is this a matter of the past, given that most people now use Linux and take advantage of CLISP's ability to store part of the .mem file in read-only, thus storage shared among multiple invocations? Regards, =09J=F6rg H=F6hle From jamiv@leland.Stanford.EDU Sat Apr 10 20:09:19 1999 Received: from elaine17.Stanford.EDU (elaine17.Stanford.EDU [171.64.15.82]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id UAA01802 for ; Sat, 10 Apr 1999 20:09:09 -0700 (PDT) Received: (from jamiv@localhost) by elaine17.Stanford.EDU (8.8.8/8.8.7) id UAA02934; Sat, 10 Apr 1999 20:11:54 -0700 (PDT) Date: Sat, 10 Apr 1999 20:11:54 -0700 (PDT) From: "john a. maurer iv" Sender: jamiv@leland.Stanford.EDU Reply-To: "john a. maurer iv" To: clisp-list@clisp.cons.org Subject: help!: installing CLISP Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII hello, i am new at this downloading thing. I finally learned how to "unzip" the "clisp-win32.zip" file I downloaded from the web for my Windows 95 desktop. However, i press on the LISP application file that is created and I get an error message after the LISP application window opens saying the following: "This program has performed an illegal operation and will be shut down." Details>> "LISP caused an invalid page fault in module LISP.EXE, etc. [lots of numbers and jargon follows]" I didn't do anything to explicitly "install" LISP other than unzipping the .zip file: i don't know what "installing" really means or entails. Can anybody help me get CLisp running? I'd really appreciate it! John From sds@goems.com Sun Apr 11 10:59:18 1999 Received: from mail.eaglets.com ([208.235.77.228]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id KAA07364 for ; Sun, 11 Apr 1999 10:59:16 -0700 (PDT) Received: by mail.eaglets.com from localhost (router,SLMail V3.1); Sun, 11 Apr 1999 14:00:02 -0400 Received: by mail.eaglets.com from eho.eaglets.com [208.235.77.238] (SLmail 3.1.2948 (Release Build)); Sun, 11 Apr 1999 14:00:02 -0400 Received: (from sds@localhost) by eho.eaglets.com (8.9.3/8.9.3) id NAA02979; Sun, 11 Apr 1999 13:59:28 -0400 Sender: sds@goems.com To: clisp-list@seagull.cons.org Subject: Re: help!: installing CLISP References: Return-Receipt-To: sds@goems.com Reply-To: sds@goems.com X-Disclaimer: You should not expect anyone to agree with me. X-Attribution: Sam X-No-Archive: Yes Mail-Copies-To: never From: Sam Steingold In-Reply-To: "john a. maurer iv"'s message of "Sat, 10 Apr 1999 20:15:14 -0700 (PDT)" Date: 11 Apr 1999 13:59:28 -0400 Message-ID: Lines: 41 X-Mailer: Gnus v5.7/Emacs 20.3 >>>> In message >>>> On the subject of "help!: installing CLISP" >>>> Sent on Sat, 10 Apr 1999 20:15:14 -0700 (PDT) >>>> Honorable "john a. maurer iv" writes: >> >> i am new at this downloading thing. I finally learned how to "unzip" >> the "clisp-win32.zip" file I downloaded from the web for my Windows Please mention where you downloaded CLISP from. The exact URL. The date on the file would help too. >> 95 desktop. However, i press on the LISP application file that is >> created and I get an error message after the LISP application window >> opens saying the following: You should click on clisp.bat, not clisp.exe. Or just create a shortcut to the following command: c:\clisp\lisp.exe -M c:\clisp\lispinit.mem [replace "c:\clisp" with the full path to the place you installed CLISP in.] >> "This program has performed an illegal operation and will be shut >> down." Details>> "LISP caused an invalid page fault in module >> LISP.EXE, etc. [lots of numbers and jargon follows]" you will have to send all the jargon here, up to the last digit. >> I didn't do anything to explicitly "install" LISP other >> than unzipping the .zip file: i don't know what "installing" >> really means or entails. Can anybody help me get CLisp >> running? I'd really appreciate it! The best advice I can give you is to put Linux on your desktop. :-) -- Sam Steingold (http://www.goems.com/~sds) running RedHat5.2 GNU/Linux Micros**t is not the answer. Micros**t is a question, and the answer is Linux, (http://www.linux.org) the choice of the GNU (http://www.gnu.org) generation. Flying is not dangerous; crashing is dangerous. From ecm@savage.iut-blagnac.fr Mon Apr 12 04:39:18 1999 Received: from savage.iut-blagnac.fr (savage.iut-blagnac.fr [193.54.227.231]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id EAA17351 for ; Mon, 12 Apr 1999 04:38:34 -0700 (PDT) Received: by savage.iut-blagnac.fr via sendmail from stdin id (Debian Smail3.2.0.101) for clisp-list@clisp.cons.org; Mon, 12 Apr 1999 13:40:09 +0200 (CEST) Message-ID: <19990412134009.A6734@savage.iut-blagnac.fr> Date: Mon, 12 Apr 1999 13:40:09 +0200 From: Eric Marsden To: clisp-list@clisp.cons.org Subject: Re: space efficient CLISP? References: <370E118B.441520D9@tzd.telekom.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.2 In-Reply-To: <370E118B.441520D9@tzd.telekom.de>; from clisp-list@clisp.cons.org on Fri, Apr 09, 1999 at 07:45:29AM -0700 X-Attribution: ecm X-Eric-Conspiracy: There is no conspiracy. Organization: disorganized On Fri, Apr 09, 1999 at 07:45:29AM -0700, clisp-list@clisp.cons.org wrote: > CLISP (a space-efficient Common Lisp implementation) I am happy with CLISP's current memory use; it works fine on my relatively old home machine, where CMUCL is unusable. I wouldn't want to go without CLOS. Reducing the size may be useful for some applications (CLISP on PalmPilot :), but note that systems such as Python have similar resource requirements. Personally I'm more interested in stuff like dynamic linking (I'm rewriting my dl module to use libffi for parameter passing instead of a home-brewed stack, for much better portability), interfacing to Gtk and databases, networking libraries, multithreading, CORBA, CLEmacs ... -- Eric Marsden It's elephants all the way down From sds@goems.com Mon Apr 12 06:25:00 1999 Received: from mail.eaglets.com ([208.235.77.228]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id GAA18455 for ; Mon, 12 Apr 1999 06:24:59 -0700 (PDT) Received: by mail.eaglets.com from localhost (router,SLMail V3.1); Mon, 12 Apr 1999 09:09:44 -0400 Received: by mail.eaglets.com from eho.eaglets.com [208.235.77.238] (SLmail 3.1.2948 (Release Build)); Mon, 12 Apr 1999 09:09:44 -0400 Received: (from sds@localhost) by eho.eaglets.com (8.9.3/8.9.3) id JAA16612; Mon, 12 Apr 1999 09:07:41 -0400 Sender: sds@goems.com To: clisp-list@seagull.cons.org Subject: Re: space efficient CLISP? References: <19990412134009.A6734@savage.iut-blagnac.fr> Return-Receipt-To: sds@goems.com Reply-To: sds@goems.com X-Disclaimer: You should not expect anyone to agree with me. X-Attribution: Sam X-No-Archive: Yes Mail-Copies-To: never From: Sam Steingold In-Reply-To: Eric Marsden's message of "Mon, 12 Apr 1999 04:44:44 -0700 (PDT)" Date: 12 Apr 1999 09:07:41 -0400 Message-ID: Lines: 16 X-Mailer: Gnus v5.7/Emacs 20.3 >>>> In message <19990412134009.A6734@savage.iut-blagnac.fr> >>>> On the subject of "Re: space efficient CLISP?" >>>> Sent on Mon, 12 Apr 1999 04:44:44 -0700 (PDT) >>>> Honorable Eric Marsden writes: >> >> CLEmacs ... Aha! I am not the only one dreaming of it! :-) did you look at closure? http://www.uni-karlsruhe.de/~unk6/ -- Sam Steingold (http://www.goems.com/~sds) running RedHat5.2 GNU/Linux Micros**t is not the answer. Micros**t is a question, and the answer is Linux, (http://www.linux.org) the choice of the GNU (http://www.gnu.org) generation. I don't have an attitude problem. You have a perception problem. From jamiv@leland.Stanford.EDU Mon Apr 12 23:11:27 1999 Received: from mail.ppp.net (mail.ppp.net [194.64.12.35]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id XAA28846 for ; Mon, 12 Apr 1999 23:11:21 -0700 (PDT) Received: from elaine19.Stanford.EDU (elaine19.Stanford.EDU [171.64.15.84]) by mail.ppp.net (8.8.8/8.8.8) with ESMTP id IAA07165 for ; Tue, 13 Apr 1999 08:14:23 +0200 Received: (from jamiv@localhost) by elaine19.Stanford.EDU (8.8.8/8.8.7) id XAA08764; Mon, 12 Apr 1999 23:12:55 -0700 (PDT) Date: Mon, 12 Apr 1999 23:12:55 -0700 (PDT) From: "john a. maurer iv" Sender: jamiv@leland.Stanford.EDU To: clisp-list@seagull.cons.org Subject: Re: help!: installing CLISP In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Dear Mr. Steingold, thank you for helping me try to install CLISP. the full jargon from the error i get when i click on the "lisp" application file follows: "LISP caused an invalid page fault in module LISP.EXE at 014f:004014b9. Registers: EAX=00b41000 CS=014f EIP=004014b9 EFLGS=00010287 EBX=00b41000 SS=0157 ESP=0074d51c EBP=00aa006c ECX=00000008 DS=0157 ESI=00ad88fc FS=10a7 EDX=00b50138 ES=0157 EDI=00b40068 GS=0000 Bytes at CS:EIP: 8b 40 04 0f be c8 49 83 f9 08 77 14 ff 24 8d 49 Stack dump: 00402400 00b41000 0074d930 0074d7f8 00000004 00b50110 0040183e 00b50110 0000003c 00000000 004d08cc 00000000 00000000 00000000 00000000 00000000 " any help? i got this version of clisp on April 9th. The date on the "lisp" application file is 1/20/99, and i got it from " ftp://ftp2.cons.org/pub/lisp/clisp/binaries/ ". I tried double clicking on the "lispinit" but it only tries to open itself as a text file??? And i failed to complete the DOS command, even with the right path name... i'm afraid i'm a DOS novice... if there's a better way around things that'd be great. i do work on Linux on campus, but i hesitate to try putting a new platform on my friends desktop at home: that is where i'm trying to get Lisp up and running for programs i am trying to write. If you can be of any further help, i would really appreciate your kindness. Maybe i just need to try downloading it again??? Anyway, thank you. John On Sun, 11 Apr 1999, Sam Steingold wrote: > >>>> In message > >>>> On the subject of "help!: installing CLISP" > >>>> Sent on Sat, 10 Apr 1999 20:15:14 -0700 (PDT) > >>>> Honorable "john a. maurer iv" writes: > >> > >> i am new at this downloading thing. I finally learned how to "unzip" > >> the "clisp-win32.zip" file I downloaded from the web for my Windows > > Please mention where you downloaded CLISP from. The exact URL. > The date on the file would help too. > > >> 95 desktop. However, i press on the LISP application file that is > >> created and I get an error message after the LISP application window > >> opens saying the following: > > You should click on clisp.bat, not clisp.exe. > Or just create a shortcut to the following command: > > c:\clisp\lisp.exe -M c:\clisp\lispinit.mem > > [replace "c:\clisp" with the full path to the place you installed CLISP > in.] > > >> "This program has performed an illegal operation and will be shut > >> down." Details>> "LISP caused an invalid page fault in module > >> LISP.EXE, etc. [lots of numbers and jargon follows]" > > you will have to send all the jargon here, up to the last digit. > > >> I didn't do anything to explicitly "install" LISP other > >> than unzipping the .zip file: i don't know what "installing" > >> really means or entails. Can anybody help me get CLisp > >> running? I'd really appreciate it! > > The best advice I can give you is to put Linux on your desktop. :-) > > -- > Sam Steingold (http://www.goems.com/~sds) running RedHat5.2 GNU/Linux > Micros**t is not the answer. Micros**t is a question, and the answer is Linux, > (http://www.linux.org) the choice of the GNU (http://www.gnu.org) generation. > Flying is not dangerous; crashing is dangerous. > From sds@goems.com Tue Apr 13 06:14:16 1999 Received: from mail.eaglets.com ([208.235.77.228]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id GAA02779 for ; Tue, 13 Apr 1999 06:14:09 -0700 (PDT) Received: by mail.eaglets.com from localhost (router,SLMail V3.1); Tue, 13 Apr 1999 09:15:51 -0400 Received: by mail.eaglets.com from eho.eaglets.com [208.235.77.238] (SLmail 3.1.2948 (Release Build)); Tue, 13 Apr 1999 09:15:51 -0400 Received: (from sds@localhost) by eho.eaglets.com (8.9.3/8.9.3) id JAA00921; Tue, 13 Apr 1999 09:16:28 -0400 Sender: sds@goems.com To: clisp-list@seagull.cons.org Subject: Re: help!: installing CLISP References: Return-Receipt-To: sds@goems.com Reply-To: sds@goems.com X-Disclaimer: You should not expect anyone to agree with me. X-Attribution: Sam X-No-Archive: Yes Mail-Copies-To: never From: Sam Steingold In-Reply-To: "john a. maurer iv"'s message of "Mon, 12 Apr 1999 23:15:54 -0700 (PDT)" Date: 13 Apr 1999 09:16:28 -0400 Message-ID: Lines: 66 X-Mailer: Gnus v5.7/Emacs 20.3 please try running CLISP like this: c:\clisp\lisp.exe -M c:\clisp\lispinit.mem -m 10MB sometimes this helps. if you try c:\clisp\lisp.exe -h you will learn that -m pre-allocates memory. you might also want to put this line in a clisp.bat file. >>>> In message >>>> On the subject of "Re: help!: installing CLISP" >>>> Sent on Mon, 12 Apr 1999 23:15:54 -0700 (PDT) >>>> Honorable "john a. maurer iv" writes: >> >> thank you for helping me try to install CLISP. the full jargon from the >> error i get when i click on the "lisp" application file follows: >> >> "LISP caused an invalid page fault in >> module LISP.EXE at 014f:004014b9. >> Registers: >> EAX=00b41000 CS=014f EIP=004014b9 EFLGS=00010287 >> EBX=00b41000 SS=0157 ESP=0074d51c EBP=00aa006c >> ECX=00000008 DS=0157 ESI=00ad88fc FS=10a7 >> EDX=00b50138 ES=0157 EDI=00b40068 GS=0000 >> Bytes at CS:EIP: >> 8b 40 04 0f be c8 49 83 f9 08 77 14 ff 24 8d 49 >> Stack dump: >> 00402400 00b41000 0074d930 0074d7f8 00000004 00b50110 0040183e 00b50110 >> 0000003c 00000000 004d08cc 00000000 00000000 00000000 00000000 00000000 " >> >> any help? >> >> i got this version of clisp on April 9th. The date on the "lisp" >> application file is 1/20/99, and i got it from >> " ftp://ftp2.cons.org/pub/lisp/clisp/binaries/ ". I tried ftp://ftp2.cons.org/pub/lisp/clisp/binaries/dos/ or ftp://ftp2.cons.org/pub/lisp/clisp/binaries/win32/ ? Please note that the `win32' binary would probably not work when started from the console (it *is* a console app, but it has to opes its console itself). I think... >> double clicking on the "lispinit" but it only tries to open >> itself as a text file??? And i failed to complete the DOS I usually associate the following with a *.mem extension: c:\clisp\lisp.exe -m10MB -M %s >> command, even with the right path name... i'm afraid i'm a >> DOS novice... if there's a better way around things that'd >> be great. i do work on Linux on campus, but i hesitate to >> try putting a new platform on my friends desktop at home: that is >> where i'm trying to get Lisp up and running for programs >> i am trying to write. If you can be of any further help, i >> would really appreciate your kindness. Maybe i just need to >> try downloading it again??? Anyway, thank you. -- Sam Steingold (http://www.goems.com/~sds) running RedHat5.2 GNU/Linux Micros**t is not the answer. Micros**t is a question, and the answer is Linux, (http://www.linux.org) the choice of the GNU (http://www.gnu.org) generation. Warning! Dates in calendar are closer than they appear! From chas@nirvana.lib.uchicago.edu Tue Apr 13 07:22:55 1999 Received: from nirvana.lib.uchicago.edu (nirvana.lib.uchicago.edu [128.135.53.5]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id HAA03618 for ; Tue, 13 Apr 1999 07:22:49 -0700 (PDT) Received: from nirvana.lib.uchicago.edu (localhost [127.0.0.1]) by nirvana.lib.uchicago.edu (8.9.1/8.9.1) with SMTP id JAA02139 for ; Tue, 13 Apr 1999 09:25:40 -0500 (CDT) Message-Id: <199904131425.JAA02139@nirvana.lib.uchicago.edu> To: clisp-list@clisp.cons.org Subject: Re: help!: installing CLISP Reply-To: cjdb@midway.uchicago.edu In-Reply-To: Your message of "Mon, 12 Apr 1999 23:23:37 -0700 (PDT)" References: X-Mailer: Mew version 1.06 on Emacs 19.14 XEmacs Lucid Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Tue, 13 Apr 1999 09:25:40 -0500 From: Charles Blair i have the same problem as well under windows 95: LISP caused an invalid page fault in module LISP.EXE at 0137:004020ec. Registers: EAX=804a9a1c CS=0137 EIP=004020ec EFLGS=00010246 EBX=804a9a19 SS=013f ESP=0074d50c EBP=0074d930 ECX=804a9a18 DS=013f ESI=80000000 FS=24f7 EDX=ffffffb1 ES=013f EDI=008783e5 GS=0000 Bytes at CS:EIP: 0f be 10 83 fa 01 7c 1e 83 fa 02 7e 4a 83 fa 03 Stack dump: 004b11ac 00841fcc 0088c63c 00402312 008781b5 004cf5d8 00402242 00884de8 004b11ac 004a87f1 0088c63c 004016bf 0000003c 00000000 004d08cc 00000000 the following suggestion: c:\clisp\lisp.exe -M c:\clisp\lispinit.mem produced this result: [pathname.d:6240] *** - Program stack overflow. RESET *** - Program stack overflow. RESET john> i got this version of clisp on April 9th. The date on the "lisp" john> application file is 1/20/99, and i got it from " john> ftp://ftp2.cons.org/pub/lisp/clisp/binaries/ ". ditto on the date of the binary and the ftp site. (i downloaded it on 11 april.) From sds@goems.com Tue Apr 13 09:07:29 1999 Received: from mail.eaglets.com ([208.235.77.228]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id JAA04980 for ; Tue, 13 Apr 1999 09:07:04 -0700 (PDT) Received: by mail.eaglets.com from localhost (router,SLMail V3.1); Tue, 13 Apr 1999 12:08:43 -0400 Received: by mail.eaglets.com from eho.eaglets.com [208.235.77.238] (SLmail 3.1.2948 (Release Build)); Tue, 13 Apr 1999 12:08:43 -0400 Received: (from sds@localhost) by eho.eaglets.com (8.9.3/8.9.3) id MAA16019; Tue, 13 Apr 1999 12:09:21 -0400 Sender: sds@goems.com To: clisp-list@seagull.cons.org Subject: Re: help!: installing CLISP References: <199904131425.JAA02139@nirvana.lib.uchicago.edu> Return-Receipt-To: sds@goems.com Reply-To: sds@goems.com X-Disclaimer: You should not expect anyone to agree with me. X-Attribution: Sam X-No-Archive: Yes Mail-Copies-To: never From: Sam Steingold In-Reply-To: Charles Blair's message of "Tue, 13 Apr 1999 07:27:14 -0700 (PDT)" Date: 13 Apr 1999 12:09:21 -0400 Message-ID: Lines: 8 X-Mailer: Gnus v5.7/Emacs 20.3 You might try -s (increase stack). first check whether your binary supports this option with "lisp.exe -h" -- Sam Steingold (http://www.goems.com/~sds) running RedHat5.2 GNU/Linux Micros**t is not the answer. Micros**t is a question, and the answer is Linux, (http://www.linux.org) the choice of the GNU (http://www.gnu.org) generation. Lisp: its not just for geniuses anymore. From toy@rtp.ericsson.se Tue Apr 13 09:47:13 1999 Received: from gwu.ericy.com (gwu.ericy.com [208.196.3.162]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id JAA05648 for ; Tue, 13 Apr 1999 09:47:07 -0700 (PDT) Received: from mr4.exu.ericsson.se ([138.85.11.56]) by gwu.ericy.com (8.8.8/8.8.8) with ESMTP id LAA22048 for ; Tue, 13 Apr 1999 11:51:17 -0500 (CDT) Received: from netmanager7.rtp.ericsson.se (netmanager7.rtp.ericsson.se [147.117.132.245]) by mr4.exu.ericsson.se (8.8.8/8.8.8) with ESMTP id LAA08884 for ; Tue, 13 Apr 1999 11:49:03 -0500 (CDT) Received: from rcur (wcsdsp4.rtp.ericsson.se [147.117.132.216]) by netmanager7.rtp.ericsson.se (8.9.1/8.6.4) with ESMTP id MAA02435 for ; Tue, 13 Apr 1999 12:48:55 -0400 (EDT) To: CLISP Mailing List Subject: Undefined function Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII Date: Tue, 13 Apr 1999 12:49:09 -0400 Message-ID: <28540.924022149@rtp.ericsson.se> From: Raymond Toy While trying to update my version of series, I've run into a small problem with CLISP 1 (compile "s-code.lisp") works without any errors or warnings. However, when I try (load "s-code"), I get the message: ;; Loading file /apps/public/lib/lisp/code/iter/series-1/s-code.fas ... *** - SYMBOL-FUNCTION: the function #:FUNCALL21015 is undefined How can I track this down? If it helps, here's a traceback: 1. Break SERIES[10]> backtrace-1 - NIL - # frame binding variables (~ = dynamically): | ~ SYSTEM::*PRIN-STREAM* <--> # - # - SYMBOL-FUNCTION - #:FUNCALL21015 - #:FUNCALL21015 - # - # - # unwind-protect frame frame binding variables (~ = dynamically): | ~ *READTABLE* <--> # frame binding variables (~ = dynamically): | ~ *PACKAGE* <--> # frame binding variables (~ = dynamically): | ~ *LOAD-TRUENAME* <--> NIL frame binding variables (~ = dynamically): | ~ *LOAD-PATHNAME* <--> NIL frame binding variables (~ = dynamically): | ~ SYSTEM::*LOAD-INPUT-STREAM* <--> NIL - # - # - # - NIL - NIL - T - NIL - T - #P"/apps/public/lib/lisp/code/iter/series-1/s-code.fas" - # EVAL frame for form (LOAD "s-code") - # #> - # I've run this same code through CMUCL and LWW without problems. The strange part is that it worked a couple of days ago and CLISP passed all of the series tests. Ray From haible@ilog.fr Tue Apr 13 12:51:43 1999 Received: from sceaux.ilog.fr (sceaux.ilog.fr [193.55.64.10]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id MAA07960 for ; Tue, 13 Apr 1999 12:49:46 -0700 (PDT) Received: from ilog.ilog.fr ([172.17.4.22]) by sceaux.ilog.fr (8.9.1/8.9.1) with ESMTP id VAA08048 for ; Tue, 13 Apr 1999 21:52:33 +0200 (MET DST) Received: from jaures.ilog.fr (jaures.ilog.fr [172.16.1.81]) by ilog.ilog.fr (8.8.8/8.7.3) with ESMTP id VAA10876; Tue, 13 Apr 1999 21:51:21 +0200 (MET DST) From: Bruno Haible Received: (from haible@localhost) by jaures.ilog.fr (8.9.0/8.9.0) id VAA09534; Tue, 13 Apr 1999 21:52:29 +0200 (MET DST) Date: Tue, 13 Apr 1999 21:52:29 +0200 (MET DST) Message-Id: <199904131952.VAA09534@jaures.ilog.fr> To: clisp-list@seagull.cons.org Subject: Re: Undefined function In-Reply-To: <28540.924022149@rtp.ericsson.se> References: <28540.924022149@rtp.ericsson.se> Raymond Toy writes: > > (compile "s-code.lisp") works without any errors or warnings. However, when > I try (load "s-code"), I get the message: > > ;; Loading file /apps/public/lib/lisp/code/iter/series-1/s-code.fas ... > *** - SYMBOL-FUNCTION: the function #:FUNCALL21015 is undefined > > How can I track this down? If it helps, here's a traceback: The only useful information in this backtrace is the symbol #:TOP-LEVEL-FORM-162-3. I would 1. Try (load "s-code.lisp"), 2. Try (load "s-code.fas" :print t), 3. Search for #:TOP-LEVEL-FORM-162-3 in s-code.fas and try to guess which source form this comes from. Bruno From toy@rtp.ericsson.se Tue Apr 13 13:53:16 1999 Received: from mail.ppp.net (mail.ppp.net [194.64.12.35]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id NAA09127 for ; Tue, 13 Apr 1999 13:52:54 -0700 (PDT) Received: from gwu.ericy.com (gwu.ericy.com [208.196.3.162]) by mail.ppp.net (8.8.8/8.8.8) with ESMTP id WAA28088 for ; Tue, 13 Apr 1999 22:56:04 +0200 Received: from mr3.exu.ericsson.se ([138.85.11.55]) by gwu.ericy.com (8.8.8/8.8.8) with ESMTP id PAA07665 for ; Tue, 13 Apr 1999 15:56:54 -0500 (CDT) Received: from netmanager7.rtp.ericsson.se (netmanager7.rtp.ericsson.se [147.117.132.245]) by mr3.exu.ericsson.se (8.8.8/8.8.8) with ESMTP id PAA06551 for ; Tue, 13 Apr 1999 15:54:37 -0500 (CDT) Received: from rcur (wcsdsp4.rtp.ericsson.se [147.117.132.216]) by netmanager7.rtp.ericsson.se (8.9.1/8.6.4) with ESMTP id QAA13208 for ; Tue, 13 Apr 1999 16:54:32 -0400 (EDT) To: clisp-list@seagull.cons.org References: <199904131952.VAA09534@jaures.ilog.fr> Subject: Re: Undefined function In-reply-to: (Your message of Tue, 13 Apr 1999 12:52:27 PDT.) <199904131952.VAA09534@jaures.ilog.fr> Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII Date: Tue, 13 Apr 1999 16:54:45 -0400 Message-ID: <28925.924036885@rtp.ericsson.se> From: Raymond Toy >>>>> "Bruno" == Bruno Haible writes: Bruno> Raymond Toy writes: >> >> (compile "s-code.lisp") works without any errors or warnings. However, when >> I try (load "s-code"), I get the message: >> >> ;; Loading file /apps/public/lib/lisp/code/iter/series-1/s-code.fas ... >> *** - SYMBOL-FUNCTION: the function #:FUNCALL21015 is undefined >> >> How can I track this down? If it helps, here's a traceback: Bruno> The only useful information in this backtrace is the symbol Bruno> #:TOP-LEVEL-FORM-162-3. I would Bruno> 1. Try (load "s-code.lisp"), It just loads the file. Bruno> 2. Try (load "s-code.fas" :print t), It started sucking up lots of memory (107M) before I killed it. It didn't print out anything interesting. Bruno> 3. Search for #:TOP-LEVEL-FORM-162-3 in s-code.fas and try to guess Bruno> which source form this comes from. In any case, I must have screwed up my version of s-code. >From a fresh clisp, if I compile-file and load the fas file, everything loads just fine. >From a fresh clisp, if I just load the fas file, I get the undefined function error. Thanks for you help! Ray From zen@src.ncu.edu.tw Thu Apr 15 05:41:56 1999 Received: from lisa.src.ncu.edu.tw (lisa.src.ncu.edu.tw [140.115.113.1]) by seagull.cdrom.com (8.8.8/8.6.6) with SMTP id FAA20095 for ; Thu, 15 Apr 1999 05:40:23 -0700 (PDT) From: zen@src.ncu.edu.tw Received: from ultra2.src.ncu.edu.tw by lisa.src.ncu.edu.tw (4.1/SMI-4.1) id AA14441; Thu, 15 Apr 99 19:54:39 CST Received: from pc23.src.ncu.edu.tw by ultra2.src.ncu.edu.tw (SMI-8.6/SMI-SVR4) id TAA24170; Thu, 15 Apr 1999 19:11:50 +0800 Received: by pc23.src.ncu.edu.tw with Microsoft Mail id <01BE8778.6EE8D310@pc23.src.ncu.edu.tw>; Thu, 15 Apr 1999 19:44:53 +0800 Message-Id: <01BE8778.6EE8D310@pc23.src.ncu.edu.tw> To: "'clisp-list@clisp.cons.org'" Subject: Compiling LISP codes into executables? Date: Thu, 15 Apr 1999 19:44:52 +0800 Encoding: 9 TEXT Hi I wonder if it is possible to use CLISP to compile LISP codes into executables on Windows platforms? Or is it possible to use some libraries so that I can execute LISP codes by calling these libraries? Suggestions will be appreciated. Thanks in advance! Chi-Jen Lin From sds@goems.com Thu Apr 15 06:30:14 1999 Received: from mail.eaglets.com ([208.235.77.228]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id GAA20617 for ; Thu, 15 Apr 1999 06:30:13 -0700 (PDT) Received: by mail.eaglets.com from localhost (router,SLMail V3.1); Thu, 15 Apr 1999 09:24:55 -0400 Received: by mail.eaglets.com from eho.eaglets.com [208.235.77.238] (SLmail 3.1.2948 (Release Build)); Thu, 15 Apr 1999 09:24:54 -0400 Received: (from sds@localhost) by eho.eaglets.com (8.9.3/8.9.3) id JAA21000; Thu, 15 Apr 1999 09:25:15 -0400 Sender: sds@goems.com To: clisp-list@seagull.cons.org Subject: Re: Compiling LISP codes into executables? References: <01BE8778.6EE8D310@pc23.src.ncu.edu.tw> Return-Receipt-To: sds@goems.com Reply-To: sds@goems.com X-Disclaimer: You should not expect anyone to agree with me. X-Attribution: Sam X-No-Archive: Yes Mail-Copies-To: never From: Sam Steingold In-Reply-To: zen@src.ncu.edu.tw's message of "Thu, 15 Apr 1999 05:46:41 -0700 (PDT)" Date: 15 Apr 1999 09:25:14 -0400 Message-ID: Lines: 28 X-Mailer: Gnus v5.7/Emacs 20.3 >>>> In message <01BE8778.6EE8D310@pc23.src.ncu.edu.tw> >>>> On the subject of "Compiling LISP codes into executables?" >>>> Sent on Thu, 15 Apr 1999 05:46:41 -0700 (PDT) >>>> Honorable zen@src.ncu.edu.tw writes: >> >> I wonder if it is possible to use CLISP to compile LISP codes >> into executables on Windows platforms? Or is it possible to use 1. save the image: (lisp:saveinitmem "myimage.mem" :init-function #'my-func) 2. associate *mem type with the following: c:\clisp\lisp.exe -m10M -M "%s" 3. double-click on file myimage.mem - clisp will start and call `my-func'. >> some libraries so that I can execute LISP codes by calling these >> libraries? Suggestions will be appreciated. you can connect to a running CLISP via a socket and send it expressions to evaluate. -- Sam Steingold (http://www.goems.com/~sds) running RedHat5.2 GNU/Linux Micros**t is not the answer. Micros**t is a question, and the answer is Linux, (http://www.linux.org) the choice of the GNU (http://www.gnu.org) generation. A professor is someone who talks in someone else's sleep. From fc@all.net Sat Apr 17 20:10:13 1999 Received: from all.net (c118194-a.lvrmr1.sfba.home.com [24.1.84.100]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id UAA24681 for ; Sat, 17 Apr 1999 20:09:52 -0700 (PDT) Received: (from fc@localhost) by all.net (8.7.5/8.7.3) id UAA29968 for clisp-list@seagull.cons.org; Sat, 17 Apr 1999 20:11:26 -0700 Message-Id: <199904180311.UAA29968@all.net> Subject: Socket Streams problems - or am I just using them incorrectly? To: clisp-list@seagull.cons.org Date: Sat, 17 Apr 1999 20:11:25 -0700 (PDT) From: Fred Cohen Reply-To: fc@all.net Organization: I'm not allowed to say X-Mailer: don't even ask X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I am having several difficulties with 'Socket Streams' and I thought list members might help me better understand what I am doing wrong. Here they are... I run lisp and do the following indented done from the Unix shell (setq socket (socket-server 12345)) ; setup port (socket-wait socket) ; wait for a connect (setq sockstream (socket-accept socket)) ; accept connection 1> lsof | grep lisp lisp.run 29646 fc 3r REG 8,0 780485 987508 /u -- src/lisp.run lisp.run 29646 fc 4u inet 0x0057b018 0t0 TCP *:vce (LISTEN) 2> telnet localhost 12345 ... get test (setq get (concatenate 'string (loop until (equal #\Return (setq tmp (read-char stream))) collect tmp))) (write-string "test" sockstream) ... get test (close sockstream) (socket-server-close socket) ; close out ... (socket closes - session ends) 1> lsof | grep lisp lisp.run 29646 fc 3r REG 8,0 780485 987508 /u -- src/lisp.run lisp.run 29646 fc 4u inet 0x0057b018 0t0 TCP *:vce (LISTEN) OK - problem 1 - this TCP socket should be closed - but it is not. This means that... a) The socket can never be closed b) I can do (close sockstream) (socket-server-close socket) ; close out repeatedly with no errors - and no effect. c) I can't leave LISP in the normal way... (bye) yields an error and I cannot leave... except sometimes... (ouch!) Problem 2: If I do: ... 2> telnet localhost 12345 and then wait... the server is stuck forever - and since there is no "fork" function, I can only serve one request at a time. The rest of the world goes into an indefinate wait until the first caller decides to make a request... which means denial of services. Is there a way to do a fork... or an alternative? Note that (socket-wait socket-server [seconds [microseconds]]) will not save me because - the socket wait is not where the timeout is needed. It is in the read-char that I time out. Any assistance would be most helpful. Until then, I continue to serve without using the socket interface (i.e., via inetd as stdin and stdout) with the added complexity that any coding error and I give the extrnal user the ability to issue commands of their chosing to the lisp interpreter running on my server. FC -- Fred Cohen & Associates: http://all.net - fc@all.net - tel/fax:925-454-0171 Have a great day!!! Per the official policy of Sandia National Laboratories, the reader should be aware that: - Fred Cohen of Fred Cohen & Associates is the same Fred Cohen who is a Principal Member of Technical Staff at Sandia National Laboratories. - Fred Cohen & Associates - is owned and operated by Fred Cohen and is separate and independent from the work done by Fred Cohen at Sandia National Laboratories. From ecm@savage.iut-blagnac.fr Mon Apr 19 04:59:44 1999 Received: from savage.iut-blagnac.fr (savage.iut-blagnac.fr [193.54.227.231]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id EAA09646 for ; Mon, 19 Apr 1999 04:59:42 -0700 (PDT) Received: by savage.iut-blagnac.fr via sendmail from stdin id (Debian Smail3.2.0.101) for clisp-list@clisp.cons.org; Mon, 19 Apr 1999 13:59:56 +0200 (CEST) Date: Mon, 19 Apr 1999 13:59:56 +0200 From: Eric Marsden To: clisp-list@seagull.cons.org Cc: Multiple recipients of list Subject: Re: Socket Streams problems - or am I just using them incorrectly? Message-ID: <19990419135956.A31579@savage.iut-blagnac.fr> References: <199904180311.UAA29968@all.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <199904180311.UAA29968@all.net>; from Fred Cohen on Sat, Apr 17, 1999 at 08:16:17PM -0700 X-Attribution: ecm X-Eric-Conspiracy: There is no conspiracy. Organization: disorganized On Sat, Apr 17, 1999 at 08:16:17PM -0700, Fred Cohen wrote: [socket streams not closing properly] I haven't noticed this. What platform are you using? [serving multiple users via sockets] this is a true problem, difficult to resolve. I don't think there is a fork in CLISP, and besides, it would be a costly way to serve multiple users. One alternative would be to use select() trickery (assuming you're running on Unix) and serve multiple sockets, but this too isn't implemented. If you can formulate your requests over HTTP (this may require you implementing session management, which isn't too difficult), perhaps the best approach is to have CLISP run as a web server, and put it behind a web proxy such as Squid. That way you get caching of static "pages" for free, proper handling of HTTP/1.1 requests without having to fiddle with chunking, and --especially-- automatic handling of multiple clients (ie the proxy will only send the requests to the server when they have been completely issued, and will look after serving the results back to the client at whatever speed it likes; no more denial of service). As long as you don't have too many users this solution should work. -- Eric Marsden emarsden @ mail.dotcom.fr It's elephants all the way down From tkunze@ccrma.stanford.edu Sun Apr 25 16:16:45 1999 Received: from ccrma.stanford.edu (ccrma.Stanford.EDU [36.49.0.84]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id QAA01688 for ; Sun, 25 Apr 1999 16:16:30 -0700 (PDT) Received: from ccrma.stanford.edu ([207.97.74.37]) by ccrma.stanford.edu (8.8.8/8.8.8) with ESMTP id QAA21809 for ; Sun, 25 Apr 1999 16:17:51 -0700 (PDT) Sender: tkunze@ccrma.stanford.edu Message-ID: <3723A0C4.9BDAD9CE@ccrma.stanford.edu> Date: Sun, 25 Apr 1999 19:09:56 -0400 From: Tobias Kunze X-Mailer: Mozilla 4.05C-SGI [en] (X11; I; IRIX 6.5 IP22) MIME-Version: 1.0 To: ":clisp" Subject: load bus error Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi- Does anyone have any idea why loading init.fas during make lispinit.mem dumps core? tkunze@ulysses:/disk3/local/lisp/clisp-1999-01-08/src [17]> ./lisp.run -N locale -norc i i i i i i i ooooo o ooooooo ooooo ooooo I I I I I I I 8 8 8 8 8 o 8 8 I I I I I I I 8 8 8 8 8 8 I I I I I I I 8 8 8 ooooo 8oooo I \ `+' / I 8 8 8 8 8 \ `-+-' / 8 o 8 8 o 8 8 `-__|__-' ooooo 8oooooo ooo8ooo ooooo 8 | ------+------ Copyright (c) Bruno Haible, Michael Stoll 1992, 1993 Copyright (c) Bruno Haible, Marcus Daniels 1994-1997 Copyright (c) Pierpaolo Bernardi, Sam Steingold 1998 WARNING: No initialisation file specified. Please try: ./lisp.run -M lispinit.mem > (load "init.fas") ;; Loading file defseq.fas ...Bus error (core dumped) Attached you will find the dbx backtrace. The system is Irix 6.5.2f and the compilers are MIPSpro 7.2.1.3: tkunze@ulysses:~ [21]> showprods -1 eoe c_fe I = Installed, R = Removed Name Date Description I c_fe 04/23/1999 C Front-end, 7.2.1.3m I eoe 04/16/1999 IRIX Execution Environment, 6.5.2f -Tobias ______________________________________________________________________ Tobias Kunze tkunze@ccrma.stanford.edu CCRMA, Stanford University http://www-ccrma.stanford.edu/~tkunze From tkunze@ccrma.stanford.edu Sun Apr 25 16:51:45 1999 Received: from ccrma.stanford.edu (ccrma.Stanford.EDU [36.49.0.84]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id QAA02168 for ; Sun, 25 Apr 1999 16:51:35 -0700 (PDT) Received: from ccrma.stanford.edu ([207.97.74.37]) by ccrma.stanford.edu (8.8.8/8.8.8) with ESMTP id QAA21968 for ; Sun, 25 Apr 1999 16:52:51 -0700 (PDT) Sender: tkunze@ccrma.stanford.edu Message-ID: <3723A8F9.B1847500@ccrma.stanford.edu> Date: Sun, 25 Apr 1999 19:44:57 -0400 From: Tobias Kunze X-Mailer: Mozilla 4.05C-SGI [en] (X11; I; IRIX 6.5 IP22) MIME-Version: 1.0 To: clisp-list@seagull.cons.org Subject: Re: load bus error References: <3723A0C4.9BDAD9CE@ccrma.stanford.edu> Content-Type: multipart/mixed; boundary="------------5C29F1E15D4232C587D7565F" This is a multi-part message in MIME format. --------------5C29F1E15D4232C587D7565F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Uh, and another bus error in my brain: forgot to attach the dbx trace... So here it goes. Sorry. --------------5C29F1E15D4232C587D7565F Content-Type: text/plain; charset=us-ascii; name="dbx.out" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dbx.out" kunze@ulysses:/disk3/local/lisp/clisp-1999-01-08/src [19]> dbx ./lisp.run core dbx version 7.2.1.3m Dec 23 1998 01:09:37 Core from signal SIGBUS: Bus error (dbx) where > 0 setjmp(0x7fff19e4, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/xlv52/6.5.2f/work/irix/lib/libc/libc_n32_M3/signal/setjmp.s":130, 0xfac8ac4] 1 interpret_bytecode_(0x7fff19e4, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":7515, 0x100388a4] 2 funcall_closure(0x268684e1, 0x5, 0x10158d14, 0x0, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":5811, 0x100303e0] 3 funcall(0x0, 0x0, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":5026, 0x1002f2e4] 4 interpret_bytecode_(0x7fff19e4, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":7010, 0x10035068] 5 funcall_closure(0x26868d49, 0x0, 0x10158d14, 0x0, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":5829, 0x10030564] 6 funcall(0x26868d49, 0x0, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":5019, 0x1002f244] 7 C_load(0x7fff19e4, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/debug.d":422, 0x100b0b30] 8 eval_subr(0x10141b52, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x0, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":3649, 0x10029214] 9 eval1(0x10155c48, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":3128, 0x1002863c] 10 eval(0x69a0dc23, 0x10145861, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":2980, 0x10027f0c] 11 C_read_eval_print(0x7fff19e4, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/debug.d":240, 0x100b01c8] 12 funcall_subr(0x10141b3a, 0x1, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":5391, 0x1002f584] 13 funcall(0x10141b3a, 0x0, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/eval.d":5017, 0x1002f1f0] 14 driver(0x7fff19e4, 0x10158d14, 0x10158d14, 0x10155c48, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/debug.d":312, 0x100b0614] 15 main(0x4, 0x7fff2ee8, 0x10158d14, 0x4, 0x10158d10, 0x10158d10, 0x10155c48, 0x10158d0c) ["/disk3/local/lisp/clisp-1999-01-08/src/spvw.d":2928, 0x1001e888] 16 __start() ["/xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M3/csu/crt1text.s":177, 0x10015584] (dbx) --------------5C29F1E15D4232C587D7565F-- From haible@ilog.fr Mon Apr 26 12:12:43 1999 Received: from sceaux.ilog.fr (sceaux.ilog.fr [193.55.64.10]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id MAA12047 for ; Mon, 26 Apr 1999 12:12:40 -0700 (PDT) Received: from laposte.ilog.fr (laposte [172.17.1.6]) by sceaux.ilog.fr (8.9.1/8.9.1) with ESMTP id VAA26396 for ; Mon, 26 Apr 1999 21:13:49 +0200 (MET DST) Received: from jaures.ilog.fr ([172.17.4.46]) by laposte.ilog.fr (8.9.3/8.9.3) with ESMTP id VAA03683; Mon, 26 Apr 1999 21:13:50 +0200 (MET DST) From: Bruno Haible Received: (from haible@localhost) by jaures.ilog.fr (8.9.3/8.9.3) id VAA01293; Mon, 26 Apr 1999 21:13:40 +0200 (MET DST) Date: Mon, 26 Apr 1999 21:13:40 +0200 (MET DST) Message-Id: <199904261913.VAA01293@jaures.ilog.fr> To: clisp-list@seagull.cons.org Subject: Re: load bus error In-Reply-To: <3723A0C4.9BDAD9CE@ccrma.stanford.edu> References: <3723A0C4.9BDAD9CE@ccrma.stanford.edu> Tobias Kunze writes: > Does anyone have any idea why loading init.fas during make lispinit.mem > dumps core? Please try this patch. Thanks for the dbx backtrace, it quickly led me to `setjmp' which is somewhat particular on IRIX 6.5. Bruno begin 644 irix-patch.gz M'XL("'RY)#<``VER:7@M<&%T8V@`U55;3]LP%'Y>?\6ID%A2&I:V0)L6-+&Q M2S5`:!V7MRQI3HJ'ZU2.TQ6F_=;]BSWM8<=.6J"D&F(/T_+@^MB?OW/Q\==: MK0:I'+[@+)V$+.2;T6887#T[QPCV)Q*@#0VWZ[:[#9IXGE=Q'&<)_^PH$0;; MW(&FVVUVNJZ78VOW/VU#H^&Y=1K:8)8`UN`8DY*A`@CGH0!1S@+ M)`M"CEW"$9+%H)G\D"G-!'M[H*GFMEVI@L%%&&N6%-67\81;,QN*.4V7,/I\ M#JI?$ZPPC97[1)XBQ7C/[^Z26\,(.%,HA=D"3>E/`YYAK]@M"\I:1`4O[QR! M+KBVN;F\^DVW!60Y_TGU64RIPNEQ_\+O?^Q?%,O:59XNA%DGM@]3W6+!I](JK9EI5GM$[[&^U#>]WI'-KV`Y(5%_TG(MT' M15ZZ$QX3V^S1SF=WV47$XG_<=6'P:?_UAT575G/NR#++OL01-3?*_`GIT"G^G<43>F+\+!9E;?T7>567 MFJJ,RGH0?HHGI>2R^U.K>Z]`H9'$@V1>F\ ME<&8JDB4@%/%-T$+#(B$A@@E*9A4YLB4_HB.3X_\/`B1R''`:5'"?A:'04;@ M%`HN%.HRX`I%KD7J>H+Z-E(ELZ&";XL;DZ@R*5#VB/XF(Y%1X)"P(8PNRMH+Q]WZO^,OZE$. 9SNM(,\=_P:87)K+.`@````` ` end From erik@mother.mind.net Fri Apr 30 13:06:16 1999 Received: from mother.mind.net (erik@mother.mind.net [206.101.72.11]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id NAA21929 for ; Fri, 30 Apr 1999 13:06:12 -0700 (PDT) Received: (from erik@localhost) by mother.mind.net (8.9.2/8.9.2) id NAA23994; Fri, 30 Apr 1999 13:06:37 -0700 (PDT) From: Erik Arneson MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14122.3403.252346.544953@mother.mind.net> Date: Fri, 30 Apr 1999 13:06:35 -0700 (PDT) To: clisp-list@clisp.cons.org Subject: CLX compilation X-Mailer: VM 6.68 under 21.2 "Demeter" XEmacs Lucid (beta13) Howdy folks, Forgive me if this is a common question; I'm rather a newbie to Common Lisp, and haven't much of an idea of where to start looking. In any case, I have clisp-1999-01-08, and I'm trying to compile it with CLX support. There seems to be a problem, however. Firstly, the mit-clx seems to be missing some files (fonts.lsp, and some others). Secondly, new-clx isn't even included. It's just an empty directory tree. Does anybody have any pointers on where I can find the missing files? -- # Erik Arneson erik@mind.net Network Engineer # # Infostructure http://www.mind.net/ (541) 488-1962 # # "My brain is my second favorite organ." -- Woody Allen # From chas@nirvana.lib.uchicago.edu Fri Apr 30 13:19:33 1999 Received: from nirvana.lib.uchicago.edu (nirvana.lib.uchicago.edu [128.135.53.5]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id NAA22298 for ; Fri, 30 Apr 1999 13:19:33 -0700 (PDT) Received: from nirvana.lib.uchicago.edu (localhost [127.0.0.1]) by nirvana.lib.uchicago.edu (8.9.1/8.9.1) with SMTP id PAA13430 for ; Fri, 30 Apr 1999 15:19:55 -0500 (CDT) Message-Id: <199904302019.PAA13430@nirvana.lib.uchicago.edu> To: clisp-list@clisp.cons.org Subject: (listen ...) Reply-To: cjdb@midway.uchicago.edu X-Mailer: Mew version 1.06 on Emacs 19.14 XEmacs Lucid Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Fri, 30 Apr 1999 15:19:54 -0500 From: Charles Blair i wonder whether someone could explain the following to me. if i use (listen ...) to test whether a stream i've opened has characters in it to read, and i do this interactively, i get results i expect: > (defvar s (run-program "date" :output :stream)) S > (listen s) T > (read-line s) "Fri Apr 30 10:39:28 CDT 1999" ; NIL > (listen s) NIL however, if i execute this file: #!/[...]/clisp (print (defvar s (run-program "date" :output :stream))) (print (listen s)) (print (read-line s)) (print (listen s)) i get these results: S NIL "Fri Apr 30 10:44:00 CDT 1999" NIL that is, the first call to listen results in nil. /[...]/clisp is this: #!/bin/sh exec /[...]/clisp/lib/lisp/lisp.run -M /[...]/clisp/lib/lisp/lispinit.mem -N /[...]/clisp/share/locale "$@" i get the same results if i try this: /[...]/clisp/lib/lisp/lisp.run -M /[...]/clisp/lib/lisp/lispinit.mem -N /[...]/clisp/share/locale [filename] or if i try this: > (load "[file") ;; Loading file [file] ... S NIL "Fri Apr 30 11:50:42 CDT 1999" NIL it seems that there is some side-effect in trying to execute (listen ...) from within a file which i'm not quite grasping. however, an attempt to look at the stream before the first call to listen, using peek-char or read-line, for example, will cause listen to work as expected. so, the following commands: (print (defvar s (run-program "date" :output :stream))) (print (listen s)) (print (peek-char nil s)) (print (listen s)) (exit) when executed from a file, as above, result in this: S NIL #\F T that is, the second call to listen showed that a character was available. n.b. if the first call to listen tests a string input stream, then i get expected results even if the call is executed from within a file. so this strikes me as being the result of an interaction with the environment. any enlightenment on what is going on here would be greatly appreciated; thanks. From haible@ilog.fr Fri Apr 30 14:42:10 1999 Received: from sceaux.ilog.fr (sceaux.ilog.fr [193.55.64.10]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id OAA23253 for ; Fri, 30 Apr 1999 14:42:09 -0700 (PDT) Received: from laposte.ilog.fr (laposte [172.17.1.6]) by sceaux.ilog.fr (8.9.1/8.9.1) with ESMTP id XAA27077 for ; Fri, 30 Apr 1999 23:42:35 +0200 (MET DST) Received: from jaures.ilog.fr ([172.17.4.95]) by laposte.ilog.fr (8.9.3/8.9.3) with ESMTP id XAA22197; Fri, 30 Apr 1999 23:42:34 +0200 (MET DST) From: Bruno Haible Received: (from haible@localhost) by jaures.ilog.fr (8.9.3/8.9.3) id XAA13156; Fri, 30 Apr 1999 23:42:19 +0200 (MET DST) Date: Fri, 30 Apr 1999 23:42:19 +0200 (MET DST) Message-Id: <199904302142.XAA13156@jaures.ilog.fr> To: clisp-list@seagull.cons.org Subject: Re: (listen ...) In-Reply-To: <199904302019.PAA13430@nirvana.lib.uchicago.edu> References: <199904302019.PAA13430@nirvana.lib.uchicago.edu> Charles Blair writes: > > if i use (listen ...) to test whether a stream i've opened has > characters in it to read, and i do this interactively, i get results i > expect: > > > (defvar s (run-program "date" :output :stream)) > S > > (listen s) > T `listen' returns, according to the HyperSpec, T "if there is a character immediately available from input-stream". NIL does not mean end-of-stream, it means "wait, maybe there are still characters coming, maybe not". When you spawn the "date" program, it needs a few milliseconds until it produces its first output character. Not enough time for you to type in "(listen s)" and press the Enter key, but, when loaded from a file, enough time for clisp to reach and evaluate the next command. Bruno From chas@nirvana.lib.uchicago.edu Fri Apr 30 21:09:12 1999 Received: from nirvana.lib.uchicago.edu (nirvana.lib.uchicago.edu [128.135.53.5]) by seagull.cdrom.com (8.8.8/8.6.6) with ESMTP id VAA27380 for ; Fri, 30 Apr 1999 21:09:11 -0700 (PDT) Received: from nirvana.lib.uchicago.edu (localhost [127.0.0.1]) by nirvana.lib.uchicago.edu (8.9.1/8.9.1) with SMTP id XAA22355 for ; Fri, 30 Apr 1999 23:09:41 -0500 (CDT) Message-Id: <199905010409.XAA22355@nirvana.lib.uchicago.edu> To: clisp-list@clisp.cons.org Subject: Re: (listen ...) Reply-To: cjdb@midway.uchicago.edu In-Reply-To: Your message of "Fri, 30 Apr 1999 14:42:55 -0700 (PDT)" References: <199904302142.XAA13156@jaures.ilog.fr> X-Mailer: Mew version 1.06 on Emacs 19.14 XEmacs Lucid Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Fri, 30 Apr 1999 23:09:40 -0500 From: Charles Blair thanks. i tested this with a short `sleep' command before `listen', and it works now as expected when loaded from a file.