Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516706 - x11-libs/glamor-0.6.0 - .../work/glamor-egl-0.6.0/src/glamor_egl.c:513:3: error: 'EGL_LINUX_DRM_FOURCC_EXT' undeclared (first use in this function)
Summary: x11-libs/glamor-0.6.0 - .../work/glamor-egl-0.6.0/src/glamor_egl.c:513:3: err...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-08 16:47 UTC by Søren Boisen
Modified: 2014-07-21 08:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,85.45 KB, text/plain)
2014-07-08 16:47 UTC, Søren Boisen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Søren Boisen 2014-07-08 16:47:34 UTC
Created attachment 380452 [details]
build.log

Emerge of x11-libs/glamor-0.6.0 fails with the following message:

/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src -I..    -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm  -I/usr/include/libdrm  -DGLX_USE_TLS -DPTHREADS -I/usr/include/libdrm  -I/usr/include/libdrm   -O2 -pipe -march=native -c -o libglamoregl_la-glamor_eglmodule.lo `test -f 'glamor_eglmodule.c' || echo '/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src/'`glamor_eglmodule.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src -I.. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -DGLX_USE_TLS -DPTHREADS -I/usr/include/libdrm -I/usr/include/libdrm -O2 -pipe -march=native -c /tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src/glamor_eglmodule.c  -fPIC -DPIC -o .libs/libglamoregl_la-glamor_eglmodule.o
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src -I..    -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm  -I/usr/include/libdrm  -DGLX_USE_TLS -DPTHREADS -I/usr/include/libdrm  -I/usr/include/libdrm   -O2 -pipe -march=native -c -o libglamoregl_la-glamor_egl.lo `test -f 'glamor_egl.c' || echo '/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src/'`glamor_egl.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src -I.. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -DGLX_USE_TLS -DPTHREADS -I/usr/include/libdrm -I/usr/include/libdrm -O2 -pipe -march=native -c /tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src/glamor_egl.c  -fPIC -DPIC -o .libs/libglamoregl_la-glamor_egl.o
/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src/glamor_egl.c: In function 'glamor_egl_dri3_pixmap_from_fd':
/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src/glamor_egl.c:513:3: error: 'EGL_LINUX_DRM_FOURCC_EXT' undeclared (first use in this function)
/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src/glamor_egl.c:513:3: note: each undeclared identifier is reported only once for each function it appears in
/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src/glamor_egl.c:514:3: error: 'EGL_DMA_BUF_PLANE0_FD_EXT' undeclared (first use in this function)
/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src/glamor_egl.c:515:3: error: 'EGL_DMA_BUF_PLANE0_OFFSET_EXT' undeclared (first use in this function)
/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src/glamor_egl.c:516:3: error: 'EGL_DMA_BUF_PLANE0_PITCH_EXT' undeclared (first use in this function)
/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src/glamor_egl.c:534:8: error: 'EGL_LINUX_DMA_BUF_EXT' undeclared (first use in this function)
/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src/glamor_egl.c:535:8: warning: passing argument 3 of 'glamor_egl->egl_create_image_khr' makes integer from pointer without a cast [enabled by default]
/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-egl-0.6.0/src/glamor_egl.c:535:8: note: expected 'EGLenum' but argument is of type 'EGLint *'
make[2]: *** [libglamoregl_la-glamor_egl.lo] Error 1
make[2]: Leaving directory `/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-0.6.0_build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/portage/x11-libs/glamor-0.6.0/work/glamor-0.6.0_build'
make: *** [all] Error 2




emerge --info '=x11-libs/glamor-0.6.0::gentoo'
Portage 2.2.8-r1 (hardened/linux/amd64/no-multilib, gcc-4.6.3, glibc-2.17, 3.13.3-hardened-r1 x86_64)                                                                                                                                                                                                                                 
=================================================================                                                                                                                                                                                                                                                                     
                         System Settings
=================================================================
System uname: Linux-3.13.3-hardened-r1-x86_64-Intel-R-_Core-TM-_i5-2500_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:    16459516 total,   7132304 free
KiB Swap:    4349780 total,   4349780 free
Timestamp of tree: Mon, 07 Jul 2014 08:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.5.4, 4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo Thomas-Fischer-Git-repository seden java science sboisen
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.mdfnet.se/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="da_DK.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/tfischer-overlay /var/lib/layman/seden /var/lib/layman/java /var/lib/layman/science /usr/local/portage/sboisen"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avx bash-completion berkdb bluetooth branding bzip2 cairo caps cddb cli consolekit cracklib crypt cups curl cxx dbus dga directfb dri dts dv dvd exif fbcon ffmpeg fftw flac fontconfig gdbm gif gmp gpm graphviz gstreamer hardened iconv icu idn imagemagick infinality introspection ipv6 jabber java jpeg jpeg2k justify kde latex lcms ldap libass libcaca libnotify lm_sensors lzma mmap mmx mng modplug modules mono mp3 mp4 mpeg msn mysql ncurses networkmanager nls nptl ogg openal openexr opengl openmp pam pax_kernel pcre plasma png policykit postscript pulseaudio python qt3support qt4 quicktime raw readline samba sdl semantic-desktop session smp sndfile speex sqlite sse sse2 sse3 ssl ssse3 startup-notification svg tcmalloc tcpd theora threads tiff truetype udev unicode urandom usb v4l vim-syntax vorbis x264 xattr xcb xcomposite xft xinerama xinetd xpm xtpax xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="alias auth_basic authn_file authz_host authz_user cgid deflate dir env filter headers info log_config mime mime_magic negotiation rewrite setenvif status" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en da" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON




emerge -pqv '=x11-libs/glamor-0.6.0::gentoo'
[ebuild  N    ] x11-libs/glamor-0.6.0  USE="xv -gles -static-libs" 


Hope this helps
Best regards
Søren
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-07-10 07:57:29 UTC
EGL_LINUX_DRM_FOURCC_EXT is defined in /usr/lib64/opengl/xorg-x11/include/EGL/eglext.h

Does that file exist on your system, and does it include the definition? What is the version and the USE flags of mesa on your system?
Comment 2 Søren Boisen 2014-07-10 13:07:25 UTC
(In reply to Chí-Thanh Christopher Nguyễn from comment #1)
> EGL_LINUX_DRM_FOURCC_EXT is defined in
> /usr/lib64/opengl/xorg-x11/include/EGL/eglext.h
> 
> Does that file exist on your system, and does it include the definition?

Yes, the file exists, but it doesn't have the definition:

sboisen@nikanuuranu: ~$ ls -l /usr/lib64/opengl/xorg-x11/include/EGL/eglext.h 
-rw-r--r-- 1 root root 25037 18 okt  2013 /usr/lib64/opengl/xorg-x11/include/EGL/eglext.h

sboisen@nikanuuranu: ~$ grep "FOURCC_EXT" /usr/lib64/opengl/xorg-x11/include/EGL/eglext.h 
sboisen@nikanuuranu: ~$

> What is the version and the USE flags of mesa on your system?

Version and use flags:

sboisen@nikanuuranu: ~$ equery uses mesa
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for media-libs/mesa-10.0.4:
 U I
 - - bindist              : Disable patent-encumbered ARB_texture_float, EXT_texture_shared_exponent, and EXT_packed_float extensions.
 - - classic              : Build drivers based on the classic architecture.
 - - debug                : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
 + - egl                  : Enable EGL support.
 + - gallium              : Build drivers based on Gallium3D, the new architecture for 3D graphics drivers.
 + - gbm                  : Enable the Graphics Buffer Manager for EGL on KMS.
 + - gles1                : Enable GLESv1 support.
 + - gles2                : Enable GLESv2 support.
 + - llvm                 : Enable LLVM backend for Gallium3D.
 - - llvm-shared-libs     : Dynamically link Gallium3D drivers against LLVM.
 + + nptl                 : Enable support for Native POSIX Threads Library, the new threading module (requires linux-2.6 or better usually)
 - - opencl               : Enable the Clover Gallium OpenCL state tracker.
 + - openvg               : Enable the OpenVG 2D acceleration API for Gallium3D.
 + - osmesa               : Build the Mesa library for off-screen rendering.
 + + pax_kernel           : Enable if the user plans to run the package under a pax enabled hardened kernel
 - - pic                  : disable optimized assembly code that is not PIC friendly
 - - r600-llvm-compiler   : Build the LLVM based r600 shader compiler.
 + - vdpau                : Enable the VDPAU acceleration interface for the Gallium3D Video Layer.
 - - video_cards_i915     : VIDEO_CARDS setting to build driver for Intel i915 video cards
 - - video_cards_i965     : VIDEO_CARDS setting to build driver for Intel i965 video cards
 - - video_cards_ilo      : VIDEO_CARDS setting to build unofficial gallium driver for Intel gen6/7 video cards
 - - video_cards_intel    : VIDEO_CARDS setting to build driver for Intel video cards
 - - video_cards_nouveau  : VIDEO_CARDS setting to build reverse-engineered driver for nvidia cards
 - - video_cards_r100     : VIDEO_CARDS setting to build only r100 based chips code for radeon
 - - video_cards_r200     : VIDEO_CARDS setting to build only r200 based chips code for radeon
 - - video_cards_r300     : VIDEO_CARDS setting to build only r300, r400 and r500 based chips code for radeon
 + - video_cards_r600     : VIDEO_CARDS setting to build only r600, r700, Evergreen and Northern Islands based chips code for radeon
 + + video_cards_radeon   : VIDEO_CARDS setting to build driver for ATI radeon video cards
 - - video_cards_radeonsi : VIDEO_CARDS setting to build only Southern Islands based chips code for radeon
 - - video_cards_vmware   : VIDEO_CARDS setting to build driver for vmware video cards
 - - wayland              : Enable support for dev-libs/wayland
 + - xa                   : Enable the XA (X Acceleration) API for Gallium3D.
 + - xvmc                 : Enable the XvMC acceleration interface for the Gallium3D Video Layer.
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-07-10 16:04:21 UTC
Something appears very wrong on your system.

> + - egl                  : Enable EGL support.

glamor-0.6.0 depends on mesa[egl], so portage should not even attempt to build against such mesa.

eglext.h from mesa-10.0.4 is 26636 bytes large

check the output of 
# equery b /usr/lib64/opengl/xorg-x11/include/EGL/eglext.h
to find out where that file came from.
Comment 4 Søren Boisen 2014-07-15 07:15:31 UTC
(In reply to Chí-Thanh Christopher Nguyễn from comment #3)
> Something appears very wrong on your system.
> 
> > + - egl                  : Enable EGL support.
> 
> glamor-0.6.0 depends on mesa[egl], so portage should not even attempt to
> build against such mesa.
> 
> eglext.h from mesa-10.0.4 is 26636 bytes large
> 
> check the output of 
> # equery b /usr/lib64/opengl/xorg-x11/include/EGL/eglext.h
> to find out where that file came from.

Sorry for the late reply, it's my work computer, so had to get back to work before replying :)
Here is the requested output:

sboisen@nikanuuranu: ~$ equery b /usr/lib64/opengl/xorg-x11/include/EGL/eglext.h 
 * Searching for /usr/lib64/opengl/xorg-x11/include/EGL/eglext.h ... 
media-libs/mesa-9.1.6 (/usr/lib64/opengl/xorg-x11/include/EGL/eglext.h)



I suspect the output of "equery uses mesa" is wrong regarding the "I" column, as I'm pretty sure I enabled both gallium, gles2 and video_cards_r600 flags before I built it last time. And indeed I seem to have the files for r600 and gallium:
sboisen@nikanuuranu: ~$ equery files mesa
 * Searching for mesa ...
 * Contents of media-libs/mesa-9.1.6:
/etc
/etc/drirc
/usr
/usr/include
/usr/include/GL
/usr/include/GL/gl_mangle.h
/usr/include/GL/glx_mangle.h
/usr/include/GL/internal
/usr/include/GL/internal/dri_interface.h
/usr/include/GL/osmesa.h
/usr/include/GL/wglext.h
/usr/include/GL/wmesa.h
/usr/include/gbm.h
/usr/include/xa_composite.h
/usr/include/xa_context.h
/usr/include/xa_tracker.h
/usr/lib64
/usr/lib64/dri
/usr/lib64/dri/.keep_media-libs_mesa-0
/usr/lib64/dri/r600g_dri.so -> ../mesa/r600g_dri.so
/usr/lib64/dri/swrastg_dri.so -> ../mesa/swrastg_dri.so
/usr/lib64/egl
/usr/lib64/egl/egl_gallium.so
/usr/lib64/gallium-pipe
/usr/lib64/gallium-pipe/pipe_r600.so
/usr/lib64/gallium-pipe/pipe_swrast.so
/usr/lib64/gbm
/usr/lib64/gbm/gbm_gallium_drm.so
/usr/lib64/libOSMesa.so -> libOSMesa.so.8.0.0
/usr/lib64/libOSMesa.so.8 -> libOSMesa.so.8.0.0
/usr/lib64/libOSMesa.so.8.0.0
/usr/lib64/libXvMCr600.so -> libXvMCr600.so.1.0.0
/usr/lib64/libXvMCr600.so.1 -> libXvMCr600.so.1.0.0
/usr/lib64/libXvMCr600.so.1.0.0
/usr/lib64/libXvMCsoftpipe.so -> libXvMCsoftpipe.so.1.0.0
/usr/lib64/libXvMCsoftpipe.so.1 -> libXvMCsoftpipe.so.1.0.0
/usr/lib64/libXvMCsoftpipe.so.1.0.0
/usr/lib64/libgbm.so -> libgbm.so.1.0.0
/usr/lib64/libgbm.so.1 -> libgbm.so.1.0.0
/usr/lib64/libgbm.so.1.0.0
/usr/lib64/libglapi.so -> libglapi.so.0.0.0
/usr/lib64/libglapi.so.0 -> libglapi.so.0.0.0
/usr/lib64/libglapi.so.0.0.0
/usr/lib64/mesa
/usr/lib64/mesa/r600g_dri.so
/usr/lib64/mesa/swrastg_dri.so
/usr/lib64/opengl
/usr/lib64/opengl/xorg-x11
/usr/lib64/opengl/xorg-x11/extensions
/usr/lib64/opengl/xorg-x11/include
/usr/lib64/opengl/xorg-x11/include/EGL
/usr/lib64/opengl/xorg-x11/include/EGL/egl.h
/usr/lib64/opengl/xorg-x11/include/EGL/eglext.h
/usr/lib64/opengl/xorg-x11/include/EGL/eglmesaext.h
/usr/lib64/opengl/xorg-x11/include/EGL/eglplatform.h
/usr/lib64/opengl/xorg-x11/include/GL
/usr/lib64/opengl/xorg-x11/include/GL/gl.h
/usr/lib64/opengl/xorg-x11/include/GL/glext.h
/usr/lib64/opengl/xorg-x11/include/GL/glx.h
/usr/lib64/opengl/xorg-x11/include/GL/glxext.h
/usr/lib64/opengl/xorg-x11/include/GLES
/usr/lib64/opengl/xorg-x11/include/GLES/egl.h
/usr/lib64/opengl/xorg-x11/include/GLES/gl.h
/usr/lib64/opengl/xorg-x11/include/GLES/glext.h
/usr/lib64/opengl/xorg-x11/include/GLES/glplatform.h
/usr/lib64/opengl/xorg-x11/include/GLES2
/usr/lib64/opengl/xorg-x11/include/GLES2/gl2.h
/usr/lib64/opengl/xorg-x11/include/GLES2/gl2ext.h
/usr/lib64/opengl/xorg-x11/include/GLES2/gl2platform.h
/usr/lib64/opengl/xorg-x11/include/GLES3
/usr/lib64/opengl/xorg-x11/include/GLES3/gl3.h
/usr/lib64/opengl/xorg-x11/include/GLES3/gl3ext.h
/usr/lib64/opengl/xorg-x11/include/GLES3/gl3platform.h
/usr/lib64/opengl/xorg-x11/include/KHR
/usr/lib64/opengl/xorg-x11/include/KHR/khrplatform.h
/usr/lib64/opengl/xorg-x11/include/VG
/usr/lib64/opengl/xorg-x11/include/VG/openvg.h
/usr/lib64/opengl/xorg-x11/include/VG/vgext.h
/usr/lib64/opengl/xorg-x11/include/VG/vgplatform.h
/usr/lib64/opengl/xorg-x11/include/VG/vgu.h
/usr/lib64/opengl/xorg-x11/lib
/usr/lib64/opengl/xorg-x11/lib/libEGL.so -> libEGL.so.1.0.0
/usr/lib64/opengl/xorg-x11/lib/libEGL.so.1 -> libEGL.so.1.0.0
/usr/lib64/opengl/xorg-x11/lib/libEGL.so.1.0.0
/usr/lib64/opengl/xorg-x11/lib/libGL.so -> libGL.so.1.2.0
/usr/lib64/opengl/xorg-x11/lib/libGL.so.1 -> libGL.so.1.2.0
/usr/lib64/opengl/xorg-x11/lib/libGL.so.1.2.0
/usr/lib64/opengl/xorg-x11/lib/libGLESv1_CM.so -> libGLESv1_CM.so.1.1.0
/usr/lib64/opengl/xorg-x11/lib/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1.0
/usr/lib64/opengl/xorg-x11/lib/libGLESv1_CM.so.1.1.0
/usr/lib64/opengl/xorg-x11/lib/libGLESv2.so -> libGLESv2.so.2.0.0
/usr/lib64/opengl/xorg-x11/lib/libGLESv2.so.2 -> libGLESv2.so.2.0.0
/usr/lib64/opengl/xorg-x11/lib/libGLESv2.so.2.0.0
/usr/lib64/opengl/xorg-x11/lib/libOpenVG.so -> libOpenVG.so.1.0.0
/usr/lib64/opengl/xorg-x11/lib/libOpenVG.so.1 -> libOpenVG.so.1.0.0
/usr/lib64/opengl/xorg-x11/lib/libOpenVG.so.1.0.0
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/dri.pc
/usr/lib64/pkgconfig/egl.pc
/usr/lib64/pkgconfig/gbm.pc
/usr/lib64/pkgconfig/gl.pc
/usr/lib64/pkgconfig/glesv1_cm.pc
/usr/lib64/pkgconfig/glesv2.pc
/usr/lib64/pkgconfig/osmesa.pc
/usr/lib64/pkgconfig/vg.pc
/usr/lib64/vdpau
/usr/lib64/vdpau/libvdpau_r600.so -> libvdpau_r600.so.1.0.0
/usr/lib64/vdpau/libvdpau_r600.so.1 -> libvdpau_r600.so.1.0.0
/usr/lib64/vdpau/libvdpau_r600.so.1.0.0
/usr/lib64/vdpau/libvdpau_softpipe.so -> libvdpau_softpipe.so.1.0.0
/usr/lib64/vdpau/libvdpau_softpipe.so.1 -> libvdpau_softpipe.so.1.0.0
/usr/lib64/vdpau/libvdpau_softpipe.so.1.0.0
/usr/share
/usr/share/doc
/usr/share/doc/mesa-9.1.6
/usr/share/doc/mesa-9.1.6/patents.txt.bz2
/usr/share/mesa
/usr/share/mesa/eselect-mesa.conf
Comment 5 Søren Boisen 2014-07-16 13:55:04 UTC
Indeed my mesa installation must have been damaged, or the version too old for glamor. I just emerged mesa-10.0.4 and now the eglext.h file appears to be fine:

sboisen@nikanuuranu: ~/git/units (gerrit %)$ grep "FOURCC_EXT" /usr/lib64/opengl/xorg-x11/include/EGL/eglext.h 
#define EGL_LINUX_DRM_FOURCC_EXT                0x3271

What's more, my equery uses output for mesa now corresponds to the options the previous version was supposed to have been compiled with:

sboisen@nikanuuranu: ~/git/units (gerrit %)$ equery uses mesa
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for media-libs/mesa-10.0.4:
 U I
 - - bindist              : Disable patent-encumbered ARB_texture_float, EXT_texture_shared_exponent, and EXT_packed_float extensions.
 - - classic              : Build drivers based on the classic architecture.
 - - debug                : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
 + + egl                  : Enable EGL support.
 + + gallium              : Build drivers based on Gallium3D, the new architecture for 3D graphics drivers.
 + + gbm                  : Enable the Graphics Buffer Manager for EGL on KMS.
 + + gles1                : Enable GLESv1 support.
 + + gles2                : Enable GLESv2 support.
 + + llvm                 : Enable LLVM backend for Gallium3D.
 - - llvm-shared-libs     : Dynamically link Gallium3D drivers against LLVM.
 + + nptl                 : Enable support for Native POSIX Threads Library, the new threading module (requires linux-2.6 or better usually)
 - - opencl               : Enable the Clover Gallium OpenCL state tracker.
 + + openvg               : Enable the OpenVG 2D acceleration API for Gallium3D.
 + + osmesa               : Build the Mesa library for off-screen rendering.
 + + pax_kernel           : Enable if the user plans to run the package under a pax enabled hardened kernel
 - - pic                  : disable optimized assembly code that is not PIC friendly
 - - r600-llvm-compiler   : Build the LLVM based r600 shader compiler.
 + + vdpau                : Enable the VDPAU acceleration interface for the Gallium3D Video Layer.
 - - video_cards_i915     : VIDEO_CARDS setting to build driver for Intel i915 video cards
 - - video_cards_i965     : VIDEO_CARDS setting to build driver for Intel i965 video cards
 - - video_cards_ilo      : VIDEO_CARDS setting to build unofficial gallium driver for Intel gen6/7 video cards
 - - video_cards_intel    : VIDEO_CARDS setting to build driver for Intel video cards
 - - video_cards_nouveau  : VIDEO_CARDS setting to build reverse-engineered driver for nvidia cards
 - - video_cards_r100     : VIDEO_CARDS setting to build only r100 based chips code for radeon
 - - video_cards_r200     : VIDEO_CARDS setting to build only r200 based chips code for radeon
 - - video_cards_r300     : VIDEO_CARDS setting to build only r300, r400 and r500 based chips code for radeon
 + + video_cards_r600     : VIDEO_CARDS setting to build only r600, r700, Evergreen and Northern Islands based chips code for radeon
 + + video_cards_radeon   : VIDEO_CARDS setting to build driver for ATI radeon video cards
 - - video_cards_radeonsi : VIDEO_CARDS setting to build only Southern Islands based chips code for radeon
 - - video_cards_vmware   : VIDEO_CARDS setting to build driver for vmware video cards
 - - wayland              : Enable support for dev-libs/wayland
 + + xa                   : Enable the XA (X Acceleration) API for Gallium3D.
 + + xvmc                 : Enable the XvMC acceleration interface for the Gallium3D Video Layer.
s


After emerging mesa, glamor compiled without issue. I don't know if it is possible/worth proceeding with investigating this bug. I would guess it to be hard/impossible to figure out, how my mesa installation got corrupted.

Thoughts? :-)

BR, Søren
Comment 6 Søren Boisen 2014-07-16 13:57:51 UTC
BTW, the error occured in the middle of a world update:

emerge --deep --update --newuse --with-bdeps=y "$@" @world

For some reason portage chose to emerge glamor before mesa, even though mesa was scheduled for update.
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-07-21 08:42:36 UTC
I added a dependency on >=mesa-10 to the glamor ebuild, so mesa will now be upgraded before glamor.