Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 405645

Summary: gnome-base/libbonoboui-2.24.5 fails compiling due to missing avahi
Product: Gentoo Linux Reporter: Juan Manuel Santos <vicariousdm>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Juan Manuel Santos 2012-02-24 18:57:35 UTC
Due to an old program which doesn't support Qt4, I am forced to keep Qt3 on my system. Since Qt3 no longer compiles with avahi, and since avahi can't coexist with anything else (e.g. mDNSresponder), I disabled avahi/zeroconf useflags in all my packages. Everything works fine (I didn't use avahi anyway), but trying to build libbonoboui (required by libgnomeui) fails:

libtool: link: i686-pc-linux-gnu-gcc -shared  .libs/bonobo-a11y.o .libs/bonobo-dock.o .libs/bonobo-dock-item.o .libs/bonobo-dock-item-grip.o .libs/bonobo-dock-band.o .libs/bonobo-dock-layout.o .libs/bonobo-ui-init-gtk.o .libs/bonobo-ui-main.o .libs/bonobo-canvas-component.o .libs/bonobo-canvas-item.o .libs/bonobo-control-frame.o .libs/bonobo-control.o .libs/bonobo-file-selector-util.o .libs/bonobo-plug.o .libs/bonobo-property-control.o .libs/bonobo-selector.o .libs/bonobo-selector-widget.o .libs/bonobo-socket.o .libs/bonobo-ui-component.o .libs/bonobo-ui-config-widget.o .libs/bonobo-ui-container.o .libs/bonobo-ui-engine.o .libs/bonobo-ui-engine-config.o .libs/bonobo-ui-node.o .libs/bonobo-ui-preferences.o .libs/bonobo-ui-sync.o .libs/bonobo-ui-sync-menu.o .libs/bonobo-ui-sync-keys.o .libs/bonobo-ui-sync-status.o .libs/bonobo-ui-sync-toolbar.o .libs/bonobo-ui-toolbar-button-item.o .libs/bonobo-ui-toolbar-control-item.o .libs/bonobo-ui-toolbar-item.o .libs/bonobo-ui-toolbar-popup-item.o .libs/bonobo-ui-toolbar-toggle-button-item.o .libs/bonobo-ui-toolbar.o .libs/bonobo-ui-internal-toolbar.o .libs/bonobo-ui-type-builtins.o .libs/bonobo-ui-util.o .libs/bonobo-ui-win32.o .libs/bonobo-ui-xml.o .libs/bonobo-widget.o .libs/bonobo-window.o .libs/bonobo-zoomable.o .libs/bonobo-zoomable-frame.o .libs/bonobo-ui-marshal-main.o   -Wl,--as-needed -lgnomecanvas-2 -lart_lgpl_2 /usr/lib/libgnome-2.so -L/usr/lib /usr/lib/libgnomevfs-2.so /usr/lib/libgnutls.so -lavahi-glib -lavahi-client -lm -ldbus-glib-1 -ltasn1 /usr/lib/libgcrypt.so /usr/lib/libgpg-error.so -lavahi-common -ldbus-1 -lutil -lresolv -ldl -lpthread -lcanberra /usr/lib/libbonobo-2.so /usr/lib/libbonobo-activation.so /usr/lib/libORBitCosNaming-2.so /usr/lib/libORBit-2.so -lxml2 -lgconf-2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 /usr/lib/libfontconfig.so -lfreetype -lz -lexpat -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 /usr/lib/libSM.so -luuid -lICE -lX11 -lpopt  -march=core2 -Wl,-O1 -pthread   -pthread -Wl,-soname -Wl,libbonoboui-2.so.0 -o .libs/libbonoboui-2.so.0.0.0
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lavahi-glib
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lavahi-client
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lavahi-common

emerge --info
Portage 2.2.0_alpha87 (default/linux/x86/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 2.6.36-zen1 i686)
=================================================================
System uname: Linux-2.6.36-zen1-i686-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.0.3
Timestamp of tree: Mon, 20 Feb 2012 00:30:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.7.2-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1::sabayon
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo local bgo sabayon kde ibm-internal ephemeral kde-sunset pythonehad sunrise enlightenment qting-edge sattvik-overlay belak gnome
Installed sets: 
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="i686-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 /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.inode.at/ http://www.las.ic.unicamp.br/pub/gentoo/ ftp://mirrors.tera-byte.com/pub/gentoo http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://files.gentoo.gr http://gentoo.gg3.net/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://gentoo.mirror.pw.edu.pl/ http://ftp.daum.net/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en es ar"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local /usr/portage/local/layman/bgo-overlay /usr/portage/local/layman/sabayon /usr/portage/local/layman/kde /usr/portage/local/layman/ibm-internal /usr/portage/local/layman/ephemeral /usr/portage/local/layman/kde-sunset /usr/portage/local/layman/pythonhead /usr/portage/local/layman/sunrise /usr/portage/local/layman/enlightenment /usr/portage/local/layman/qting-edge /usr/portage/local/layman/sattvik /usr/portage/local/layman/belak /usr/portage/local/layman/gnome"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa ao bash-completion berkdb bluetooth branding bzip2 cairo calendar cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups cxx dbus dri dts dvd dvdr dvdread emboss encode exif fam ffmpeg firefox flac fontconfig fortran ftp gd gdbm gdu gif gimp glitz gnome gnome-keyring gnutls gphoto2 gpm gstreamer gtk gtk3 iconv icq ieee1394 imagemagick imap imlib ipv6 jabber jingle jpeg jpeg2k kde lame laptop lcms libgda libnotify lm_sensors loop-aes mad matroska mikmod mime mmx mng modplug modules mp3 mp4 mpeg mplayer msn mudflap musepack musicbrainz nas ncurses networkmanager nls nptl nptlonly ogg openal opengl openmp oscar pam pango pcre pdf png policykit posix ppds pppd python qt qt3support qt4 quicktime raw rdesktop readline rss samba sdl semantic-desktop session smp spell sqlite sqlite3 sse sse2 ssl startup-notification subversion svg svga symlink sysfs syslog sysvipc szip taglib tcpd theora threads tiff truetype udev unicode usb vcd vdpau video vnc vorbis wavpack wifi win32codecs x264 x86 xattr xcb xcomposite xine xinerama xml xorg xosd xpm xprint xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en es ar" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


gnome-vfs is compiled without avahi support, however when its libs are called by libbonoboui, it seems that it keeps thinking it has avahi support.

Reproducible: Always

Steps to Reproduce:
1. Disable avahi/zeroconf USE flags
2. emerge -vatuDN world
3. Try to rebuild/install libbonoboui
Actual Results:  
libbonoboui fails complaining it cannot find avahi

Expected Results:  
Should compile fine if everything avahi-related is disabled

I have looked at libbonoboui ebuild and source directory. There is nothing avahi-related on that package, so it seems the call to avahi may be coming from gnome-vfs. I put libbonoboui on the subject because it's the package that fails (gnome-vfs compiles fine without avahi USE).
Comment 1 Pacho Ramos gentoo-dev 2012-02-24 19:15:02 UTC
Probably old .la files, try:
grep avahi /usr/lib/*.la

and try re-emerging packages providing that files.
Comment 2 Juan Manuel Santos 2012-02-24 23:52:46 UTC
Found /usr/lib/libgnome-2.la. Rebuilt libgnome and libbonoboui compiled fine. Marking this as resolved - fixed. Thanks a lot!