Trying to emerge -Duv world, the process stops with shared-mime-info failing to compile with undefined references to compression and math functions: [...] Generating and caching the translation database Merging translations into freedesktop.org.xml. i686-pc-linux-gnu-gcc -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -march=pentium4 -funroll-loops -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -o update-mime-database update_mime_database-update-mime-database.o -lxml2 -lglib-2.0 /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `xmlGzfileOpenW': (.text+0xc6b): undefined reference to `gzopen' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `xmlGzfileOpenW': (.text+0xc95): undefined reference to `gzdopen' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `__xmlParserInputBufferCreateFilename': (.text+0xd76): undefined reference to `gzread' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `__xmlParserInputBufferCreateFilename': (.text+0xda6): undefined reference to `gzrewind' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `xmlFreeZMemBuff': (.text+0xee0): undefined reference to `deflateEnd' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `xmlGzfileOpen_real': (.text+0x12b0): undefined reference to `gzopen' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `xmlGzfileOpen_real': (.text+0x12d9): undefined reference to `gzdopen' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `xmlIOHTTPCloseWrite': (.text+0x28bd): undefined reference to `deflate' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `xmlIOHTTPWrite': (.text+0x2b57): undefined reference to `deflate' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `xmlIOHTTPWrite': (.text+0x2c00): undefined reference to `crc32' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `xmlIOHTTPOpenW': (.text+0x2d3c): undefined reference to `deflateInit2_' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `xmlIOHTTPOpenW': (.text+0x2df9): undefined reference to `crc32' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `xmlGzfileClose': (.text+0x323d): undefined reference to `gzclose' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `xmlGzfileWrite': (.text+0x327c): undefined reference to `gzwrite' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlIO.o): In function `xmlGzfileRead': (.text+0x32cc): undefined reference to `gzread' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xpath.o): In function `xmlXPathStringEvalNumber': (.text+0x313e): undefined reference to `pow' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xpath.o): In function `xmlXPathRoundFunction': (.text+0x61fb): undefined reference to `fmod' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xpath.o): In function `xmlXPathCeilingFunction': (.text+0x639f): undefined reference to `fmod' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xpath.o): In function `xmlXPathFloorFunction': (.text+0x6489): undefined reference to `fmod' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xpath.o): In function `xmlXPathModValues': (.text+0x70f5): undefined reference to `fmod' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xpath.o): In function `xmlXPathCastNumberToString': (.text+0x7c7c): undefined reference to `log10' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xpath.o): In function `xmlXPathCompPathExpr': (.text+0xb68b): undefined reference to `pow' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(nanohttp.o): In function `xmlNanoHTTPFreeCtxt': (.text+0xefb): undefined reference to `inflateEnd' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(nanohttp.o): In function `xmlNanoHTTPRead': (.text+0x1100): undefined reference to `inflate' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(nanohttp.o): In function `xmlNanoHTTPMethodRedir': (.text+0x1f82): undefined reference to `inflateInit2_' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlschemastypes.o): In function `xmlSchemaDateNormalize': (.text+0x13f2): undefined reference to `floor' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlschemastypes.o): In function `xmlSchemaDateNormalize': (.text+0x14e2): undefined reference to `floor' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlschemastypes.o): In function `xmlSchemaDateNormalize': (.text+0x1580): undefined reference to `floor' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlschemastypes.o): In function `xmlSchemaDateNormalize': (.text+0x16c5): undefined reference to `floor' /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libxml2.a(xmlschemastypes.o): In function `xmlSchemaDateNormalize': (.text+0x18ca): undefined reference to `floor' collect2: ld returned 1 exit status make[1]: *** [update-mime-database] Error 1 make[1]: *** Waiting for unfinished jobs.... CREATED freedesktop.org.xml make[1]: Leaving directory `/var/tmp/portage/x11-misc/shared-mime-info-0.30/work/shared-mime-info-0.30' make: *** [check-recursive] Error 1 * * ERROR: x11-misc/shared-mime-info-0.30 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 108: Called die * The specific snippet of code: * emake || die "emake failed." * The die message: * emake failed. * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/x11-misc/shared-mime-info-0.30/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-misc/shared-mime-info-0.30/temp/environment'. I could work around this by calling: LDFLAGS="-lz -lm" emerge -Duv world It seems that the shared-mime-info ebuild does not link those libraries automatically. Neither does it contain a dependency to zlib through RDEPEND et al. Reproducible: Always # emerge --info: Portage 2.1.5 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.7-r2, 2.6.25 i686) ================================================================= System uname: 2.6.25 i686 Intel(R) Pentium(R) M processor 1.80GHz Timestamp of tree: Sun, 18 May 2008 10:45:02 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.5 dev-lang/python: 2.3.6-r2, 2.4.4-r6, 2.5.2-r3 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.4-r1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.25-r3 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium4 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache distlocks parallel-fetch sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo" LDFLAGS="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" 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.europe.gentoo.org/gentoo-portage" USE="X aac acl acpi alsa arts audiofile avi bash-completion berkdb bluetooth bzip2 cdr cli cracklib crypt cups dga directfb divx4linux dlloader dri dvd dvdr dvdread encode evo fbcon fortran ftp gdbm gnutls gphoto2 gpm gtk gtk2 iconv imagemagick imap imlib imlib2 ipv6 isdnlog kde ldap midi mmx mpeg mudflap ncurses nls nptl nptlonly nsplugin oggvorbis openmp oss pam pcmcia pcre perl png pppd python qt3support qt4 quicktime readline reflection session smartcard spl sse sse2 ssl tcpd unicode usb win32codecs x86 xorg xv xvid 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 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 synaptics% vmmouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon fglrx% ati* vesa fbdev vmware" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
libxml2 needs zlib. Does a rebuild of libxml2 help?
(In reply to comment #1) > libxml2 needs zlib. Does a rebuild of libxml2 help? > Yes, after re-emerging libxml2 shared-mime-info compiles neatly. Thanks a lot. It was just that libxml2 already had been emerged (can't recall when, but surely without errors), so I expected it to be correctly linked ...
Okay, dependencies are fine, booking this as local hickup.