[Ecls-list] Too many arguments for generic function CLOSE

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Mon Dec 22 10:40:44 UTC 2008


On Mon, Dec 22, 2008 at 10:54 AM, Stelian Ionescu
<stelian.ionescu-zeus at poste.it> wrote:
> On Mon, 2008-12-22 at 10:10 +0100, Juan Jose Garcia-Ripoll wrote:
>> On Sat, Dec 20, 2008 at 3:51 PM, Stelian Ionescu
>> <stelian.ionescu-zeus at poste.it> wrote:
>> > Compiling a use of WITH-OPEN-FILE yields the warning "Too many arguments
>> > for generic function CLOSE"
>>
>> Is this true also for the last release? I do not get that error here :-/
>
> I'm using 8.12.0 on Linux/x86 configured like this:
> --with-system-gmp --enable-gengc --enable-boehm=system
> --enable-longdouble --without-cxx --enable-debug --enable-threads
> --with-__thread --enable-unicode --without-x --without-clx

Same results. I definitely do not get that warning, even when I build
with your flags. Are you sure there is no other copy of ECL installed
around. Maybe one from Debian?

mkdir build.tst
cd build.tst
LDFLAGS="-L/sw/lib" CFLAGS="-I/sw/include -O2 -g" ../src/configure
--prefix=$HOME --with-system-gmp --enable-gengc --enable-boehm=system
--enable-longdouble --without-cxx --enable-debug --enable-threads
--with-__thread --enable-unicode --without-x --without-clx
make
make install

juanjo-imac:build.tst jjgarcia$ ecl -norc
ECL (Embeddable Common-Lisp) 8.12.0 (CVS 2008-07-12 18:54)
Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya
Copyright (C) 1993 Giuseppe Attardi
Copyright (C) 2000 Juan J. Garcia-Ripoll
ECL is free software, and you are welcome to redistribute it
under certain conditions; see file 'Copyright' for details.
Type :h for Help.  Top level.
> (require 'cmp)
;;; Loading #P"/Users/jjgarcia/lib/ecl-8.12.0/CMP.fas"
;;; Loading #P"/Users/jjgarcia/lib/ecl-8.12.0/sysfun.lsp"
("CMP")
> (handler-bind ((c:compiler-warning
                      (lambda (err) (describe err))))
        (compile 'nil '(lambda ()
                        (with-open-file (f "/tmp/fookoo")))))
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
;;; End of Pass 1.
;;; Note: Invoking external command:
;;;   gcc [...]
;;; Note: Invoking external command:
;;;   gcc [...]
#<compiled-function 01c9eb60>
NIL
NIL


-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28009 (Spain)
http://juanjose.garciaripoll.googlepages.com


More information about the ecl-devel mailing list