[cffi-devel] CLISP no longer supports ffi::foreign-library-function

Barry Fishman barry_fishman at acm.org
Sat Apr 5 14:46:07 UTC 2008


"Luís Oliveira" <luismbo at gmail.com> writes:
> On Fri, Apr 4, 2008 at 5:57 PM, Barry Fishman <barry_fishman at acm.org> wrote:
>>  In the current CVS head (but not the last clisp-2.44.1 release) these
>>  functions have quietly disappeared.  This causes problems with the CLISP
>>  CVS head in cffi-clisp.lisp.
>
> The attached patch should fix that while maintaining backwards
> compatibility.

Thank you.  My cl-opengl code now works.

>                Unfortunately, CVS CLISP (my copy of the ChangeLog says
> 2008-03-25) dumps core on the callback tests. I'm using x86-64. Can
> anyone reproduce this behaviour?
>
> [1]> (asdf:oos 'asdf:test-op :cffi)
> ...
> *** - handle_fault error2 ! address = 0x8 not in [0x333a9f000,0x333d4b160) !
> SIGSEGV cannot be cured. Fault address = 0x8.
> Permanently allocated: 161560 bytes.
> Currently in use: 5352408 bytes.
> Free space: 324432 bytes.
> Segmentation fault (core dumped)
>
> luis at haden:~$ clisp --version
> GNU CLISP 2.45 (2008-04-04) (built 3415563584) (memory 3415563829)
> Software: GNU C 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
> gcc -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit
> -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O
> -falign-functions=4 -DUNICODE -DDYNAMIC_FFI -I. -x none -lreadline
> -lncurses -ldl -lavcall -lcallback  -lsigsegv
> SAFETY=0 TYPECODES WIDE GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY
> libsigsegv 2.4
> libreadline 5.2
> Features:
> (READLINE REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP
>  LISP=CL INTERPRETER SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI
>  GETTEXT UNICODE BASE-CHAR=CHARACTER PC386 UNIX)
> C Modules: (clisp i18n syscalls regexp readline)
> Installation directory: /home/luis/Software/lib/clisp-2.45/
> User language: ENGLISH
> Machine: X86_64 (X86_64) haden [127.0.1.1]

I get:

1 out of 219 total tests failed: DEFCFUN.VARARGS.DOCSTRINGS.
;;; Finished running tests (uncompiled) 1 times.
*** - test-op failed.

Using OpenSUSE 10.3, the CVS versions of CLISP, and the latest (but
with your patch) common-lisp.net Darcs version.

GNU CLISP 2.45 (2008-04-04) (built 3415900623) (memory 3415900915)
Software: GNU C 4.2.1 (SUSE Linux)
gcc -I/usr/include/pgsql -I/usr/local/include -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O -falign-functions=4 -DUNICODE -DDYNAMIC_FFI -I. -x none -lreadline -lncurses -ldl -lavcall -lcallback  -lsigsegv -L/usr/lib64
SAFETY=0 TYPECODES WIDE GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY
libsigsegv 2.4
libreadline 5.2
Features:
(READLINE REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP
 LISP=CL INTERPRETER SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI
 GETTEXT UNICODE BASE-CHAR=CHARACTER PC386 UNIX)
C Modules: (clisp i18n syscalls regexp readline)
Installation directory: /home/util64/clisp/lib/clisp-2.45/
User language: ENGLISH
Machine: X86_64 (X86_64) ecube.site [10.0.0.2]
 
-- 
Barry Fishman




More information about the cffi-devel mailing list