When I try to emerge qemu with the softmmu USE flag set, compilation aborts with the following error: gcc -o qemu vl.o osdep.o block.o monitor.o pci.o ide.o ne2000.o pckbd.o vga.o sb16.o dma.o oss.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o cirrus_vga.o gdbstub.o sdl.o slirp/cksum.o slirp/if.o slirp/ip_icmp.o slirp/ip_input.o slirp/ip_output.o slirp/slirp.o slirp/mbuf.o slirp/misc.o slirp/sbuf.o slirp/socket.o slirp/tcp_input.o slirp/tcp_output.o slirp/tcp_subr.o slirp/tcp_timer.o slirp/udp.o slirp/bootp.o slirp/debug.o libqemu.a -lm -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lutil vl.o(.text+0xe41): In function `init_timers': /var/tmp/portage/qemu-0.6.0/work/qemu-0.6.0/vl.c:906: undefined reference to `__libc_sigaction' vl.o(.text+0xf19):/var/tmp/portage/qemu-0.6.0/work/qemu-0.6.0/vl.c:930: undefined reference to `__libc_sigaction' vl.o(.text+0x3515): In function `main': /var/tmp/portage/qemu-0.6.0/work/qemu-0.6.0/vl.c:2793: undefined reference to `__libc_sigaction' collect2: ld returned 1 exit status make[1]: *** [qemu] Error 1 make[1]: Leaving directory `/var/tmp/portage/qemu-0.6.0/work/qemu-0.6.0/i386-softmmu' make: *** [all] Error 1 !!! ERROR: app-emulation/qemu-0.6.0 failed. !!! Function src_compile, Line 44, Exitcode 2 !!! make failed Reproducible: Always Steps to Reproduce: 1. USE='softmmu' emerge qemu Actual Results: Compilation fails as shown above Expected Results: make.conf: CFLAGS="-O3 -march=pentium2 -fomit-frame-pointer -pipe -fno-strict-aliasing" CHOST="i686-pc-linux-gnu" CXXFLAGS="${CFLAGS}" MAKEOPTS="-j3" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ http://cudlug.cudenver.edu/gentoo/" USE="threads ipv6 bindist mmx unicode alsa samba acpi gstreamer mysql innodb esd flac speex theora moznocompose moznomail moznoirc mozsvg xprint cdr xml gnutlspda acl cscope nptl ldap arts dvd java gimpprint gtkhtml ppds mng svg tiff faacfaad cddb jabber softmmu" ACCEPT_KEYWORDS="~x86" /lib/libc.so.6: GNU C Library 20040619 release version 2.3.4, by Roland McGrath et al. Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6). Compiled on a Linux 2.6.6 system on 2004-07-13. Available extensions: GNU libio by Per Bothner crypt add-on version 2.1 by Michael Glad and others NPTL 0.61 by Ulrich Drepper BIND-8.2.3-T5B NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk Thread-local storage support included. For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>. (notice NPTL, dunno if that matters, but the error mentions libc...) gcc -v: Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/specs Configured with: /var/tmp/portage/gcc-3.3.4-r1/work/gcc-3.3.4/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++ --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions--enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext --disable-multilib --enable-__cxa_atexit --enable-clocale=generic Thread model: posix gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
It should work, reopen if isn't for you