Problem stands when trying to emerge wine-20040716. Here is the tail of the output: make[2]: Leaving directory `/var/tmp/portage/wine-20040716/work/wine-20040716/dlls/glut32' rm -f glut32.dll.so && ln -s glut32/glut32.dll.so glut32.dll.so make[2]: Entering directory `/var/tmp/portage/wine-20040716/work/wine-20040716/dlls/d3d8' LD_LIBRARY_PATH="../../libs/unicode:$LD_LIBRARY_PATH" ../../tools/wrc/wrc --nostdinc -I. -I. -I../../include -I../../include -I/usr/X11R6/include -D__WINESRC__ -foversion.res version.rc gcc -c -I. -I. -I../../include -I../../include -I/usr/X11R6/include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -g -O2 -o basetexture.o basetexture.c basetexture.c: In function `IDirect3DBaseTexture8Impl_SetPrivateData': basetexture.c:80: warning: unused variable `This' basetexture.c: In function `IDirect3DBaseTexture8Impl_GetPrivateData': basetexture.c:84: warning: unused variable `This' basetexture.c: In function `IDirect3DBaseTexture8Impl_FreePrivateData': basetexture.c:88: warning: unused variable `This' basetexture.c: In function `IDirect3DBaseTexture8Impl_SetPriority': basetexture.c:92: warning: unused variable `This' basetexture.c: In function `IDirect3DBaseTexture8Impl_GetPriority': basetexture.c:97: warning: unused variable `This' basetexture.c: In function `IDirect3DBaseTexture8Impl_PreLoad': basetexture.c:102: warning: unused variable `This' basetexture.c: In function `IDirect3DBaseTexture8Impl_SetLOD': basetexture.c:113: warning: unused variable `This' basetexture.c: In function `IDirect3DBaseTexture8Impl_GetLOD': basetexture.c:118: warning: unused variable `This' gcc -c -I. -I. -I../../include -I../../include -I/usr/X11R6/include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -g -O2 -o cubetexture.o cubetexture.c cubetexture.c: In function `IDirect3DCubeTexture8Impl_SetPrivateData': cubetexture.c:93: warning: unused variable `This' cubetexture.c: In function `IDirect3DCubeTexture8Impl_GetPrivateData': cubetexture.c:98: warning: unused variable `This' cubetexture.c: In function `IDirect3DCubeTexture8Impl_FreePrivateData': cubetexture.c:103: warning: unused variable `This' cubetexture.c: In function `IDirect3DCubeTexture8Impl_SetPriority': cubetexture.c:108: warning: unused variable `This' cubetexture.c: In function `IDirect3DCubeTexture8Impl_GetPriority': cubetexture.c:113: warning: unused variable `This' cubetexture.c: At top level: cubetexture.c:127: error: `GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB' undeclared here (not in a function) cubetexture.c:127: error: initializer element is not constant cubetexture.c:127: error: (near initialization for `cube_targets[0]') cubetexture.c:128: error: `GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB' undeclared here (not in a function) cubetexture.c:128: error: initializer element is not constant cubetexture.c:128: error: (near initialization for `cube_targets[1]') cubetexture.c:129: error: `GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB' undeclared here (not in a function) cubetexture.c:129: error: initializer element is not constant cubetexture.c:129: error: (near initialization for `cube_targets[2]') cubetexture.c:130: error: `GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB' undeclared here (not in a function) cubetexture.c:130: error: initializer element is not constant cubetexture.c:130: error: (near initialization for `cube_targets[3]') cubetexture.c:131: error: `GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB' undeclared here (not in a function) cubetexture.c:131: error: initializer element is not constant cubetexture.c:131: error: (near initialization for `cube_targets[4]') cubetexture.c:134: error: `GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB' undeclared here (not in a function) cubetexture.c:134: error: initializer element is not constant cubetexture.c:134: error: (near initialization for `cube_targets[5]') cubetexture.c: In function `IDirect3DCubeTexture8Impl_PreLoad': cubetexture.c:146: error: `GL_TEXTURE_CUBE_MAP_ARB' undeclared (first use in this function) cubetexture.c:146: error: (Each undeclared identifier is reported only once cubetexture.c:146: error: for each function it appears in.) cubetexture.c: In function `IDirect3DCubeTexture8Impl_SetLOD': cubetexture.c:207: warning: unused variable `This' cubetexture.c: In function `IDirect3DCubeTexture8Impl_GetLOD': cubetexture.c:212: warning: unused variable `This' make[2]: *** [cubetexture.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/wine-20040716/work/wine-20040716/dlls/d3d8' make[1]: *** [d3d8] Error 2 make[1]: Leaving directory `/var/tmp/portage/wine-20040716/work/wine-20040716/dlls' make: *** [dlls] Error 2 !!! ERROR: app-emulation/wine-20040716 failed. !!! Function src_compile, Line 61, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. emerge wine 2. 3. Actual Results: compilation failed Expected Results: expected to compile My emerge info: # emerge info Portage 2.0.50-r11 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.4.26-gentoo-r3) ================================================================= System uname: 2.4.26-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz Gentoo Base System version 1.5.3 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.inode.at/ http://gentoo.mirror.sdv.fr http://gentoo.math.bme.hu http://mirror.switch.ch/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib apm avi berkdb bitmap-fonts cdr crypt cups dga directfb doc dvdr encode esd foomaticdb gdbm gif gpm gtk gtk2 imagemagick imlib ipv6 java jpeg kde libg++ libwww mad mbox mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd tiff truetype x86 xml2 xmms xosd xprint xv zlib"
update your GL provider and try 20041019