Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237634 - x11-libs/guile-gtk -2.0 - gdk-gl-glue.c:86: error: 'gdk_gl_context_ref' undeclared here (not in a function)
Summary: x11-libs/guile-gtk -2.0 - gdk-gl-glue.c:86: error: 'gdk_gl_context_ref' undec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Marijn Schouten (RETIRED)
URL:
Whiteboard:
Keywords:
: 248540 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-14 13:47 UTC by Todd M. Hébert
Modified: 2009-12-19 08:22 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch against guile-gtk-2.0 (guile-gtk-2.0-g-object-ref.diff,1.51 KB, patch)
2009-03-12 22:00 UTC, Christian Becke
Details | Diff
patch against x11-libs/guile-gtk-2.0.ebuild (guile-gtk-2.0-ebuild.diff,652 bytes, patch)
2009-03-12 22:01 UTC, Christian Becke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Todd M. Hébert 2008-09-14 13:47:18 UTC
After an "emerge -vDNu world" portage informed me that I had some package that were preserved, and needed to be rebuilt.

Reproducible: Always

Steps to Reproduce:
1. emerge @preserved-rebuild  (with guile-gtk-2.0 in need of rebuilding)

OR

1. emerge guile-gtk-2.0 directly
Actual Results:  
emerge failed.

Expected Results:  
Expected emerge to succeed

Compiler output:

