public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
* guile-gtk-0.21pre4 and guile-1.5.6 fails, fix
@ 2002-03-27 22:16 Steve Tell
  0 siblings, 0 replies; only message in thread
From: Steve Tell @ 2002-03-27 22:16 UTC (permalink / raw)
  To: Guile-GTK List; +Cc: Guile Mailing List


guile-gtk-0.21pre4 built against guile-1.5.6 fails with a coredump
when I try to run "guile -s test-gtk.scm"
The top of the traceback is:

#0  0x40059a24 in scm_make_keyword_from_dash_symbol (symbol=0x0)
    at keywords.c:79
79        SCM_ASSERT (SCM_SYMBOLP (symbol)
(gdb) bt
#0  0x40059a24 in scm_make_keyword_from_dash_symbol (symbol=0x0)
    at keywords.c:79
#1  0x402b0de3 in sgtk_init_gtk_support () at gtk-support.c:652
#2  0x402ce598 in sgtk_init_gtk_gtk_glue () at gtk-glue.c:14910
#3  0x40037a24 in scm_dynamic_call (func=0x40268470, dobj=0x80857b0)
    at dynl.c:467
#4  0x40049582 in load_extension (lib=0x40268460, init=0x40268470)
    at extensions.c:109
#5  0x40049642 in scm_load_extension (lib=0x40268460, init=0x40268470)
    at extensions.c:158



Looking at gtk-support.c, I determined that sym_type is NULL because
the SCM_SYMBOL() macro didn't get handled correctly.  In fact, none of the
snarfing worked; gtk-support.x was empty. 

This happens because in guile-1.5.6 guile-snarf is no longer installed
into $prefix/bin.  I got empty .x files instead of an error because an old
guile-1.4 guile-snarf was further down $PATH but but didn't recognize the
new snarfing format generated by the guile-1.5.6 snarf.h header.

The following hack gets things working:

- Copy libguile/guile-snarf into the guile-gtk-0.21pre4 build directory.
- Change Makefile.am so that it explicitly runs ./guile-snarf
- automake, autoconf, configure, make

This will only work in 1.5.6 since the guile-1.5.4 guile-snarf isn't
compatible.  With luck the snarfing interface won't change again before
1.6, but my understanding is that guile-snarf was made "private" especialy
so that the internals can be overhauled in the future.  Since guile-gtk
versions are pretty much hardwired to guile versions, this is probably OK.

In gwave, (which is attempting portability to guile-1.3.4, 1.4, and now
1.5.6) I've copied a working version of the snarfing scripts and includes,
renaming the macros to avoid collisions.

Steve



--
Steve Tell  tell@telltronics.org 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-28  6:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-27 22:16 guile-gtk-0.21pre4 and guile-1.5.6 fails, fix Steve Tell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).