Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699190 - dev-qt/qtwayland-5.13.2 with >=media-libs/mesa-19.3.0_rc4: ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.h:92:5: error: ‘PFNEGLBINDWAYLANDDISPLAYWL’ does not name a type
Summary: dev-qt/qtwayland-5.13.2 with >=media-libs/mesa-19.3.0_rc4: ../../../../hardwa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Qt Bug Alias
URL: https://bugreports.qt.io/browse/QTBUG...
Whiteboard:
Keywords:
: 700192 700832 (view as bug list)
Depends on:
Blocks: qt-5.13.2-stable
  Show dependency tree
 
Reported: 2019-11-02 22:31 UTC by Ostashevskyi Viktor
Modified: 2019-11-25 01:35 UTC (History)
13 users (show)

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


Attachments
build.log (build.log,898.68 KB, text/plain)
2019-11-02 22:31 UTC, Ostashevskyi Viktor
Details
build.log (build.log,946.23 KB, text/x-log)
2019-11-03 20:05 UTC, Dennis Schridde
Details
Fix EGL/Wayland typedefs for compilation with glvnd (Fix-EGL-typedefs-for-glvnd.patch,5.22 KB, patch)
2019-11-03 21:55 UTC, Luis Cáceres
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ostashevskyi Viktor 2019-11-02 22:31:01 UTC
qtwayland-5.13.2 doesn't compile.

../../../../hardwareintegration/compositor/wayland-egl/waylandeglclientbufferintegration.cpp:120:27: error: expected ‘)’ before ‘PFNGLEGLIMAGETARGETTEXTURE2DOESPROC’
  120 | typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
      |              ~            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                           )
../../../../hardwareintegration/compositor/wayland-egl/waylandeglclientbufferintegration.cpp:121:27: error: expected ‘)’ before ‘PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC’
  121 | typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
      |              ~            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                           )
../../../../hardwareintegration/compositor/wayland-egl/waylandeglclientbufferintegration.cpp:201:5: error: ‘PFNGLEGLIMAGETARGETTEXTURE2DOESPROC’ does not name a type
  201 |     PFNGLEGLIMAGETARGETTEXTURE2DOESPROC gl_egl_image_target_texture_2d = nullptr;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/wayland-egl/waylandeglclientbufferintegration.cpp: In member function ‘void WaylandEglClientBufferIntegrationPrivate::initEglTexture(WaylandEglClientBuffer*, EGLint)’:
../../../../hardwareintegration/compositor/wayland-egl/waylandeglclientbufferintegration.cpp:230:10: error: ‘gl_egl_image_target_texture_2d’ was not declared in this scope
  230 |     if (!gl_egl_image_target_texture_2d)
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/wayland-egl/waylandeglclientbufferintegration.cpp:231:59: error: ‘PFNGLEGLIMAGETARGETTEXTURE2DOESPROC’ does not name a type
  231 |         gl_egl_image_target_texture_2d = reinterpret_cast<PFNGLEGLIMAGETARGETTEXTURE2DOESPROC>(eglGetProcAddress("glEGLImageTargetTexture2DOES"));
      |                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/wayland-egl/waylandeglclientbufferintegration.cpp:233:10: error: ‘gl_egl_image_target_texture_2d’ was not declared in this scope
  233 |     if (!gl_egl_image_target_texture_2d) {
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/wayland-egl/waylandeglclientbufferintegration.cpp: In member function ‘virtual QOpenGLTexture* WaylandEglClientBuffer::toOpenGlTexture(int)’:
../../../../hardwareintegration/compositor/wayland-egl/waylandeglclientbufferintegration.cpp:571:12: error: ‘class WaylandEglClientBufferIntegrationPrivate’ has no member named ‘gl_egl_image_target_texture_2d’
  571 |         p->gl_egl_image_target_texture_2d(target, d->egl_images[plane]);


Reproducible: Always




Portage 2.3.78 (python 2.7.16-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-9.2.0, glibc-2.29-r6, 5.3.4-gentoo x86_64)
=================================================================
System uname: Linux-5.3.4-gentoo-x86_64-Intel-R-_Core-TM-_i5-8300H_CPU_@_2.30GHz-with-gentoo-2.6
KiB Mem:    16315328 total,   5821484 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Sat, 02 Nov 2019 18:30:01 +0000
Head commit of repository gentoo: 3b67737d772a2083776df71961c3d5756e87b2d6
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo, 3.7.5-r1::gentoo
dev-util/cmake:           3.15.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo, 9.2.0-r1::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r6::gentoo
Repositories:

gentoo
    location: /mnt/data/rootopt/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/kde.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/x11.git
    masters: gentoo
    priority: 50

x-local
    location: /usr/local/portage
    masters: gentoo
    priority: 100

Installed sets: @coreapps, @gstreamer, @kde
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fno-stack-protector -pipe -fuse-linker-plugin -flto"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/sddm/scripts/Xsetup"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -fno-stack-protector -pipe -fuse-linker-plugin -flto"
DISTDIR="/mnt/data/rootopt/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg candy compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=native -fno-stack-protector -pipe -fuse-linker-plugin -flto"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="uk_UA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--enable-new-dtags -O2 -march=native -fno-stack-protector -pipe -fuse-linker-plugin -flto -flto=4 -fuse-linker-plugin"
LINGUAS="en en-GB en-US uk uk_UA ru pl"
MAKEOPTS="-j4"
PKGDIR="/mnt/data/rootopt/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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="amd64 ipv6 nls policykit split-usr" ABI_X86="64" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" KERNEL="linux" L10N="en en-GB en-US uk uk_UA ru pl" LLVM_TARGETS="X86" RUBY_TARGETS="ruby25" USERLAND="GNU"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ostashevskyi Viktor 2019-11-02 22:31:37 UTC
Created attachment 594922 [details]
build.log
Comment 2 Dennis Schridde 2019-11-03 20:05:39 UTC
Created attachment 594966 [details]
build.log

The first error is actually: ../../../../hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h:60:27: error: expected ‘)’ before ‘PFNGLEGLIMAGETARGETTEXTURE2DOESPROC’