include/libpng12 -I/usr/include/pixman-1 -pthread -O3 -march=athlon64 -pipe -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -c gdk-gl-support.c -o gdk-gl-support.o >/dev/null 2>&1
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include/gtkgl-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -pthread -O3 -march=athlon64 -pipe -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -c gtk-gl-area-glue.c -o gtk-gl-area-glue.o >/dev/null 2>&1
gdk-gl-glue.c:86: error: 'gdk_gl_context_ref' undeclared here (not in a function)
gdk-gl-glue.c:87: error: 'gdk_gl_context_unref' undeclared here (not in a function)
gdk-gl-glue.c:103: error: 'gdk_gl_pixmap_ref' undeclared here (not in a function)
gdk-gl-glue.c:104: error: 'gdk_gl_pixmap_unref' undeclared here (not in a function)
make[3]: *** [gdk-gl-glue.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/x11-libs/guile-gtk-2.0/work/guile-gtk-2.0/gtk-gl'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/x11-libs/guile-gtk-2.0/work/guile-gtk-2.0/gtk-gl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-libs/guile-gtk-2.0/work/guile-gtk-2.0'
make: *** [all] Error 2
 *
 * ERROR: x11-libs/guile-gtk-2.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2120:  Called _eapi0_src_compile
 *               ebuild.sh, line  604:  Called _eapi2_src_compile
 *               ebuild.sh, line  638:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/x11-libs/guile-gtk-2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/guile-gtk-2.0/temp/environment'.
 *
---------------------------------------------

Portage 2.2_rc8 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r7-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-glibc2.2.5
Timestamp of tree: Sun, 14 Sep 2008 11:15:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -march=athlon64 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ http://mirror.bytemark.co.uk/gentoo/ http://mirror.muntinternet.net/pub/gentoo/ http://mirror.qubenet.net/mirror/gentoo/"
LANG="en_IE@euro"
LC_ALL="en_IE@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="en_IE en_GB en_US en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gentopia /usr/portage/local/layman/voip /usr/portage/local/layman/wschlich-testing /usr/portage/local/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext S3TC X a52 aac aalib acl acpi adns aim aimextras alsa amd amd64 apache2 apm arts asf async audiofile authfile authlib automount avahi bash-completion bdf beagle berkdb binfilter bluetooth bonjour branding browserplugin bzip2 c3p0 cairo cdda cddb cdio cdparanoia cdr cgi chm chroot cli command-args cpudetection cracklib crosscompile crypt css cups curl curlwrappers daap dbus dcraw dga divx doc dri dts dv dvd dvdr dvdread ecc eds emul-linux-x86 en_IE encode escreen esd evo examples exif fam fat ffmpeg firefox flac flash font-server fontconfig fortran fpx ftp fuse gaim galago gcj gd gdbm gg gif gimp gimpprint glibc-omitfp gmedia gnome gnuplot gnutls gpm graphviz gs gstreamer gtk guile gzip hal hbci hddtemp hdri hesiod high-ints hpn html iconv icq id3 idea ident idn ieee1394 imagemagick iproute2 ipsec ipv6 irc jabber java javascript jbig jce jpeg jpeg2k kde kerberos lame lcms ldap libcaca libgcrypt libnotify libsamplerate live lm_sensors logrotate lzo mad math matroska max-idx-128 mbox mdb mdnsresponder-compat midi mikmod mime ming mixer mjpeg mmx modplug mono mozilla moznocompose moznoirc moznomail mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer msn msnextras mudflap multilib musepack musicbrainz mysql mysqli nas ncurses nemesi net netbeans networking nls nptl nptlonly nsplugin odbc offensive ofx ogg old-crypt% ole on-the-fly-crypt opendoc openexr opengl openmp openssl oscar pam pam_chroot pcre pda pdf perl player png ppds profile pvr python q32 qt3 qt3support qt4 quicktime quotas quotes rar rc5 rdesktop readline realmedia reflection regex reiserfs rrdtool rtc rtsp ruby samba screen sdk sdl sendfile sensord serial session shared sharedmem sid smp sndfile sockets sound spell spl sql srt sse sse-filters sse2 ssl startup-notification stream subtitles svg symlink sysfs syslog tcltk tcpd tga theora thunderbird tiff timidity tivo transcode truetype twolame type1 unicode unzip usb uudeview v4l2 vcd vcdx vorbis withsamplescripts wma wmf wmp wxwindows x264 xanim xml xorg xscreensaver xv xvid xvmc yahoo zeroconf zip zlib zoran" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_IE en_GB en_US en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-15 12:41:02 UTC
Which version of x11-libs/gtk++ do you have installed?
Comment 2 Todd M. Hébert 2008-09-15 23:39:34 UTC
(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 +
Comment 3 Marijn Schouten (RETIRED) gentoo-dev 2008-09-24 22:40:00 UTC
I get this too. My guess is that it's gcc-related.
Comment 4 Francisco José Cañizares Santofimia 2008-12-25 11:20:58 UTC
Same here.
Comment 5 David Kredba 2008-12-26 19:22:40 UTC
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)
Comment 6 Marijn Schouten (RETIRED) gentoo-dev 2009-03-11 22:26:52 UTC
*** Bug 248540 has been marked as a duplicate of this bug. ***
Comment 7 Christian Becke 2009-03-12 22:00:35 UTC
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.
Comment 8 Christian Becke 2009-03-12 22:01:53 UTC
Created attachment 184841 [details, diff]
patch against x11-libs/guile-gtk-2.0.ebuild

Attached patch makes the ebuild apply the previously attached patch.
Comment 9 Christian Becke 2009-03-12 22:09:05 UTC
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.
Comment 10 Ahmed Ammar (RETIRED) gentoo-dev 2009-06-11 08:05:00 UTC
I confirm this bug.
Comment 11 Jeffrey Gardner (RETIRED) gentoo-dev 2009-06-14 05:12:06 UTC
I've added this fix to the science overlay and it seems to be working fine. Thanks Christian!
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-04 21:03:53 UTC
Before I go out and mask guile-gtk, which is long overdue, can somebody put this in tree, for QA sake?
Comment 13 Tomás Touceda (RETIRED) gentoo-dev 2009-12-05 12:30:45 UTC
ulm will commit the patch for 2.0, and bump the package to 2.1 that's in science overlay.
Comment 14 Ulrich Müller gentoo-dev 2009-12-05 13:15:53 UTC
(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.
Comment 15 Ulrich Müller gentoo-dev 2009-12-05 13:25:39 UTC
(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.
Comment 16 Christian Becke 2009-12-06 14:36:19 UTC
(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.
Comment 17 Christian Becke 2009-12-19 08:22:36 UTC
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