I cannot compile games-strategy/glest-1.0.10_p7; the error is as follows: ...failed C++ ./out/i686-pc-linux-gnu/opt/sources/object_type.o ... C++ ./out/i686-pc-linux-gnu/opt/sources/renderer.o cc1plus: /usr/games/include: Permission denied cc1plus: /usr/games/include: Permission denied i686-pc-linux-gnu-g++ -c -o ./out/i686-pc-linux-gnu/opt/sources/renderer.o -DPACKAGE_NAME="glest" -DPACKAGE_TARNAME="glest" -DPACKAGE_VERSION="1.0.10" -DPACKAGE_STRING="glest 1.0.10" -DPACKAGE_BUGREPORT="matze@braunis.de" -DUSE_POSIX_SOCKETS= -DX11_AVAILABLE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GLOB_H=1 -DUSE_SDL= -DHAVE_PTHREAD=1 -I. -I/usr/include/SDL -D_REENTRANT -pthread -pthread -I-c/include -I/usr/games/include -I/usr/games/include -Isources/../lib/include/graphics -Isources/../lib/include/graphics/gl -Isources/../lib/include/platform -Isources/../lib/include/sound -Isources/../lib/include/util -Isources/../lib/include/xml -Isources/../lib/include/glew -Wall -W -Wno-unused -O3 -g3 -O3 -g3 -march=athlon-xp -O2 -mfpmath=sse -fweb -funit-at-a-time -pipe sources/renderer.cpp ...failed C++ ./out/i686-pc-linux-gnu/opt/sources/renderer.o ... C++ ./out/i686-pc-linux-gnu/opt/sources/element_type.o cc1plus: /usr/games/include: Permission denied cc1plus: /usr/games/include: Permission denied i686-pc-linux-gnu-g++ -c -o ./out/i686-pc-linux-gnu/opt/sources/element_type.o -DPACKAGE_NAME="glest" -DPACKAGE_TARNAME="glest" -DPACKAGE_VERSION="1.0.10" -DPACKAGE_STRING="glest 1.0.10" -DPACKAGE_BUGREPORT="matze@braunis.de" -DUSE_POSIX_SOCKETS= -DX11_AVAILABLE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GLOB_H=1 -DUSE_SDL= -DHAVE_PTHREAD=1 -I. -I/usr/include/SDL -D_REENTRANT -pthread -pthread -I-c/include -I/usr/games/include -I/usr/games/include -Isources/../lib/include/graphics -Isources/../lib/include/graphics/gl -Isources/../lib/include/platform -Isources/../lib/include/sound -Isources/../lib/include/util -Isources/../lib/include/xml -Isources/../lib/include/glew -Wall -W -Wno-unused -O3 -g3 -O3 -g3 -march=athlon-xp -O2 -mfpmath=sse -fweb -funit-at-a-time -pipe sources/element_type.cpp ...failed C++ ./out/i686-pc-linux-gnu/opt/sources/element_type.o ... ...skipped glest for lack of <sources!>sound_container.o... ...failed updating 98 target(s)... ...skipped 2 target(s)... ...updated 9 target(s)... !!! ERROR: games-strategy/glest-1.0.10_p7 failed. Reproducible: Always Steps to Reproduce: 1. emerge glest Actual Results: I got the error: ...failed C++ ./out/i686-pc-linux-gnu/opt/sources/object_type.o ... C++ ./out/i686-pc-linux-gnu/opt/sources/renderer.o cc1plus: /usr/games/include: Permission denied cc1plus: /usr/games/include: Permission denied i686-pc-linux-gnu-g++ -c -o ./out/i686-pc-linux-gnu/opt/sources/renderer.o -DPACKAGE_NAME="glest" -DPACKAGE_TARNAME="glest" -DPACKAGE_VERSION="1.0.10" -DPACKAGE_STRING="glest 1.0.10" -DPACKAGE_BUGREPORT="matze@braunis.de" -DUSE_POSIX_SOCKETS= -DX11_AVAILABLE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GLOB_H=1 -DUSE_SDL= -DHAVE_PTHREAD=1 -I. -I/usr/include/SDL -D_REENTRANT -pthread -pthread -I-c/include -I/usr/games/include -I/usr/games/include -Isources/../lib/include/graphics -Isources/../lib/include/graphics/gl -Isources/../lib/include/platform -Isources/../lib/include/sound -Isources/../lib/include/util -Isources/../lib/include/xml -Isources/../lib/include/glew -Wall -W -Wno-unused -O3 -g3 -O3 -g3 -march=athlon-xp -O2 -mfpmath=sse -fweb -funit-at-a-time -pipe sources/renderer.cpp ...failed C++ ./out/i686-pc-linux-gnu/opt/sources/renderer.o ... C++ ./out/i686-pc-linux-gnu/opt/sources/element_type.o cc1plus: /usr/games/include: Permission denied cc1plus: /usr/games/include: Permission denied i686-pc-linux-gnu-g++ -c -o ./out/i686-pc-linux-gnu/opt/sources/element_type.o -DPACKAGE_NAME="glest" -DPACKAGE_TARNAME="glest" -DPACKAGE_VERSION="1.0.10" -DPACKAGE_STRING="glest 1.0.10" -DPACKAGE_BUGREPORT="matze@braunis.de" -DUSE_POSIX_SOCKETS= -DX11_AVAILABLE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GLOB_H=1 -DUSE_SDL= -DHAVE_PTHREAD=1 -I. -I/usr/include/SDL -D_REENTRANT -pthread -pthread -I-c/include -I/usr/games/include -I/usr/games/include -Isources/../lib/include/graphics -Isources/../lib/include/graphics/gl -Isources/../lib/include/platform -Isources/../lib/include/sound -Isources/../lib/include/util -Isources/../lib/include/xml -Isources/../lib/include/glew -Wall -W -Wno-unused -O3 -g3 -O3 -g3 -march=athlon-xp -O2 -mfpmath=sse -fweb -funit-at-a-time -pipe sources/element_type.cpp ...failed C++ ./out/i686-pc-linux-gnu/opt/sources/element_type.o ... ...skipped glest for lack of <sources!>sound_container.o... ...failed updating 98 target(s)... ...skipped 2 target(s)... ...updated 9 target(s)... !!! ERROR: games-strategy/glest-1.0.10_p7 failed. Expected Results: Compiled and installed glest emerge info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r5 i686) ================================================================= System uname: 2.6.11-gentoo-r5 i686 AMD Athlon(tm) XP 1700+ Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 30 2005, 02:39:07)] ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -mfpmath=sse -fweb -funit-at-a-time -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -mfpmath=sse -fweb -funit-at-a-time -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/" LANG="en_GB.utf8" LDFLAGS="-Wl,-O2" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X a52 aac aalib acl acpi alsa apache2 apm arts artswrappersuid asm audiofile authdaemond avi bash-completion berkdb bluetooth bzip2 bzlib cacheemu cairo ccache cdda cddb cdio cdparanoia cdr cdrom codecs crypt css cups curl dbi dbx delays dga dnd doc dpms dts dvb dvd dvdr dvdread editor edl emboss emoticon encode esd evms2 exif ext-png ext-zlib faad fam fame fbcon fdftk festival ffmpeg flac foomaticdb fortran freetts freetype ftp ftruncate gdbm gif gimp glitz glut gnokii gphoto2 gpm gstreamer gtk gtk2 hal haskell howl imagemagick imap imlib ipv6 ipv6arpa irda irmc jabber java jit joystick jpeg jpeg2k junit kcal kde kdeenablefinal kdepim ladcca ladspa lcms ldap libclamav libdsk libg++ libwww live lm_sensors logitech-mouse lufsusermount lzo lzw mad maildir maps mbox md5sum mikmod mime mixer mjpeg mmap mmx mmx2 monkey motif moznocompose moznoirc moznomail mozplaintext mozsvg mp3 mpeg mpeg4 mplayer msn multicall music mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping native ncurses net network nls nntp no-old-linux nodrm nowin nptl ntlm nviz offensive ogg oggvorbis openal opengl pam pcntl pcre pda pdf pdflib perl pic pie png pnp postgres python qemu-fast qt quicktime rdesktop readline real recode rtc ruby sasl scanner sdk sdl session slang smime sndfile softmmu sounds soundtouch sox spamassassin speex spell sql sse ssl stencil-buffer stream subversion suid svg svgz tcltk tcpd tetex theora tiff timidity transcode truetype truetype-fonts type1-fonts usb utf8 v4l v4l2 vcd vim-with-x vmdbpostgres wmf xanim xine xinerama xml2 xrandr xscreensaver xv xvid yahoo yv12 zeroconf zlib zvbi video_cards_radeon linguas_en linguas_en_GB" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, PORTDIR_OVERLAY
what does `grep -Rl /usr/games/include /var/db/pkg` show ? you shouldnt have a /usr/games/include ...
I don't have a /usr/games/include; the grep returns nothing: simon@lister /usr/games $ grep -Rl /usr/games/include /var/db/pkg simon@lister /usr/games $ ls -a . .. bin lib simon@lister /usr/games $
if you `export EXTRA_ECONF=--includedir=/usr/include` and then `emerge glest`, does it work ?
Doesn't help unfortunately; nor does a symlink from /usr/games/include to /usr/include.
try it without "userpriv usersandbox" in FEATURES.
Removing "userpriv usersandbox" from FEATURES allowed glest to build.
fixed in cvs ... the ogg/vorbis prefixes were causing this