GNU bug report logs - #9786
24.0.90; make bootstrip: gtkutil.c:3389: undefined reference to `g_object_ref_sink

Previous Next

Package: emacs;

Reported by: Victor Ren <victorhge <at> gmail.com>

Date: Tue, 18 Oct 2011 16:14:01 UTC

Severity: normal

Found in version 24.0.90

Fixed in version 24.0.91

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 9786 <at> debbugs.gnu.org (full text, mbox):

From: ren victor <victorhge <at> gmail.com>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 9786 <at> debbugs.gnu.org
Subject: Re: bug#9786: 24.0.90; make bootstrip: gtkutil.c:3389: undefined
	reference to `g_object_ref_sink
Date: Wed, 19 Oct 2011 09:43:40 +0800
On Wed, Oct 19, 2011 at 2:07 AM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:
>
> Hello.
>
> 18 okt 2011 kl. 17:05 skrev Victor Ren:
>
> > I was trying to build Emacs pretest in Suse with glib-2.0 and get the
> > error message.
> >
> >
>
> I see the version checks in configure hasn't been updated.
> You need at least Gtk+ 2.10 and Glib 2.10.
> g_object_ref_sink was introduced in Glib 2.10.  It was released early 2006, so it is quite old.
>
> I will update configure.in.

People may have to live with older version of glib than 2.10.    I
changed the code

-   g_object_ref_sink (G_OBJECT (wscroll));
+   g_object_ref (G_OBJECT (wscroll));
+   gtk_object_sink (GTK_OBJECT (wscroll));

Then it works.  I did not find any more dependency for glib 2.10.   So
I think it should be something like:

#if GLIB_VERSION_OLD_THAN(2.10)
g_object_ref (G_OBJECT (wscroll));
gtk_object_sink (GTK_OBJECT (wscroll));
#else
g_object_ref_sink (G_OBJECT (wscroll));
#endif

Victor Ren

>
>        Jan D.
>




This bug report was last modified 13 years and 207 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.