linux/dirent.h is gone.
Created attachment 170096 [details] Build log
Upstream have fixed the issue in svn: here is the relevant part: http://svn.savannah.gnu.org/viewvc/trunk/linux-user/syscall.c?root=qemu&r1=5270&r2=5269&pathrev=5270 and here is the patch: http://svn.savannah.gnu.org/viewvc/trunk/linux-user/syscall.c?r1=5270&r2=5269&pathrev=5270&root=qemu&view=patch
Created attachment 170782 [details, diff] patch fixing dirent issue Adapted from upstream patch for 0.9.0.
Created attachment 170784 [details, diff] ebuild patch Ebuild needed update.
Note that qemu still not build after the patching: ../dyngen -o op.h op.o ../dyngen -c -o opc.h op.o gcc -Wall -O2 -g -fno-strict-aliasing -I. -I.. -I/var/tmp/portage/app-emulation/qemu-user-0.9.0-r1/work/qemu-0.9.0/target-ppc -I/var/tmp/portage/app-emulation/qemu-user-0.9.0-r1/work/qemu-0.9.0 -I/var/tmp/portage/app-emulation/qemu-user-0.9.0-r1/work/qemu-0.9.0/linux-user -I/var/tmp/portage/app-emulation/qemu-user-0.9.0-r1/work/qemu-0.9.0/linux-user/ppc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/var/tmp/portage/app-emulation/qemu-user-0.9.0-r1/work/qemu-0.9.0/fpu -DHAS_AUDIO -I/var/tmp/portage/app-emulation/qemu-user-0.9.0-r1/work/qemu-0.9.0/slirp -c -o translate-op.o /var/tmp/portage/app-emulation/qemu-user-0.9.0-r1/work/qemu-0.9.0/translate-op.c In file included from /var/tmp/portage/app-emulation/qemu-user-0.9.0-r1/work/qemu-0.9.0/translate-op.c:36: ./op.h: In function ‘dyngen_code’: ./op.h:4108: error: expected identifier or ‘(’ before ‘.’ token ./op.h:4110: error: expected expression before ‘.’ token ./op.h:4117: error: expected identifier or ‘(’ before ‘.’ token ./op.h:4118: error: expected identifier or ‘(’ before ‘.’ token ./op.h:4120: error: expected expression before ‘.’ token ./op.h:4121: error: expected expression before ‘.’ token ./op.h:4128: error: expected identifier or ‘(’ before ‘.’ token ./op.h:4130: error: expected expression before ‘.’ token make[1]: *** [translate-op.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-emulation/qemu-user-0.9.0-r1/work/qemu-0.9.0/ppc-linux-user' make: *** [subdir-ppc-linux-user] Error 2
It works for me. Thanks Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.2.3, glibc-2.9_p20081201-r1, 2.6.22-xen x86_64) ================================================================= System uname: Linux-2.6.22-xen-x86_64-Intel-R-_Core-TM-2_CPU_6320_@_1.86GHz-with-glibc2.2.5 Timestamp of tree: Fri, 06 Feb 2009 23:45:02 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.4.4-r4, 2.5.4-r2 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.2 sys-apps/sandbox: 1.3.2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="amd64 x86 ~amd64 ~x86" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -mno-tls-direct-seg-refs" 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 /var/lib/hsqldb" 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 /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -mno-tls-direct-seg-refs" DISTDIR="/mnt/bigamd/bigide/portage/distfiles/" FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp.ussg.iu.edu/linux/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ " LANG="en_US.utf8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j4" 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" PORTDIR_OVERLAY="/usr/portage/local /usr/portage/local/layman/xen /usr/portage/local/layman/marineam-xen /usr/portage/local/layman/sunrise /usr/portage/local/layman/arcon /usr/portage/local/layman/maintainer /usr/portage/local/layman/user" SYNC="rsync://10.50.30.1/gentoo-portage" USE="X a52 aac aalib acl acpi alsa amd64 apm automount avahi bash-completion berkdb bidi big-tables bios branding bzip2 cairo cdda cddb cdio cdr chroot cli cluster contrast cpudetection cracklib crypt cups daap dbus dc1394 device-mapper dga directfb disk-partition djvu dri dts dv dvb dvd dvdnav dvdr dvdread encode esd examples exif extensions extraengine fame fat fbcon ffmpeg flac fluidsynth fping ftp fuse gcc4 gdbm ggi gif gimp gnome gnutls gphoto2 gpm gstreamer gtk hal hardened hddtemp hfs httpd hvm iconv id3tag idea idn ieee1394 imagemagick ioemu iptc ipv6 iscsi isdnlog jack java jbig jfs jpeg jpeg2k kerberos keyring kqemu kvm lcms libcaca libgcrypt libnotify libwww live lm_sensors lua lvm lvm2 lzo mad matroska mdnsresponder-compat midi mjpeg mmx mng modplug modules mp2 mp3 mpeg mplayer mudflap multilib musepack musicbrainz mysql nas ncurses nemesi netboot network nls nptl nptlonly nsplugin ntfs ogg opengl openmp openvz pam parted pcre pdf perl png pppd pygrub python qemu qt3 qt3support qt4 quicktime rar raw readline reflection reiser4 reiserfs rrdcgi rtsp samba screen sdl sdl-image sensord server session shout skins smp speex spl sqlite srt sse sse2 ssl ssse3 stream subtitles svg sysfs syslog taglib tcpd test themes theora threads threadsafe tiff timezone tracker truetype twolame unicode upnp utils v4l v4l2 vcd vcdx vhosts vim-syntax vlm vnc vorbis wmf wxwindows x264 xcb xen xfs xinerama xml xorg xosd xulrunner 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="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev vesa v4l vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
fixed in 0.10 apparently