[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gio-channel
From: |
Chris Vine |
Subject: |
Re: gio-channel |
Date: |
Fri, 25 Apr 2014 22:50:05 +0100 |
It does appear to be a wrapper error as the following longhand
equivalent version does work correctly for attaching file descriptors
to a glib main loop, so there is a work-around at least:
(define* (my-io-add-watch ioc cond func #:optional context)
(let ([s (g-io-create-watch ioc cond)]
[closure (make <gclosure>
#:return-type <gboolean>
#:func func)])
(g-source-set-closure s closure)
(g-source-attach s context)))
I have posted a bug at the gnome bugzilla but looking at the history
before posting I see that bugs posted there for guile-gnome-platform
do seem to linger longer. Is there another bug reporting system I
should pay attention to?
Chris
------------------------------------------
On Fri, 25 Apr 2014 10:55:49 +0100
Chris Vine <address@hidden> wrote:
> Hi,
>
> The code snippet below fails to compile with guile-2.0.11, using the
> current master branches of guile-gnome-2 and g-wrap:
>
> #! /usr/bin/guile-gnome-2 -s
> !#
>
> (use-modules (gnome gobject)
> (gnome glib)
> (oop goops))
>
> (let* ([p (pipe)]
> [fd (fileno (car p))])
> (let ([ioc (g-io-channel-unix-new fd)])
> (g-io-add-watch ioc
> '(in hup)
> (lambda (a b)
> '()))))
>
> Attempting to run it gives:
>
> Backtrace:
> In ice-9/boot-9.scm:
> 157: 7 [catch #t #<catch-closure 81f2c60> ...]
> In unknown file:
> ?: 6 [apply-smob/1 #<catch-closure 81f2c60>]
> In ice-9/boot-9.scm:
> 63: 5 [call-with-prompt prompt0 ...]
> In ice-9/eval.scm:
> 432: 4 [eval # #]
> In ice-9/boot-9.scm:
> 2401: 3 [save-module-excursion #<procedure 8201ce0 at
> ice-9/boot-9.scm:4045:3 ()>] 4052: 2 [#<procedure 8201ce0 at
> ice-9/boot-9.scm:4045:3 ()>] In unknown file:
> ?: 1 [load-compiled/vm
> "/home/chris/.cache/guile/ccache/2.0-LE-4-2.0/home/chris/src/io-channel.scm.go"]
> ?:
> 0 [apply-smob/1 # # # ...]
>
> ERROR: In procedure apply-smob/1:
> ERROR: In procedure module-lookup: Unbound variable: <gio-channel>
>
> The backtrace from loading it at the repl appears to show that the new
> gio-channel object is constructed properly, but g-io-add-watch fails.
> Is this user error at my end or a bug in the wrapper? If the latter
> I'll file a bug.
>
> Chris
- gio-channel, Chris Vine, 2014/04/25
- Re: gio-channel,
Chris Vine <=