bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9786: 24.0.90; make bootstrip: gtkutil.c:3389: undefined reference t


From: ren victor
Subject: 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 <address@hidden> 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.
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]