Bug 119415 - compilation of >=dbus-0.50 fails with USE="+gtk" and gtk-2.4
Bug#: 119415 Product:  Gentoo Linux Version: 2005.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: gentopia@gentoo.org Reported By: rstanchak@yahoo.com
Component: Ebuilds
URL: 
Summary: compilation of >=dbus-0.50 fails with USE="+gtk" and gtk-2.4
Keywords:  
Status Whiteboard: 
Opened: 2006-01-18 05:43 0000
Description:   Opened: 2006-01-18 05:43 0000
Here is the relevant link error -- my guess is that the gtk dependency needs to
be bumped to 2.6 or 2.8:

creating statemachine-server
i686-pc-linux-gnu-gcc -march=pentium3 -O3 -pipe -Wall -Wchar-subscripts
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith
-Wcast-align -Wfloat-equal -Wsign-compare -o .libs/statemachine-client
statemachine-client.o sm-marshal.o -Wl,--export-dynamic -pthread 
../../../glib/.libs/libdbus-glib-1.so
/var/tmp/portage/dbus-0.60-r3/work/dbus-0.60/dbus/.libs/libdbus-1.so
/usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so
/usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangoxft-1.0.so
/usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so -lm
/usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl
/usr/lib/libgthread-2.0.so -lpthread /usr/lib/libglib-2.0.so -lnsl
statemachine-client.o(.text+0x39f): In function `main':
: undefined reference to `gtk_message_dialog_format_secondary_text'
statemachine-client.o(.text+0x7fc): In function `create_machine_completed_cb':
: undefined reference to `gtk_message_dialog_format_secondary_text'
statemachine-client.o(.text+0xcfb): In function `get_machines_cb':
: undefined reference to `gtk_cell_renderer_progress_new'
statemachine-client.o(.text+0x1038): In function `get_machines_cb':
: undefined reference to `gtk_message_dialog_format_secondary_text'
statemachine-client.o(.text+0x121d): In function `get_machine_info_cb':
: undefined reference to `gtk_message_dialog_format_secondary_text'
statemachine-client.o(.text+0x1a98): In function `get_acquiring_progress_cb':
: undefined reference to `gtk_message_dialog_format_secondary_text'
collect2: ld returned 1 exit status
distcc[30703] ERROR: compile (null) on localhost failed
make[7]: *** [statemachine-client] Error 1
make[7]: Leaving directory
`/data/var/tmp/portage/dbus-0.60-r3/work/dbus-0.60/glib/examples/statemachine'
make[6]: *** [all] Error 2
make[6]: Leaving directory
`/data/var/tmp/portage/dbus-0.60-r3/work/dbus-0.60/glib/examples/statemachine'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
`/data/var/tmp/portage/dbus-0.60-r3/work/dbus-0.60/glib/examples'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/data/var/tmp/portage/dbus-0.60-r3/work/dbus-0.60/glib/examples'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/data/var/tmp/portage/dbus-0.60-r3/work/dbus-0.60/glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/data/var/tmp/portage/dbus-0.60-r3/work/dbus-0.60/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/var/tmp/portage/dbus-0.60-r3/work/dbus-0.60'
make: *** [all] Error 2

!!! ERROR: sys-apps/dbus-0.60-r3 failed.
!!! Function src_compile, Line 106, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.

Emerge Info:

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.4,
glibc-2.3.4.20040808-r1, 2.6.14-gentoo-r3 i686)
=================================================================
System uname: 2.6.14-gentoo-r3 i686 Pentium III (Coppermine)
Gentoo Base System version 1.7.0
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[enabled]
dev-lang/python:     2.3.3-r1, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.14.90.0.6-r2
sys-devel/libtool:   1.4.3-r1, 1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/
ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://gentoo.mirrors.pair.com/
ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cairo
crypt cups curl dts emboss encode exif expat f77 fam ffmpeg fftw flac
foomaticdb fortran gd gdbm gif glut gmp gnutls gphoto2 gpm gstreamer gtk gtk2
hal idn imagemagick imlib ipv6 java jpeg jpeg2k junit kde lcms ldap libg++
libwww mad matroska mhash mikmod mmx mng mp3 mpeg mysql ncurses nls nsplugin
ogg oggvorbis opengl pam pcmcia pcre pdflib perl png python qt quicktime
readline real samba sdl slang spell sqlite ssl svga tcltk tcpd tetex tiff
truetype truetype-fonts type1-fonts udev usb v4l v4l2 vorbis wavelan
win32codecs wxwindows xine xml2 xmms xv xvid zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

* x11-libs/gtk+ 
     Installed:           2.4.9-r1 1.2.10-r10

------- Comment #1 From Jakub Moc (RETIRED) 2006-01-18 06:09:27 0000 -------
Ditto for 0.50, nevertheless I don't quite see what's your issue here,
gtk+-2.4* doesn't exist in portage at all any more. Please, use emerge -uD
world when upgrading your packages. 

------- Comment #2 From Roman Stanchak 2006-01-18 20:51:00 0000 -------
Sorry to not be more clear.  I was only trying to emerge dbus, not gtk-2.4,
which I already had emerged from over a year ago (yikes!).

The dbus ebuild lists >=x11-libs/gtk+-2.4 as a dependency, but this is
incorrect, as the 'gtk_message_dialog_format_secondary_markup' function which
chokes up my emerge didn't exist until gtk+-2.6.
(http://developer.gnome.org/doc/API/2.0/gtk/GtkMessageDialog.html#id2902377)

However, it looks like dbus is at fault, as their own configure script allows
gtk-2.4, which the author of the ebuild probably referenced.  Regardless of the
source, it should be updated to 2.6 in the dbus ebuild.

Upgrading to gtk+-2.8 did indeed fix the linker error.

------- Comment #3 From Saleem Abdulrasool (RETIRED) 2006-01-19 12:41:25 0000 -------
Fixed in CVS.  Thanks for reporting this oversight.  Cardoe has also passed the
information upstream to fix the autotools setup.