I was making a small system from latest stage3 and building a set of net tools, one (probably dsniff) needed libnids, but libnids didn't emerge because there was no glib. Reproducible: Always Steps to Reproduce: 1. start without glib 2. emerge libnids 3. profit! er... Workaround: emerge glib, restart emerge
It's an optional dep. It's done in a way that doesn't look compatible with use_enable.
...though attaching the build log would be nice of you.
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.31-gentoo-r10 i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.31-gentoo-r10-i686-AMD_Processor_model_-with-gentoo-1.12.13 Timestamp of tree: Sun, 27 Jun 2010 19:00:01 +0000 app-shells/bash: 4.0_p37 dev-lang/python: 2.6.5-r2, 3.1.2-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.65 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl berkdb branding bzip2 clamav cli cracklib crypt cups cxx dbus dri emacs fortran gdbm gpm hal iconv ipv6 jpeg lm_sensors lock modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl startup-notification sysfs tcpd thunar unicode x86 xorg 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 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
* CPV: net-libs/libnids-1.24 * REPO: gentoo * USE: elibc_glibc kernel_linux userland_GNU x86 >>> Unpacking source... >>> Unpacking libnids-1.24.tar.gz to /var/tmp/portage/net-libs/libnids-1.24/work >>> Source unpacked in /var/tmp/portage/net-libs/libnids-1.24/work >>> Preparing source in /var/tmp/portage/net-libs/libnids-1.24/work/libnids-1.24 ... * Applying libnids-1.24-ldflags.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-libs/libnids-1.24/work/libnids-1. 24 ... * econf: updating libnids-1.24/config.sub with /usr/share/gnuconfig/config.sub * econf: updating libnids-1.24/config.guess with /usr/share/gnuconfig/config.gu ess ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --m andir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir =/etc --localstatedir=/var/lib --enable-shared checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib checking for a BSD-compatible install... /usr/bin/install -c checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for inline... inline checking whether time.h and sys/time.h may both be included... yes checking whether byte ordering is bigendian... no checking for gettimeofday... yes checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for libpcap... yes checking for i686-pc-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for GLIB... configure: error: Package requirements (glib-2.0 >= 2.2.0) were not met. Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables to avoid the need to call pkg-config. See the pkg-config man page for more details. !!! Please attach the following file when seeking support: !!! /var/tmp/portage/net-libs/libnids-1.24/work/libnids-1.24/config.log * ERROR: net-libs/libnids-1.24 failed: * econf failed * * Call stack: * ebuild.sh, line 54: Called src_configure * environment, line 2248: Called econf '--enable-shared' * ebuild.sh, line 544: Called die * The specific snippet of code: * die "econf failed" * * If you need support, post the output of 'emerge --info =net-libs/li bnids-1.24', * the complete build log and the output of 'emerge -pqv =net-libs/lib nids-1.24'. * The complete build log is located at '/var/tmp/portage/net-libs/lib nids-1.24/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-lib s/libnids-1.24/temp/environment'. * S: '/var/tmp/portage/net-libs/libnids-1.24/work/libnids-1.24'
Thanks for reporting! It is fixed now. (In reply to comment #1) > It's an optional dep. > > It's done in a way that doesn't look compatible with use_enable. Does not look optional to me if ./configure fails without glib present.