From: ren victor <victorhge@gmail.com>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: 9786@debbugs.gnu.org
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 [thread overview]
Message-ID: <CAMks0JGv+0PU+q8-8v4Rcxmjrda7cbbM6HL=to-689z3pSesFg@mail.gmail.com> (raw)
In-Reply-To: <DFD00460-7933-4239-9CAE-0F6445693015@swipnet.se>
On Wed, Oct 19, 2011 at 2:07 AM, Jan Djärv <jan.h.d@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.
>
next prev parent reply other threads:[~2011-10-19 1:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-18 15:05 bug#9786: 24.0.90; make bootstrip: gtkutil.c:3389: undefined reference to `g_object_ref_sink Victor Ren
2011-10-18 17:19 ` Glenn Morris
2011-10-18 18:07 ` Jan Djärv
2011-10-19 1:43 ` ren victor [this message]
2011-10-19 5:26 ` Jan Djärv
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAMks0JGv+0PU+q8-8v4Rcxmjrda7cbbM6HL=to-689z3pSesFg@mail.gmail.com' \
--to=victorhge@gmail.com \
--cc=9786@debbugs.gnu.org \
--cc=jan.h.d@swipnet.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).