Please adjust the bug summary accordingly.

Also, I suspect this is related to media-libs/libglvnd, because that is what provides the headers defining GL_APIENTRYP on my system.  I suggest to adjust the subject to include "dev-qt/qtwayland-5.13.2 with media-libs/mesa-19.2.2[libglvnd] and media-libs/libglvnd-1.2.0-r1" and make this bug block bug #692206.


Portage 2.3.78 (python 2.7.13-final-42, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-9.2.0, glibc-2.29-r6, 5.3.8-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.3.8-gentoo-x86_64-AMD_Ryzen_5_2400G_with_Radeon_Vega_Graphics-with-gentoo-2.6
KiB Mem:    14134888 total,   4245768 free
KiB Swap:   16776188 total,  13806076 free
Timestamp of repository gentoo: Sat, 02 Nov 2019 19:45:01 +0000
Head commit of repository gentoo: af9a4dafd073b4b41fde54568bfe9efaae716bf5
Head commit of repository flatpak-overlay: dba2292fa92fbe7f51a437ff89d27cbab6105b67

Head commit of repository local: efdb52d35b9c69bfd76caa8b345adc4de9fff894

sh bash 5.0_p11
ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16
ccache version 3.7.5 [disabled]
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.5.7::gentoo, 3.6.9::gentoo, 3.7.5-r1::gentoo
dev-util/ccache:          3.7.5::gentoo
dev-util/cmake:           3.16.0_rc3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.1.0::gentoo, 9.2.0-r1::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r6::gentoo
Repositories:

gentoo
    location: /var/cache/portage/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

flatpak-overlay
    location: /var/db/repos/flatpak-overlay
    sync-type: git
    sync-uri: https://github.com/fosero/flatpak-overlay.git
    masters: gentoo

local
    location: /var/cache/portage/local
    sync-type: git
    sync-uri: https://github.com/devurandom/gentoo-overlay.git
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/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="-pipe -O2 -march=znver1"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --nospinner --verbose-conflicts"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j6 -l4"
PKGDIR="/var/cache/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 --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="7z 7zip X a52 aac aacplus aacs acl acpi activities aio alsa amd64 appindicator appstream archive audit avahi ayatana bash-completion bdplus berkdb blake2 bluetooth bluray branding brotli bs2b btrfs bzip2 cairo caps cdda cddb cdio cdr celt chromaprint cjk clang cli clipboard color-management colord conntrack crypt cups cxx d3d9 dav1d dbus declarative device-mapper dirac djvu dri drm dts dvb dvd dvdr ed25519 editorconfig egl elf emboss encode epub exif fam faudio fax fbcon ffmpeg fftw filecaps firefox firewalld fish-completion fits flac fontconfig fontforge fortran fribidi gamepad gbm gdal gdbm geoclue geolocation gif git glamor gles gmp gnupg google googledrive gpg gps graphicsmagick gstreamer gtk gtk3 gzip harfbuzz hdf5 heif http2 ibus iconv icu idn imlib inotify introspection ipv6 jemalloc jpeg jpeg2k json kde kipi kms kwallet ladspa latex lcms ldap libatomic libglvnd libidn2 libinput libnotify libproxy libsecret libsoxr libtirpc libvirt lm-sensors lrz lv2 lvm lz4 lzma lzo mad mariadb markdown mbim mercurial mjpeg mng mobi modemmanager modplug mp3 mp4 mpeg mplayer mpris mtp multilib mysql ncurses netlink networkmanager nls nptl office ofx ogg openal opencl opencv openexr opengl openh264 openmax openmp opus pam pango pcap pch pcre pcre2 pdf pgo phonon pixman plasma pm-utils png policykit postscript ppds prison pulseaudio python qml qrcode qt5 raw readline redfish samba sasl scanner schroedinger screencast sctp sdl sdl2 seccomp semantic-desktop share smartcard snappy sparse speech speex spell ssl startup-notification steamruntime stemmer svg systemd systemtap tbb tcpd teamd telepathy tga theora threads tiff timezone tmux truetype tslib udev udisks unicode unwind upnp upnp-av upower usb utempter v4l v4l2 vaapi vdpau vkd3d vorbis vpx vulkan wasm wavpack wayland webchannel webengine webkit webp widgets wmf wps x264 x265 xattr xcb xcomposite xinerama xkb xml xmp xrandr xscreensaver xv xvid xwayland xz yaml zeroconf zeromq zimg zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" ENLIGHTENMENT_MODULES="*" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="joystick libinput" KERNEL="linux" L10N="de de-DE en en-GB ar fa tr ja ko zh zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-javascript wiki-publisher" LIRC_DEVICES="devinput" LLVM_TARGETS="AMDGPU BPF RISCV WebAssembly" LUA_TARGET="lua5-2" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 pypy pypy3" QEMU_SOFTMMU_TARGETS="riscv32 riscv64 x86_64" QEMU_USER_TARGETS="riscv32 riscv64" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu virgl" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-qt/qtwayland-5.12.5::gentoo was built with the following:
USE="libinput xcomposite -debug -test" ABI_X86="(64)"


dev-libs/wayland-1.17.0::gentoo was built with the following:
USE="-doc -static-libs" ABI_X86="32 (64) (-x32)"


dev-libs/wayland-protocols-1.18::gentoo was built with the following:
USE="" ABI_X86="(64)"


media-libs/libglvnd-1.2.0-r1::gentoo was built with the following:
USE="X" ABI_X86="32 (64) (-x32)"


media-libs/mesa-19.2.2::gentoo was built with the following:
USE="X d3d9 dri3 egl gallium gbm gles2 libglvnd llvm lm-sensors opencl osmesa unwind vaapi vdpau vulkan vulkan-overlay wayland -classic -debug -gles1 -pax_kernel (-selinux) -test -valgrind -xa -xvmc" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="radeonsi virgl (-freedreno) -i915 -i965 -intel -iris (-lima) -nouveau (-panfrost) -r100 -r200 -r300 -r600 -radeon (-vc4) (-vivante) -vmware"
CFLAGS="-pipe -O2 -march=znver1 -g"
CXXFLAGS="-pipe -O2 -march=znver1 -g"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
Comment 3 Dennis Schridde 2019-11-03 20:32:15 UTC
Some preliminary results of a quick investigation:
* While "EGL" appears in in PFNGLEGLIMAGETARGETTEXTURE2DOESPROC, the prefix is "gl", so it is part of OpenGL or OpenGLES, not EGL.  A quick grep reveals that it is usually defined in /usr/include/GLES2/gl2ext.h or /usr/include/GLES/glext.h.
* On my system I have USE=-gles2 for dev-qt/qtgui.  Thus /usr/include/qt5/QtGui/qtgui-config.h will not define QT_OPENGL_ES_2.  Which means /usr/include/qt5/QtGui/qopengl.h will not expose it's interface.

Thus the definition of PFNGLEGLIMAGETARGETTEXTURE2DOESPROC in qtwayland-everywhere-src-5.13.2/src/hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h (and the initialisation of m_gl_egl_image_target_texture in drmeglserverbufferintegration.cpp) should probably be guarded by #ifdef QT_OPENGL_ES_2.
Comment 4 Dennis Schridde 2019-11-03 20:53:28 UTC
Also note that another part of qtwayland suffers from the same problem:

In file included from ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:40:
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.h:87:5: error: ‘PFNGLEGLIMAGETARGETTEXTURE2DOESPROC’ does not name a type
   87 |     PFNGLEGLIMAGETARGETTEXTURE2DOESPROC gl_egl_image_target_texture_2d = nullptr;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.h:92:5: error: ‘PFNEGLBINDWAYLANDDISPLAYWL’ does not name a type
   92 |     PFNEGLBINDWAYLANDDISPLAYWL egl_bind_wayland_display = nullptr;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.h:93:5: error: ‘PFNEGLUNBINDWAYLANDDISPLAYWL’ does not name a type
   93 |     PFNEGLUNBINDWAYLANDDISPLAYWL egl_unbind_wayland_display = nullptr;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp: In member function ‘bool LinuxDmabufClientBufferIntegration::initSimpleTexture(LinuxDmabufWlBuffer*)’:
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:123:10: error: ‘gl_egl_image_target_texture_2d’ was not declared in this scope
  123 |     if (!gl_egl_image_target_texture_2d)
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:124:59: error: ‘PFNGLEGLIMAGETARGETTEXTURE2DOESPROC’ does not name a type
  124 |         gl_egl_image_target_texture_2d = reinterpret_cast<PFNGLEGLIMAGETARGETTEXTURE2DOESPROC>(eglGetProcAddress("glEGLImageTargetTexture2DOES"));
      |                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp: In member function ‘bool LinuxDmabufClientBufferIntegration::initYuvTexture(LinuxDmabufWlBuffer*)’:
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:219:10: error: ‘gl_egl_image_target_texture_2d’ was not declared in this scope
  219 |     if (!gl_egl_image_target_texture_2d)
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:220:59: error: ‘PFNGLEGLIMAGETARGETTEXTURE2DOESPROC’ does not name a type
  220 |         gl_egl_image_target_texture_2d = reinterpret_cast<PFNGLEGLIMAGETARGETTEXTURE2DOESPROC>(eglGetProcAddress("glEGLImageTargetTexture2DOES"));
      |                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp: In member function ‘virtual void LinuxDmabufClientBufferIntegration::initializeHardware(wl_display*)’:
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:302:5: error: ‘egl_bind_wayland_display’ was not declared in this scope
  302 |     egl_bind_wayland_display = reinterpret_cast<PFNEGLBINDWAYLANDDISPLAYWL>(eglGetProcAddress("eglBindWaylandDisplayWL"));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:302:49: error: ‘PFNEGLBINDWAYLANDDISPLAYWL’ does not name a type
  302 |     egl_bind_wayland_display = reinterpret_cast<PFNEGLBINDWAYLANDDISPLAYWL>(eglGetProcAddress("eglBindWaylandDisplayWL"));
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:303:5: error: ‘egl_unbind_wayland_display’ was not declared in this scope
  303 |     egl_unbind_wayland_display = reinterpret_cast<PFNEGLUNBINDWAYLANDDISPLAYWL>(eglGetProcAddress("eglUnbindWaylandDisplayWL"));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:303:51: error: ‘PFNEGLUNBINDWAYLANDDISPLAYWL’ does not name a type
  303 |     egl_unbind_wayland_display = reinterpret_cast<PFNEGLUNBINDWAYLANDDISPLAYWL>(eglGetProcAddress("eglUnbindWaylandDisplayWL"));
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp: In member function ‘virtual QOpenGLTexture* LinuxDmabufClientBuffer::toOpenGlTexture(int)’:
../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:471:24: error: ‘class LinuxDmabufClientBufferIntegration’ has no member named ‘gl_egl_image_target_texture_2d’
  471 |         m_integration->gl_egl_image_target_texture_2d(target, d->image(plane));
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[5]: *** [Makefile:1055: .obj/linuxdmabufclientbufferintegration.o] Error 1
make[5]: Leaving directory '/tmp/portage/dev-qt/qtwayland-5.13.2/work/qtwayland-everywhere-src-5.13.2/src/plugins/hardwareintegration/compositor/linux-dmabuf-unstable-v1'
make[4]: *** [Makefile:55: sub-linux-dmabuf-unstable-v1-make_first] Error 2
make[4]: Leaving directory '/tmp/portage/dev-qt/qtwayland-5.13.2/work/qtwayland-everywhere-src-5.13.2/src/plugins/hardwareintegration/compositor'
make[3]: *** [Makefile:73: sub-compositor-make_first] Error 2
make[3]: *** Waiting for unfinished jobs....
Comment 5 Dennis Schridde 2019-11-03 21:36:36 UTC
I created bug reports upstream, one for each affected part:
* https://bugreports.qt.io/browse/QTBUG-79708
* https://bugreports.qt.io/browse/QTBUG-79709
Comment 6 Luis Cáceres 2019-11-03 21:55:24 UTC
Created attachment 594980 [details, diff]
Fix EGL/Wayland typedefs for compilation with glvnd

This is something that should probably be fixed upstream, but right now I'm using this patch that fixes compilation for me.
Comment 8 Chiitoo gentoo-dev 2019-11-05 20:02:14 UTC
So this only happens with 'media-libs/libglvnd' installed?  (It's very masked here, so I haven't tested with it yet.)
Comment 9 Dennis Schridde 2019-11-05 20:18:05 UTC
(In reply to Chiitoo from comment #8)
> So this only happens with 'media-libs/libglvnd' installed?  (It's very
> masked here, so I haven't tested with it yet.)

I did not try with without libglvnd / with mesa[-libglvnd].
Comment 10 Dennis Schridde 2019-11-13 20:12:18 UTC
(In reply to Dennis Schridde from comment #7)
> Upstream suggests to patch libglvnd with this patch to declare everything
> Mesa does:
> https://gitlab.freedesktop.org/glvnd/libglvnd/commit/
> 5dfdc5a6dc60a3bdc63cd4510dabacba388da13a
> 
> cf.
> https://bugreports.qt.io/browse/QTBUG-79708?focusedCommentId=484469&page=com.
> atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-484469
> 
> This fixes https://bugreports.qt.io/browse/QTBUG-79708 but does not solve
> https://bugreports.qt.io/browse/QTBUG-79709.

Upstream proposes a patch https://codereview.qt-project.org/c/qt/qtwayland/+/280788 to fix https://bugreports.qt.io/browse/QTBUG-79709, which solves the issue for me.
Comment 11 Chiitoo gentoo-dev 2019-11-17 11:27:44 UTC
*** Bug 700192 has been marked as a duplicate of this bug. ***
Comment 12 Chiitoo gentoo-dev 2019-11-21 14:40:14 UTC
I can now finally see this as well (with Qt 5.14), after going from 'media-libs/mesa-19.3.0_rc3' to '19.3.0_rc4'.
Comment 13 Chiitoo gentoo-dev 2019-11-21 14:49:28 UTC
Ooops, I thought I was at: https://bugs.gentoo.org/700832
Comment 14 Dennis Schridde 2019-11-23 18:02:59 UTC
(In reply to Chiitoo from comment #13)
> Ooops, I thought I was at: https://bugs.gentoo.org/700832

Could someone please include "and ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.h:92:5: error: ‘PFNEGLBINDWAYLANDDISPLAYWL’ does not name a type" in the bug summary?  We are getting duplicates of this bug, because people cannot find it.
Comment 15 Andreas Sturmlechner gentoo-dev 2019-11-25 01:25:38 UTC
*** Bug 700832 has been marked as a duplicate of this bug. ***
Comment 16 Larry the Git Cow gentoo-dev 2019-11-25 01:35:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aaed88e77bdfa5a236a9fd7a89084394598ab0a5

commit aaed88e77bdfa5a236a9fd7a89084394598ab0a5
Author:     Jimi Huotari <chiitoo@gentoo.org>
AuthorDate: 2019-11-24 23:19:55 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-11-25 01:35:28 +0000

    dev-qt/qtwayland: fix build with >=media-libs/mesa-19.3.0_rc4
    
    See also: https://bugreports.qt.io/browse/QTBUG-79709
    
    Reported-by: Ostashevskyi Viktor <ostash@ostash.kiev.ua>
    Closes: https://bugs.gentoo.org/699190
    Package-Manager: Portage-2.3.79, Repoman-2.3.18
    Signed-off-by: Jimi Huotari <chiitoo@gentoo.org>
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../qtwayland-5.13.2-fix-linuxdmabuf-build.patch   | 29 ++++++++++++++++++++++
 dev-qt/qtwayland/qtwayland-5.13.2-r1.ebuild        |  2 ++
 2 files changed, 31 insertions(+)