The only way I were successful to emerge avahi, was to put the line "net-dns/avahi-0.6.24 -python" in /etc/portage/package.use python is a default use flag for this package (which suggest me it should be of some importance in the programmer's intention). So, in order to compile it, I had to flag off it explicitly. This happened with more than one version of python installed, currently python-2.5.4-r2. The gtk use flag is declared in my make.conf and there it was when python was emerged too.
Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r8 x86_64) ================================================================= System uname: Linux-2.6.27-gentoo-r8-x86_64-AMD_Athlon_Dual-Core_QL-60-with-glibc2.2.5 Timestamp of tree: Mon, 02 Mar 2009 15:30:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.6-r1 dev-lang/python: 2.5.4-r2 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.4.8 sys-apps/baselayout: 1.12.12 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -msse3" 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" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe -msse3" DISTDIR="/sync/gentoo/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms unmerge-orphans userfetch" GENTOO_MIRRORS="http://156.56.247.195 http://distfiles.gentoo.org http://152.46.7.80/pub/Linux/distributions/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j1" PKGDIR="/sync/gentoo/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes --timeout=23 --bwlimit=20" 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="/hugetmp/portage" PORTDIR="/sync/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/vmware /sync/gentoo/myebs" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi alsa amd64 apache2 apm aspell audiofile avi bash-completion bcmath berkdb bindist bitmap-fonts blas bzip2 bzip2cairo caps cdparanoia cdr cli clibpdf cracklib crypt cscope ctype cups cxx dbus dbx diet dillo dio directfb divx4linux doc dv dvb dvd dvdr dvdread emul-linux-86 encode examples exif expat f90 f95 fam fbcon ffmpeg fftw flac flash foomaticdb fortran fortran90 fortran95 g95 gcj gd gdbm geforce ggi gif ginac glut glx gmp gnutls gphoto2 gpm gstreamer gtk gtkhtml guile hal hardened hardenedphp hdf5 hdtemp headphones html2ps iconv ieee1394 imagemagick imlib inifile innodb ipv6 isdnlog jabber jack jikes jpeg junit ladcca lapack lcms ldap libcaca libwww lm_sensors m17n-lib mad mhash midi mikmod mime ming mjpeg mmx mng motif mp3 mpeg mplayer msession mudflap multilib mysql mysqli ncurses netcdf nforce nls nptl nptlonly nsplugin nvidia nvidia-glx objc ofx ogg openal opengl openmp osc pcre pdflib perl php plotutils png portaudio ppds pppd prelude profile python qdbm qt qt3 qt4 quicktime radius readline reflection ruby samba scanner sdl session sharedext shorten simplexml slp sndfile speex spell spl sse sse2 ssl svg sysfs szip tcltk tcp tcpd test tetex theora tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb vcd videos vim-syntax vorbis wddx wifi wireless wmf xfce xfce4 xine xml xmlrpc xorg xosd xpm xscreensaver xsl xv xvid 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="access auth auth_dbm auth_anon auth_digest authz_host alias file-cache echo charset-lite cache disk-cache mem-cache ext-filter case_filter case-filter-in deflate filter mime-magic cern-meta expires headers usertrack unique_id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev vesa nvidia nv vmware" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
tail -24 net-dns:avahi-0.6.24:20090303-100857.log: checking for python version... 2.5 checking for python platform... linux2 checking for python script directory... ${prefix}/lib/python2.5/site-packages checking for python extension module directory... ${exec_prefix}/lib/python2.5/site-packages checking for python module gtk... no configure: error: Could not find Python module gtk !!! Please attach the following file when seeking support: !!! /hugetmp/portage/portage/net-dns/avahi-0.6.24/work/avahi-0.6.24/config.log * * ERROR: net-dns/avahi-0.6.24 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2500: Called econf '--localstatedir=/var' '--with-distro=gentoo' '--disable-python-dbus' '--disable-pygtk' '--disable-xmltoman' '--disable-monodoc' '--enable-glib' '--enable-tests' '--disable-autoipd' '--disable-compat-libdns_sd' '--disable-compat-howl' '--enable-doxygen-doc' '--disable-mono' '--enable-dbus' '--enable-python' '--enable-gtk' '--enable-qt3' '--enable-qt4' '--enable-gdbm' '--enable-python-dbus' '--enable-pygtk' * ebuild.sh, line 543: Called die * The specific snippet of code: * die "econf failed" * The die message: * econf failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/sync/gentoo/log/net-dns:avahi-0.6.24:20090303-100857.log'. * The ebuild environment file is located at '/hugetmp/portage/portage/net-dns/avahi-0.6.24/temp/environment'. *
!!! Please attach the following file when seeking support: !!! /hugetmp/portage/portage/net-dns/avahi-0.6.24/work/avahi-0.6.24/config.log Please do this.
Created attachment 183757 [details] /hugetmp/portage/portage/net-dns/avahi-0.6.24/work/avahi-0.6.24/config.log /hugetmp/portage/portage/net-dns/avahi-0.6.24/work/avahi-0.6.24/config.log
I'd suggest to mark this bug as a duplicate of 232338, because I had the same (identical) problem with avahi-0.6.22-r1 and the workaround suggested there worked for me. *** This bug has been marked as a duplicate of bug 232338 ***
from your config.log: configure:28596: checking for python configure:28614: found /usr/local/bin/python configure:28626: result: /usr/local/bin/python This is not the usual location where portage installs python. Like I said in bug #261034 please install the python package provided in the portage tree and remove all python stuff from /usr/local or else no Gentoo-dev can or would be willing to help.
(In reply to comment #6) I followed your tip for bug #261034 and it worked. I would also have written it if the bug hadn't been removed so quickly (sorry, I get lost sometimes in the bugzilla links web). About that strange location I really cannot explain why those files where there. Anyway, I kept having the issue about module python gtk missing, which this bug is about, AFTER that correction too, i.e. after erasing all the python stuff in /usr/local (in bin, include, and python2.5).So it's a distinct case, please don't let be biased by this coincidence. I apologise for having been misleading. As I wrote I resolved remerging some packages and only that made the trick. As I explainde I had the same problem with avahi-0.6.22 (and yes, I tried it again after the /usr/local/python etc. remotion, too). Same errors, same solution ( emerge pygobject pycairo dbus-python pygtk avahi).