[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
warnings about duplicates on startup
From: |
gregory benison |
Subject: |
warnings about duplicates on startup |
Date: |
Tue, 20 Feb 2007 13:43:18 -0800 |
guile-gnome issues warnings on startup (with guile-1.8, but not with
guile-1.6) because of duplicate bindings, for example:
guile> (use-modules (gnome glib))
WARNING: (gnome glib): `<gclosure>' imported from both (gnome gobject
gclosure) and (gnome gw gobject)
WARNING: (gnome glib): `<gobject>' imported from both (gnome gobject
gobject) and (gnome gw gobject)
This is more than a cosmetic issue because the warnings appear on
stdout rather than stderr, which can be a problem for some programs.
(The warnings can be 'grepped out', but it would be nice to get at the
underlying issue.)
The duplicate warning for <gobject> arises from the two definitions of
<gobject> in the guile-gnome source tree, one defined in the source
file gobject/gobject.scm and the other defined in a g-wrap generated
file whose source is gobject-spec.scm. Neither binding is used nor
re-exported by (gnome glib).
Either of the two patches below remove the warnings and everything
still seems to work. (The first patch is only compatible with
guile-1.8; the second is compatible with either guile-1.6 or
guile-1.8).
--- orig/gnome/glib.scm
+++ mod/gnome/glib.scm
@@ -31,7 +31,9 @@
#:use-module (gnome gw support modules)
#:use-module (oop goops)
- #:re-export (g-source-set-closure))
+ #:re-export (g-source-set-closure)
+
+ #:duplicates (last))
(re-export-modules (gnome gw glib))
--- orig/gnome/glib.scm
+++ mod/gnome/glib.scm
@@ -27,7 +27,7 @@
(define-module (gnome glib)
#:use-module (gnome gobject)
#:use-module (gnome gw glib)
- #:use-module (gnome gw gobject)
+ #:use-module ((gnome gw gobject) #:select (g-source-set-closure))
#:use-module (gnome gw support modules)
#:use-module (oop goops)
--
======================
Gregory Benison
Oregon State University
(541)-737-1876
gbenison at gmail dot com
======================
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- warnings about duplicates on startup,
gregory benison <=