[cells-gtk-devel] SBCL patches

Marco Gidde marco.gidde at tiscali.de
Sat May 20 13:25:53 UTC 2006


Hi,

recently I started playing with SBCL 0.9.12 and cells-gtk (from CVS)
and found a few bugs. Some of these prevented a successful
compilation, others where runtime bugs. 

The first one is a missing argument in pod-utils/utils.lisp:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 811 bytes
Desc: pod-utils
URL: <https://mailman.common-lisp.net/pipermail/cells-gtk-devel/attachments/20060520/55407a97/attachment.bin>
-------------- next part --------------


gtk-ffi/gtk-utilities.lisp contains two runtime bugs. The first one is
in BUTTON-PRESS-EVENT-HANDLER and prevents the pop up of the context
menu in the gtk-demo (can be found at the bottom of the "Menus" page
tab). The other one is a type mismatch in
GTK-FILE-CHOOSER-GET-FILENAMES-STRS which also results in a compiler
error.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 1576 bytes
Desc: gtk-utilities
URL: <https://mailman.common-lisp.net/pipermail/cells-gtk-devel/attachments/20060520/55407a97/attachment-0001.bin>
-------------- next part --------------


The last file with errors is gtk-ffi.lisp and this one is a little bit
obscure (at least to me). The defpackage form at the beginning of the
file makes SBCL complain about several other symbols also being
exported when this form is evaluated for the second time. For some
reasons SBCL considers this an *error*, so I changed it to

(eval-when (:compile-toplevel :load-toplevel :execute)
  (unless (find-package :gtk-ffi)
      (defpackage :gtk-ffi
	(:use :common-lisp :pod))))

The other problem is that FFI-TO-UFFI-TYPE is not defined at load
time, but used in the function CAST.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 1261 bytes
Desc: gtk-ffi
URL: <https://mailman.common-lisp.net/pipermail/cells-gtk-devel/attachments/20060520/55407a97/attachment-0002.bin>
-------------- next part --------------


With these patches it is possible to load cells-gtk without errors in
SBCL and the resulting fasl files also work when a new instance of
SBCL is started later (without the patches I had to "touch" a few
*.lisp files every time to enforce a recompilation).


Regards,

Marco


More information about the cells-gtk-devel mailing list