emerging x11-libs/gtkdatabox-0.9.1.1 gives ... ../gtk/.libs/libgtkdatabox.so: undefined reference to `GTK_WIDGET_REALIZED' ../gtk/.libs/libgtkdatabox.so: undefined reference to `GTK_WIDGET_STATE' ../gtk/.libs/libgtkdatabox.so: undefined reference to `GTK_WIDGET_VISIBLE' ../gtk/.libs/libgtkdatabox.so: undefined reference to `GTK_WIDGET_DRAWABLE' collect2: ld returned 1 exit status ======== Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo x86_64) ================================================================= System uname: Linux-2.6.34-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.1 Timestamp of tree: Mon, 14 Jun 2010 10:20:01 +0000 app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r2, 3.1.2-r3 dev-util/cmake: 2.8.1-r2 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.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 virtual/os-headers: 2.6.34 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo" LANG="ru_RU.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="ru" MAKEOPTS="-j9" 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/local/portage/layman/sunrise /usr/local/portage/layman/kde /usr/local/portage/layman/haskell /usr/local/portage/local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acl acpi alsa amd64 berkdb bzip2 cli cracklib crypt cups cxx dbus dri exif fam fortran gdbm gif gmp gnutls gpm gtk hal hscolour iconv imagemagick inotify java java6 jpeg kde lm_sensors mmx modules mudflap multilib ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python qt3support qt4 readline reflection sdl session smp spl sqlite sse sse2 ssl svg sysfs tcl threads tiff tk truetype unicode vim-syntax webkit xcb xcomposite xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 235251 [details] build.log
Adding this phase to the ebuild solved that : src_prepare() { sed -e 's:GTK_WIDGET_REALIZED:gtk_widget_get_realized:g' \ -e 's:GTK_WIDGET_STATE:gtk_widget_get_state:g' \ -e 's:GTK_WIDGET_VISIBLE:gtk_widget_get_visible:g' \ -e 's:GTK_WIDGET_DRAWABLE:gtk_widget_is_drawable:g' \ -i gtk/gtkdatabox_ruler.c gtk/gtkdatabox.c }
The correct solution is obviously tracking '-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED' back to its source and removing it there (this is triggered by gtk+-2.20).
...which seems to be gtk/Makefile.am.
Created attachment 240391 [details, diff] patch against ebuild directory I modify the ebuild to remove the lines mentioned above and digest it in my local overlay. Now gtkdatabox can compile successfully:)
Please close this bug, solution in comment #5 is working
(In reply to comment #6) > Please close this bug, solution in comment #5 is working > Same thing here, without patch, same bug. With patch, everything ok.
The patch works fine
The patch worked for me, and it is necessary for installation of Klavaro. Both Klavaro and gtkdatabox is currently ~x86, but using this patch, I can build and run Klavaro. I request this patch it to be applied in a new version of gtkdatabox at portage, maybe 0.9.1.1-r1, to make for the possibility of stabilizing both packages.
The supplied patch works fine. I could install after having applied the patch from bug #99318#16, too. Apart from this, all works well here witch amd64
Created attachment 257264 [details, diff] patch to remove the -Dxxx_DISABLE_DEPRECATED
Created attachment 257265 [details, diff] new patch agaist ebuild directory
+ 16 Dec 2010; Pacho Ramos <pacho@gentoo.org> gtkdatabox-0.9.1.1.ebuild: + Remove -D.*DISABLE_DEPRECATED cflags (bug #323923 by Konstantin Likhomanov + and others) and install examples properly (bug #99318). +