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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9786 in the body.
You can then email your comments to 9786 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#9786; Package emacs. (Tue, 18 Oct 2011 16:14:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Victor Ren <victorhge <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 18 Oct 2011 16:14:01 GMT) Full text and rfc822 format available.

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

From: Victor Ren <victorhge <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.90; make bootstrip: gtkutil.c:3389: undefined reference to
	`g_object_ref_sink
Date: Tue, 18 Oct 2011 17:05:49 +0200
I was trying to build Emacs pretest in Suse with glib-2.0 and get the
error message. 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9786; Package emacs. (Tue, 18 Oct 2011 17:21:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Victor Ren <victorhge <at> gmail.com>
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: Tue, 18 Oct 2011 13:19:47 -0400
Victor Ren wrote:

> I was trying to build Emacs pretest in Suse with glib-2.0 and get the
> error message. 

Please tell us precisely what version of glib is on your system.
Attaching your (compressed) config.log may be helpful.

Configure checks for glib >= 2.6, however it seems g_object_ref_sink may
need glib >= 2.9.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9786; Package emacs. (Tue, 18 Oct 2011 18:09:02 GMT) Full text and rfc822 format available.

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

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Victor Ren <victorhge <at> gmail.com>
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: Tue, 18 Oct 2011 20:07:00 +0200
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.

	Jan D.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9786; Package emacs. (Wed, 19 Oct 2011 01:45:01 GMT) Full text and rfc822 format available.

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.
>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9786; Package emacs. (Wed, 19 Oct 2011 05:28:01 GMT) Full text and rfc822 format available.

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

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: ren victor <victorhge <at> gmail.com>
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 07:26:41 +0200
Hello.

19 okt 2011 kl. 03:43 skrev ren victor:

> 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


Having all this #ifdefs all over the place is a maintenance problem.  At some point we must move forward.  Considering that 2.10 is well over 5 years old, I don't think requiring it is a hard requirement.

	Jan D.






bug marked as fixed in version 24.0.91, send any further explanations to 9786 <at> debbugs.gnu.org and Victor Ren <victorhge <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 27 Oct 2011 03:58:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 24 Nov 2011 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 165 days ago.

Previous Next


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