The following check fails: configure:27908: checking for libssl configure:27945: x86_64-pc-linux-gnu-gcc -o conftest -O2 -ggdb -mfpmath=sse -msse3 -pipe -Wl,-O1 -static conftest.c -lssl -lcrypto -ldl -lrt >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load': (.text+0x5e4): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcrypto.a(c_zlib.o): In function `bio_zlib_free': (.text+0x6f): undefined reference to `inflateEnd' /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcrypto.a(c_zlib.o): In function `bio_zlib_free': (.text+0x8d): undefined reference to `deflateEnd' /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcrypto.a(c_zlib.o): In function `zlib_stateful_free_ex_data': (.text+0xd8): undefined reference to `inflateEnd' [... more zlib related errors] the check seems to miss -lz. Reproducible: Always Steps to Reproduce: emerge -auvDNt world Actual Results: Failed compile of wget-1.12-r1 Expected Results: Successful compile of wget-1.12-r1 ~ # emerge --info Portage 2.1.7.17 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.32-gentoo-r2 x86_64) ================================================================= System uname: Linux-2.6.32-gentoo-r2-x86_64-Intel-R-_Atom-TM-_CPU_230_@_1.60GHz-with-gentoo-2.0.1 Timestamp of tree: Fri, 12 Feb 2010 16:15:02 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.4-r1, 3.1.1-r1 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.8.0-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.0-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.5, 1.9.6-r2, 1.10.3, 1.11.1 sys-devel/binutils: 2.19.1-r1, 2.20 sys-devel/gcc: 4.3.4, 4.4.3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -ggdb -mfpmath=sse -msse3 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /lib/modules /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -ggdb -mfpmath=sse -msse3 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going" FEATURES="assume-digests ccache distlocks fixpackages multislot news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en en_GB en_US de de_DE" MAKEOPTS="-j2" PKGDIR="/usr/rportage/packages/revo" 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="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/enlightenment" SYNC="rsync://gentoo.digadd.de/gentoo-portage" USE="64bit 7zip X a52 aac acl acpi alsa amd64 amr amrnb berkdb bluetooth bzip2 cjk cli consolekit crypt cups cxx dbus dga dri exif faac faad ffmpeg flac gdbm gif gpm hal iconv id3tag idn ipv6 ithreads jpeg lzo mad mmx mmxext modules mp3 multilib ncurses nls nptl nptlonly nsplugin ogg oldnet opencore-amr openmp pam pcre pdf png pppd rar readline reflection session spl sse sse2 ssl ssse3 svg sysfs theora threads threadsafe tiff truetype unicode usb vdpau vorbis x264 xattr xcb xinerama xorg xvid zip 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="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" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US de de_DE" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Not really. The problem is '-static' part of the command.
Rafał Mużyło was right; I had the "static" useflag in my package.use for wget, so I updated the summary. Removing the flag solved the problem; however it's not what I really wanted...
*** This bug has been marked as a duplicate of bug 302702 ***