Summary: | x11-libs/guile-gtk -2.0 - gdk-gl-glue.c:86: error: 'gdk_gl_context_ref' undeclared here (not in a function) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Todd M. Hébert <gentoo> |
Component: | [OLD] Unspecified | Assignee: | Marijn Schouten (RETIRED) <hkbst> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | christianbecke, flameeyes, kredba, qa, scheme, stentj, telefrancisco |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Patch against guile-gtk-2.0
patch against x11-libs/guile-gtk-2.0.ebuild |
Description
Todd M. Hébert
2008-09-14 13:47:18 UTC
Which version of x11-libs/gtk++ do you have installed? (In reply to comment #1) > Which version of x11-libs/gtk++ do you have installed? > I have: [I] x11-libs/gtk+ Available versions: (1) 1.2.10-r12 (2) 2.10.14 2.12.8 (~)2.12.9-r1 2.12.9-r2 2.12.10-r1 2.12.11 {X cups debug doc jpeg linguas_az linguas_ca linguas_cs linguas_da linguas_de linguas_el linguas_es linguas_et linguas_eu linguas_fi linguas_fr linguas_ga linguas_gl linguas_hr linguas_hu linguas_it linguas_ja linguas_ko linguas_lt linguas_nl linguas_nn linguas_no linguas_pl linguas_pt linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sr linguas_sv linguas_tr linguas_uk linguas_vi nls tiff vim-syntax xinerama} Installed versions: 1.2.10-r12(1)(15:41:49 28/06/08)(nls -debug -linguas_az -linguas_ca -linguas_cs -linguas_da -linguas_de -linguas_el -linguas_es -linguas_et -linguas_eu -linguas_fi -linguas_fr -linguas_ga -linguas_gl -linguas_hr -linguas_hu -linguas_it -linguas_ja -linguas_ko -linguas_lt -linguas_nl -linguas_nn -linguas_no -linguas_pl -linguas_pt -linguas_pt_BR -linguas_ro -linguas_ru -linguas_sk -linguas_sl -linguas_sr -linguas_sv -linguas_tr -linguas_uk -linguas_vi) 2.12.11(2)(18:56:22 18/07/08)(X cups doc jpeg tiff -debug -vim-syntax -xinerama) Homepage: http://www.gtk.org/ Description: Gimp ToolKit + I get this too. My guess is that it's gcc-related. Same here. Same for me with ~amd64 with gcc version 4.3.2 (Gentoo 4.3.2 p1.2, pie-10.1.2). I--] [ ] x11-libs/gtk+-1.2.10-r12 (1) [I--] [ ~] x11-libs/gtk+-2.14.5 (2) [I--] [ ~] x11-libs/gtk+extra-2.1.1-r2 (0) *** Bug 248540 has been marked as a duplicate of this bug. *** Created attachment 184839 [details, diff]
Patch against guile-gtk-2.0
It looks as if the gdk_gl_{context,pixmap}_{ref,unref} functions in gtkglarea-2.0.0 are deprecated in favour of plain g_object_{ref,unref}. To compile guile-gtk, we have to
a) compile guile-gtk with -UGTKGL_DISABLE_DEPRECATED
or
b) make guile-gtk use the gobject methods instead of gdk_gl methods.
Attached patch does the latter.
Created attachment 184841 [details, diff]
patch against x11-libs/guile-gtk-2.0.ebuild
Attached patch makes the ebuild apply the previously attached patch.
I forgot to mention: I don't know anything about scheme, I just guessed that I need to replace all occurrences of the gdk_gl_{context,pixmap}_{ref,unref} functions with g_object_{ref,unref} in gtk-gl/gdk-gl.defs as well. guile-gtk builds fine with my patch, but because there is no "test" target, I could not verify if it actually works with my patch applied. I confirm this bug. I've added this fix to the science overlay and it seems to be working fine. Thanks Christian! Before I go out and mask guile-gtk, which is long overdue, can somebody put this in tree, for QA sake? ulm will commit the patch for 2.0, and bump the package to 2.1 that's in science overlay. (In reply to comment #13) > ulm will commit the patch for 2.0, and bump the package to 2.1 that's in > science overlay. Done. Thanks for reporting the issue, and for the patch. (In reply to comment #7) > Created an attachment (id=184839) [details] > Patch against guile-gtk-2.0 BTW, has this been submitted upstream? If not, please do so. (In reply to comment #15) > BTW, has this been submitted upstream? If not, please do so. Just reported it to the guile-gtk mailing list. Reply from upstream (Andy Wingo):
> Guile-GTK is unmaintained, I think, unless Kevin comes back, or someone
> else takes it up. The better solution is to use Guile-GNOME instead.
>
> But thanks for posting the patch, perhaps some other user or distributor
> will pick it up.
>
> Andy
|