Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311333 - [gnome-overlay] gnome-extra/gconf-editor-2.28.0 fails to link
Summary: [gnome-overlay] gnome-extra/gconf-editor-2.28.0 fails to link
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gtk+-2.20
  Show dependency tree
 
Reported: 2010-03-25 19:12 UTC by tman
Modified: 2010-06-13 21:43 UTC (History)
2 users (show)

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


Attachments
log (gnome-extra:gconf-editor-2.28.0:20100325-190154.log,27.10 KB, text/plain)
2010-03-25 19:22 UTC, tman
Details
Patch to fix use of the deprecated accessor macros (gconf-editor-2.28.0-fix-deprecated-accessors.patch,1.39 KB, patch)
2010-05-10 21:35 UTC, David King
Details | Diff
ebuild patch to apply deprecation fix (gconf-editor-2.28.0.ebuild.patch,576 bytes, patch)
2010-05-10 21:36 UTC, David King
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tman 2010-03-25 19:12:09 UTC
[gome-over] gnome-extra/gconf-editor-2.28.0 fail on compile

Reproducible: Always

Actual Results:  
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=core2 -O2 -pipe -Wall  -Wl,-O1 -o gconf-editor gconf-bookmarks.o gconf-bookmarks-dialog.o gconf-cell-renderer.o gconf-editor-application.o gconf-editor-window.o gconf-key-editor.o gconf-list-model.o gconf-policykit.o gconf-stock-icons.o gconf-tree-model.o gconf-util.o gedit-output-window.o gconf-search.o gconf-search-dialog.o main.o  gconf-marshal.o -pthread -lgconf-2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgmodule-2.0 -ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0    
libtool: link: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -Wall -Wl,-O1 -o gconf-editor gconf-bookmarks.o gconf-bookmarks-dialog.o gconf-cell-renderer.o gconf-editor-application.o gconf-editor-window.o gconf-key-editor.o gconf-list-model.o gconf-policykit.o gconf-stock-icons.o gconf-tree-model.o gconf-util.o gedit-output-window.o gconf-search.o gconf-search-dialog.o main.o gconf-marshal.o -pthread  /usr/lib64/libgconf-2.so /usr/lib64/libORBit-2.so /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libgio-2.0.so -lresolv /usr/lib64/libpangocairo-1.0.so -L/usr/lib64 /usr/lib64/libpangoft2-1.0.so /usr/lib64/libcairo.so /usr/lib64/libpixman-1.so /usr/lib64/libdirectfb.so /usr/lib64/libfusion.so /usr/lib64/libdirect.so /usr/lib64/libpng12.so /usr/lib64/libxcb-render-util.so /usr/lib64/libxcb-render.so /usr/lib64/libXrender.so /usr/lib64/libX11.so /usr/lib64/libxcb.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so /usr/lib64/libpango-1.0.so -lm /usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so -lz /usr/lib64/libexpat.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libdbus-glib-1.so /usr/lib64/libdbus-1.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgthread-2.0.so -lpthread -lrt /usr/lib64/libglib-2.0.so -pthread
gconf-editor-window.o: In function `gconf_add_recent_key':
gconf-editor-window.c:(.text+0xfbb): undefined reference to `GTK_WIDGET_VISIBLE'
gconf-editor-window.o: In function `gconf_editor_window_row_expanded':
gconf-editor-window.c:(.text+0x3d82): undefined reference to `GTK_WIDGET_REALIZED'
gconf-editor-window.o: In function `gconf_editor_window_test_expand_row':
gconf-editor-window.c:(.text+0x3e0f): undefined reference to `GTK_WIDGET_REALIZED'
collect2: ld returned 1 exit status
make[2]: *** [gconf-editor] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnome-extra/gconf-editor-2.28.0/work/gconf-editor-2.28.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-extra/gconf-editor-2.28.0/work/gconf-editor-2.28.0'
make: *** [all] Error 2
 * ERROR: gnome-extra/gconf-editor-2.28.0 failed:
 *   compile failure



Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9700_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 25 Mar 2010 12:00:21 +0000
app-shells/bash:     4.1_p2-r1
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5, 3.1.2
dev-util/cmake:      2.8.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/X11/Sessions/awesome /etc/X11/Sessions/dwm /etc/X11/xorg.conf /etc/apache2/httpd.conf /etc/conf.d/hwclock /etc/conf.d/keymaps /etc/fstab /etc/make.conf /etc/xdg/openbox/autostart.sh /etc/xdg/openbox/menu.xml /etc/xdg/openbox/rc.xml /etc/xdg/openbox/start /usr/share/X11/xkb /usr/share/xsessions/openbox.desktop /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="de en vi"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/scarabeus /usr/portage/local/layman/gnome /usr/portage/local/layman/science /usr/portage/local/layman/lxde /usr/portage/local/layman/devnull /usr/portage/local/local-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi adns afs aim alsa amd64 ao apache2 ass atm audio audiofile bash-completion beagle berkdb bidi bluetooth bzip2 cairo caps cdda cdio cdparanoia cdr cgi cjk cli clisp consolekit cracklib crypt cscope css csv cups curl curlwrappers cvs dbus dc1394 dga dhcp dhcpcd dia dirac directfb dmx dri dts dv dvd dvdr dvi emacs enca encode enscript erandom exif expat extras faac faad fam fastcgi fbcon ffmpeg firefox flac flash fortran ftp fuse gcj gd gdbm geoip ggi gif gimp git glib gmp gnome gnome-keyring gnutls gphoto2 gpm graphviz gs gstreamer gtk gzip hal hash hddtemp highlight httpd iconv icq icu idn ieee1394 imagemagick imap imlib ipv6 jabber jack java java6 javascript jingle joystick jpeg jpeg2k kerberos lame lapack latex lcms ldap libcaca libwww live logrotate lua lzo mad maildir matroska mbrola md5sum memlimit mercurial mhash midi mikmod mime mjpeg mmap mmx mmxext mng mono motif mp3 mp4 mpeg mplayer msn mudflap mule multilib musepack mysql nas nautilus ncurses network networkmanager nfs nls nptl nptlonly nsplugin nvidia ogg ogg123 openal openexr opengl openmp oss pam pcmcia pcre pdf perl php pic pidgin png policykit posix postgres ppds ps pulseaudio python qt3support qt4 quicktime radio rar raw rdesktop readline reflection rss rtsp ruby samba sasl savedconfig schroedinger sdl sdl-image session sip slang slp smp soap sockets sox spamassassin speex spell spl sqlite sse sse2 ssl ssse3 startup-notificatio stream stun subversion svg swat sysfs syslog sysvipc tcl tcpd theora threads tidy tiff timidity tk tokenizer truetype ucs2 udev unicode urandom usb userlocales v4l v4l2 vcd vhosts video vim-syntax vlc vlm vnc vorbis wav wavpack webkit wifi wma wmf wxwidgets x264 xattr xcb xcomposite xft xinerama xinetd xml xmlrpc xorg xpm xprint xscreensaver xsl xulrunner xv xvid xvmc yahoo zip zlib zsh-completion" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES=" actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation php5 proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en vi" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa fbdev vga vmware" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 tman 2010-03-25 19:22:19 UTC
Created attachment 225241 [details]
log
Comment 2 Rafał Mużyło 2010-03-25 22:56:54 UTC
Probably you have gtk+ 2.20 (or at least 2.19) installed.
That means you should either get gconf-editor 2.29,
or wait those 10 days (probably less) till Gnome 2.30 gets released.
Comment 3 Pacho Ramos gentoo-dev 2010-03-26 09:21:21 UTC
Yes, please tell us what gtk+ version are you using
Comment 4 tman 2010-03-26 10:46:14 UTC
i am using version 2.20.0 of gtk+ , and got this error
Comment 5 Pacho Ramos gentoo-dev 2010-03-26 11:04:29 UTC
Fine, thanks for the info
Comment 6 Thorsten Vollmer 2010-04-30 00:13:51 UTC
This kind of error occurs when deprecated GTK+ symbols are disabled during compilation. GTK_DISABLE_DEPRECATED can cause failures with any new version of GTK+ and should not be used in releases.

