During a long-delayed upgrade, a perl upgrade necessitates running perl-cleaner. During this a rebuild of libvdpau is required and fails: $ sudo perl-cleaner --all ... >>> Emerging (1 of 48) x11-libs/libvdpau-0.4.1 ... Making all in src make[2]: Entering directory `/var/tmp/portage/x11-libs/libvdpau-0.4.1/work/libvdpau-0.4.1/src' /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DVDPAU_MODULEDIR="\"/usr/lib64\"" -O2 -pipe -mno-tls-direct-seg-refs -c -o vdpau_wrapper.lo vdpau_wrapper.c /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DVDPAU_MODULEDIR="\"/usr/lib64\"" -O2 -pipe -mno-tls-direct-seg-refs -c -o mesa_dri2.lo mesa_dri2.c libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DVDPAU_MODULEDIR=\"/usr/lib64\" -O2 -pipe -mno-tls-direct-seg-refs -c vdpau_wrapper.c -fPIC -DPIC -o .libs/vdpau_wrapper.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DVDPAU_MODULEDIR=\"/usr/lib64\" -O2 -pipe -mno-tls-direct-seg-refs -c mesa_dri2.c -fPIC -DPIC -o .libs/mesa_dri2.o mesa_dri2.c:38:33: error: X11/extensions/Xext.h: No such file or directory mesa_dri2.c:39:36: error: X11/extensions/extutil.h: No such file or directory mesa_dri2.c:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token mesa_dri2.c: In function 'XEXT_GENERATE_CLOSE_DISPLAY': mesa_dri2.c:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dri2ExtensionHooks' mesa_dri2.c:59: error: expected declaration specifiers before ';' token mesa_dri2.c:64: error: expected ')' before '&' token mesa_dri2.c:83: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token mesa_dri2.c:111: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token mesa_dri2.c:163: error: expected '{' at end of input make[2]: *** [mesa_dri2.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/x11-libs/libvdpau-0.4.1/work/libvdpau-0.4.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-libs/libvdpau-0.4.1/work/libvdpau-0.4.1' make: *** [all] Error 2 emake failed * ERROR: x11-libs/libvdpau-0.4.1 failed (compile phase): * emake failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 728: Called _eapi2_src_compile * ebuild.sh, line 665: Called die * The specific snippet of code: * emake || die "emake failed" * ... $ Reproducible: Didn't try The problem occured every time until I did a oneshot emerge of libXext, after which it was resolved.
please re emerge amd64box ~ # qfile /usr/include/X11/extensions/Xext.h x11-libs/libXext (/usr/include/X11/extensions/Xext.h)
*** Bug 375135 has been marked as a duplicate of this bug. ***
Fixed in the tree.