clg 0.90 first steps

Fruhwirth Clemens <[email protected]> Thu, 28 Jul 2005 11:20:01 +0200
Newsgroups gmane.lisp.clg.devel
Message-ID <1122542401.8996.29.camel@ghanima>
Hi!

While trying clg 0.90, I ran into a few problems:

- gtk.lisp defines a mapping for _gtk_accel_map_init. My gtk shared
library does not export this object, and after digging a bit in the gtk
I concluded that it shouldn't do that. 

_gtk_accel_map_init is labeled "internal API" in gtkaccelmap.h. There is
a function gtk_accel_map_init (without the underscore prefix), which is
defined as "{}". The underscore version is called from gtkmain.c, so it
appears that GTK calls this function on its own anyway. This function
appears to be unimportant to the rest of the world
http://www.google.com/search?q=gtk_accel_map_init ,
so I "solved" this problem by removing the defbinding from gtk.lisp. 

- The second problem isn't that straight forward. The macroexpansion of
define-types-by-introspection for Gtk fails rather rudely in
gtktypes.lisp. Macroexpanding it results in SIGABRT. Unfortunately, I
don't get a useful backtrace, but it seems to come from

expand-type-definitions -> %sort-types-topologicaly -> first lambda
expression in the let binding  -> find-types-dependencies -> 

    (when list-dependencies
      (funcall list-dependencies (find-type-number type t)))))

Error in function UNIX::SIGABRT-HANDLER:  SIGABRT at #xFFFFE410.
   [Condition of type SIMPLE-ERROR]

Restarts:
  0: [ABORT] Abort handling SLIME request.
  1: [ABORT] Return to Top-Level.

Backtrace:
  0: (UNIX::SIGABRT-HANDLER #<#1=unused-arg> #<#1#> #.(SYSTEM:INT-SAP #x3FFFB118))
  1: (UNIX::SIGABRT-HANDLER 3 #<#1=unused-arg> #<#1#> #.(SYSTEM:INT-SAP #x3FFFB118))[:EXTERNAL]
  2: ("call_into_lisp+#x8C [#x8054D9C] /usr/bin/lisp")
  3: ("funcall3+#x32 [#x8054BB4] /usr/bin/lisp")
  4: ("interrupt_handle_now+#xF9 [#x80503CB] /usr/bin/lisp")s
  5: ("interrupt_handle_now_handler+#x43 [#x80502D0] /usr/bin/lisp")

The funcall appears to cause the problem somewhere down its calling
path. Any ideas what could be the cause, or where I should continue
tracing?

I'm using "CMU Common Lisp CVS 19b 19b-release-20050628-3 + minimal
debian patches (19B)" and GTK 2.6.7.

Regards and thanks for your work Espen,
-- 
Fruhwirth Clemens - http://clemens.endorphin.org 
for robots: [email protected]
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBC6KNBbjN8iSMYtrsRAs5sAJ9D9hZuycie1qgypQFCkO4uWfxIowCeLBIQ
K8dz4d5Vp/liHJsMHU1XWnA=
=I68U
-----END PGP SIGNATURE-----