Add "--disable-maintainer-mode" to G2CONF to allow the usage of deprecated symbols:
$ G2CONF="--disable-maintainer-mode" emerge gnome-extra/gconf-editor
Comment 7 David King 2010-05-10 21:35:33 UTC
Created attachment 231011 [details, diff]
Patch to fix use of the deprecated accessor macros

This patch allows gconf-editor to build and link regardless of the use of maintainer mode.
Comment 8 David King 2010-05-10 21:36:23 UTC
Created attachment 231013 [details, diff]
ebuild patch to apply deprecation fix
Comment 9 Thorsten Vollmer 2010-05-14 04:01:47 UTC
(In reply to comment #7)
> This patch allows gconf-editor to build and link regardless of the use
> of maintainer mode.

But you still need to remove the definitions -D*_DISABLE_DEPRECATED from CFLAGS or the problem can reappear when other symbols are deprecated in future.

See also http://mail.gnome.org/archives/desktop-devel-list/2010-January/msg00019.html
Comment 10 David King 2010-05-14 08:10:29 UTC
(In reply to comment #9)
> (In reply to comment #7)
> > This patch allows gconf-editor to build and link regardless of the use
> > of maintainer mode.
> But you still need to remove the definitions -D*_DISABLE_DEPRECATED from CFLAGS
> or the problem can reappear when other symbols are deprecated in future.

Of course. The problem is actually the use of maintainer mode to control the use of the deprecation flags, as the automake concept of maintainer mode to control rebuild rules is quite different from that of controlling preprocessor flags. As I said, the patch works regardless of whether maintainer mode is enabled. It could easily be updated for GTK+ 2.22 when it is released, as it will mainly be a release that deprecates accessor macros and adds functions to replace them (and the last GTK+ 2 release):

http://mail.gnome.org/archives/gtk-devel-list/2010-May/msg00023.html

> See also
> http://mail.gnome.org/archives/desktop-devel-list/2010-January/msg00019.html

That email deals with tarball releases that hardcode deprecation flags regardless of the use of maintainer mode, which is not the case here.
Comment 11 Thorsten Vollmer 2010-05-17 23:45:42 UTC
Agreed. Controlling CFLAGS with maintainer mode is a misuse of maintainer mode.
Comment 12 Pacho Ramos gentoo-dev 2010-06-13 21:43:24 UTC
2.30 is in the tree and it works against newest gtk+