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