NVIDIA / egl-wayland

The EGLStream-based Wayland external platform
MIT License
275 stars 44 forks source link

1.1.8 fails to build #37

Closed heftig closed 2 years ago

heftig commented 2 years ago

I'm getting the following errors building for Arch Linux (with meson), where 1.1.7 built fine:

FAILED: src/libnvidia-egl-wayland.so.1.1.8.p/wayland-eglhandle.c.o 
cc -Isrc/libnvidia-egl-wayland.so.1.1.8.p -Isrc -I../egl-wayland/src -I../egl-wayland/include -I../egl-wayland/wayland-egl -Iwayland-eglstream -I/usr/include/EGL -flto=auto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -Wall -Werror -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wno-pedantic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ src/libnvidia-egl-wayland.so.1.1.8.p/wayland-eglhandle.c.o -MF src/libnvidia-egl-wayland.so.1.1.8.p/wayland-eglhandle.c.o.d -o src/libnvidia-egl-wayland.so.1.1.8.p/wayland-eglhandle.c.o -c ../egl-wayland/src/wayland-eglhandle.c
In file included from ../egl-wayland/src/wayland-eglhandle.c:23:
../egl-wayland/include/wayland-eglhandle.h:112:9: error: unknown type name ‘PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC’
  112 |         PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC      streamImageConsumerConnect;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../egl-wayland/include/wayland-eglhandle.h:113:9: error: unknown type name ‘PFNEGLSTREAMACQUIREIMAGENVPROC’
  113 |         PFNEGLSTREAMACQUIREIMAGENVPROC              streamAcquireImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../egl-wayland/include/wayland-eglhandle.h:114:9: error: unknown type name ‘PFNEGLSTREAMRELEASEIMAGENVPROC’
  114 |         PFNEGLSTREAMRELEASEIMAGENVPROC              streamReleaseImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../egl-wayland/include/wayland-eglhandle.h:115:9: error: unknown type name ‘PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC’
  115 |         PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC        queryStreamConsumerEvent;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../egl-wayland/src/wayland-eglhandle.c: In function ‘wlEglCreatePlatformData’:
../egl-wayland/src/wayland-eglhandle.c:100:22: error: assignment to ‘int’ from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion]
  100 |     res->egl._FIELD_ = driver->getProcAddress(#_NAME_)
      |                      ^
../egl-wayland/src/wayland-eglhandle.c:116:5: note: in expansion of macro ‘GET_PROC’
  116 |     GET_PROC(streamImageConsumerConnect,  eglStreamImageConsumerConnectNV);
      |     ^~~~~~~~
../egl-wayland/src/wayland-eglhandle.c:100:22: error: assignment to ‘int’ from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion]
  100 |     res->egl._FIELD_ = driver->getProcAddress(#_NAME_)
      |                      ^
../egl-wayland/src/wayland-eglhandle.c:117:5: note: in expansion of macro ‘GET_PROC’
  117 |     GET_PROC(streamAcquireImage,          eglStreamAcquireImageNV);
      |     ^~~~~~~~
../egl-wayland/src/wayland-eglhandle.c:100:22: error: assignment to ‘int’ from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion]
  100 |     res->egl._FIELD_ = driver->getProcAddress(#_NAME_)
      |                      ^
../egl-wayland/src/wayland-eglhandle.c:118:5: note: in expansion of macro ‘GET_PROC’
  118 |     GET_PROC(streamReleaseImage,          eglStreamReleaseImageNV);
      |     ^~~~~~~~
../egl-wayland/src/wayland-eglhandle.c:100:22: error: assignment to ‘int’ from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion]
  100 |     res->egl._FIELD_ = driver->getProcAddress(#_NAME_)
      |                      ^
../egl-wayland/src/wayland-eglhandle.c:119:5: note: in expansion of macro ‘GET_PROC’
  119 |     GET_PROC(queryStreamConsumerEvent,    eglQueryStreamConsumerEventNV);
      |     ^~~~~~~~

(the header errors are repeated for other files)

FAILED: src/libnvidia-egl-wayland.so.1.1.8.p/wayland-eglsurface.c.o 
cc -Isrc/libnvidia-egl-wayland.so.1.1.8.p -Isrc -I../egl-wayland/src -I../egl-wayland/include -I../egl-wayland/wayland-egl -Iwayland-eglstream -I/usr/include/EGL -flto=auto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -Wall -Werror -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wno-pedantic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ src/libnvidia-egl-wayland.so.1.1.8.p/wayland-eglsurface.c.o -MF src/libnvidia-egl-wayland.so.1.1.8.p/wayland-eglsurface.c.o.d -o src/libnvidia-egl-wayland.so.1.1.8.p/wayland-eglsurface.c.o -c ../egl-wayland/src/wayland-eglsurface.c
In file included from ../egl-wayland/include/wayland-egldisplay.h:31,
                 from ../egl-wayland/include/wayland-eglsurface.h:30,
                 from ../egl-wayland/src/wayland-eglsurface.c:23:
../egl-wayland/include/wayland-eglhandle.h:112:9: error: unknown type name ‘PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC’
  112 |         PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC      streamImageConsumerConnect;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../egl-wayland/include/wayland-eglhandle.h:113:9: error: unknown type name ‘PFNEGLSTREAMACQUIREIMAGENVPROC’
  113 |         PFNEGLSTREAMACQUIREIMAGENVPROC              streamAcquireImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../egl-wayland/include/wayland-eglhandle.h:114:9: error: unknown type name ‘PFNEGLSTREAMRELEASEIMAGENVPROC’
  114 |         PFNEGLSTREAMRELEASEIMAGENVPROC              streamReleaseImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../egl-wayland/include/wayland-eglhandle.h:115:9: error: unknown type name ‘PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC’
  115 |         PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC        queryStreamConsumerEvent;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../egl-wayland/src/wayland-eglsurface.c: In function ‘stream_local_buffer_release_callback’:
../egl-wayland/src/wayland-eglsurface.c:937:9: error: called object is not a function or function pointer
  937 |         data->egl.streamReleaseImage(display->devDpy->eglDisplay,
      |         ^~~~
../egl-wayland/src/wayland-eglsurface.c: In function ‘acquire_surface_image’:
../egl-wayland/src/wayland-eglsurface.c:974:10: error: called object is not a function or function pointer
  974 |     if (!data->egl.streamAcquireImage(dpy,
      |          ^~~~
../egl-wayland/src/wayland-eglsurface.c:1057:5: error: called object is not a function or function pointer
 1057 |     data->egl.streamReleaseImage(dpy,
      |     ^~~~
../egl-wayland/src/wayland-eglsurface.c: In function ‘add_surface_image’:
../egl-wayland/src/wayland-eglsurface.c:1123:39: error: ‘EGL_STREAM_CONSUMER_IMAGE_NV’ undeclared (first use in this function); did you mean ‘EGL_STREAM_CONSUMER_NV’?
 1123 |                                       EGL_STREAM_CONSUMER_IMAGE_NV,
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                       EGL_STREAM_CONSUMER_NV
../egl-wayland/src/wayland-eglsurface.c:1123:39: note: each undeclared identifier is reported only once for each function it appears in
../egl-wayland/src/wayland-eglsurface.c: In function ‘wlEglHandleImageStreamEvents’:
../egl-wayland/src/wayland-eglsurface.c:1206:15: error: called object is not a function or function pointer
 1206 |         err = data->egl.queryStreamConsumerEvent(dpy,
      |               ^~~~
../egl-wayland/src/wayland-eglsurface.c:1226:14: error: ‘EGL_STREAM_IMAGE_AVAILABLE_NV’ undeclared (first use in this function)
 1226 |         case EGL_STREAM_IMAGE_AVAILABLE_NV:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../egl-wayland/src/wayland-eglsurface.c:1229:14: error: ‘EGL_STREAM_IMAGE_ADD_NV’ undeclared (first use in this function); did you mean ‘EGL_STREAM_DMA_SERVER_NV’?
 1229 |         case EGL_STREAM_IMAGE_ADD_NV:
      |              ^~~~~~~~~~~~~~~~~~~~~~~
      |              EGL_STREAM_DMA_SERVER_NV
../egl-wayland/src/wayland-eglsurface.c:1233:14: error: ‘EGL_STREAM_IMAGE_REMOVE_NV’ undeclared (first use in this function); did you mean ‘EGL_STREAM_DMA_SERVER_NV’?
 1233 |         case EGL_STREAM_IMAGE_REMOVE_NV:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |              EGL_STREAM_DMA_SERVER_NV
../egl-wayland/src/wayland-eglsurface.c: In function ‘create_surface_stream_local’:
../egl-wayland/src/wayland-eglsurface.c:1280:10: error: called object is not a function or function pointer
 1280 |     if (!data->egl.streamImageConsumerConnect(dpy,
      |          ^~~~
At top level:
../egl-wayland/src/wayland-eglsurface.c:1245:15: error: ‘create_surface_stream_local’ defined but not used [-Werror=unused-function]
 1245 | static EGLint create_surface_stream_local(WlEglSurface *surface)
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
czapnaper commented 2 years ago

I had the same errors but when I updated libglvnd to 1.3.4 version, build fine.

Name            : egl-wayland
Version         : 1.1.8-1
Description     : EGLStream-based Wayland external platform
Architecture    : x86_64
URL             : https://github.com/NVIDIA/egl-wayland
Licenses        : MIT
Groups          : None
Provides        : libnvidia-egl-wayland.so=1-64
Depends On      : wayland  eglexternalplatform
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 69.12 KiB
Packager        : Unknown Packager
Build Date      : Mon Sep 6 21:53:38 2021
Install Date    : Mon Sep 6 21:53:53 2021
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None
heftig commented 2 years ago

Building against the newer libglvnd does work, thanks.

The build should check whether the dependency is fulfilled, though, instead of allowing compilation to fail.

cubanismo commented 2 years ago

Yes, you'll need a relatively new eglext.h to build the latest version. However, since I'm not clear libglvnd is always the source of this file, I didn't bump its version requirement. The origin of this file on your build system probably depends on your distro/environment, and there's no increased GLVND requirement at runtime as far as I'm aware.

heftig commented 2 years ago

You could still check whether the header contains the symbol you want. Meson has cc.has_header_symbol for this purpose.

Apteryks commented 2 years ago

I have a similar problem building on GNU Guix; both with Autotools or Meson:

starting phase `configure'
source directory: "/tmp/guix-build-egl-wayland-1.1.9.drv-0/source" (relative from build: ".")
build directory: "/tmp/guix-build-egl-wayland-1.1.9.drv-0/source"
configure flags: ("CONFIG_SHELL=/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash" "SHELL=/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash" "--prefix=/gnu/store/v8gbv25kq3ahv7z338aqihx86dznl90h-egl-wayland-1.1.9" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu")
checking whether to enable debugging... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /gnu/store/ldkm5jwql0qsrfh3ax6rljjsrk0jzv7z-grep-3.6/bin/grep
checking for egrep... /gnu/store/ldkm5jwql0qsrfh3ax6rljjsrk0jzv7z-grep-3.6/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /gnu/store/25gv43v5rm05i26z39ajrd6nsxa5r461-coreutils-8.32/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /gnu/store/25gv43v5rm05i26z39ajrd6nsxa5r461-coreutils-8.32/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking for pkg-config... /gnu/store/wc7lqi6kgki5qzr01g3gvriwdadjiwpc-pkg-config-0.29.2/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /gnu/store/7cddr79rydhc1m4hxr921mq17pz1jj3z-sed-4.8/bin/sed
checking for fgrep... /gnu/store/ldkm5jwql0qsrfh3ax6rljjsrk0jzv7z-grep-3.6/bin/grep -F
checking for ld used by gcc... /gnu/store/k452f0r5bk6n0cbsf5ndxbp5qcf6bpfw-ld-wrapper-0/bin/ld
checking if the linker (/gnu/store/k452f0r5bk6n0cbsf5ndxbp5qcf6bpfw-ld-wrapper-0/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /gnu/store/6mqcv52gwn2dnbislgv9k99525mzmrrs-binutils-2.37/bin/nm -B
checking the name lister (/gnu/store/6mqcv52gwn2dnbislgv9k99525mzmrrs-binutils-2.37/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /gnu/store/k452f0r5bk6n0cbsf5ndxbp5qcf6bpfw-ld-wrapper-0/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /gnu/store/6mqcv52gwn2dnbislgv9k99525mzmrrs-binutils-2.37/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /gnu/store/25gv43v5rm05i26z39ajrd6nsxa5r461-coreutils-8.32/bin/dd
checking how to truncate binary pipes... /gnu/store/25gv43v5rm05i26z39ajrd6nsxa5r461-coreutils-8.32/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/gnu/store/k452f0r5bk6n0cbsf5ndxbp5qcf6bpfw-ld-wrapper-0/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /gnu/store/k452f0r5bk6n0cbsf5ndxbp5qcf6bpfw-ld-wrapper-0/bin/ld -m elf_x86_64
checking if the linker (/gnu/store/k452f0r5bk6n0cbsf5ndxbp5qcf6bpfw-ld-wrapper-0/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/gnu/store/k452f0r5bk6n0cbsf5ndxbp5qcf6bpfw-ld-wrapper-0/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/gnu/store/k452f0r5bk6n0cbsf5ndxbp5qcf6bpfw-ld-wrapper-0/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for wayland-scanner... /gnu/store/6c4rychm7rcarmc3spd4kc9hg1l4lybw-wayland-1.19.0/bin/wayland-scanner
checking for wayland-protocols >= 1.8... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for eglexternalplatform >= 1.1 eglexternalplatform < 2... yes
checking for wayland-server wayland-client wayland-egl-backend >= 3... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking for inline... inline
checking for int32_t... yes
checking for size_t... yes
checking for uint32_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for getpagesize... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strstr... yes
checking whether C compiler accepts -fvisibility=hidden... yes
checking whether the linker accepts -Xlinker --no-undefined... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating wayland-eglstream.pc
config.status: creating wayland-eglstream-protocols.pc
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

    Version                 1.1.9
    Prefix                  /gnu/store/v8gbv25kq3ahv7z338aqihx86dznl90h-egl-wayland-1.1.9

phase `configure' succeeded after 2.3 seconds
starting phase `patch-generated-file-shebangs'
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `build'
make  all-am
make[1]: Entering directory '/tmp/guix-build-egl-wayland-1.1.9.drv-0/source'
/gnu/store/6c4rychm7rcarmc3spd4kc9hg1l4lybw-wayland-1.19.0/bin/wayland-scanner public-code < wayland-eglstream/wayland-eglstream-controller.xml > wayland-eglstream/wayland-eglstream-controller-protocol.c
/gnu/store/6c4rychm7rcarmc3spd4kc9hg1l4lybw-wayland-1.19.0/bin/wayland-scanner public-code < wayland-drm/wayland-drm.xml > wayland-drm/wayland-drm-protocol.c
/gnu/store/6c4rychm7rcarmc3spd4kc9hg1l4lybw-wayland-1.19.0/bin/wayland-scanner private-code < wayland-eglstream/wayland-eglstream.xml > wayland-eglstream/wayland-eglstream-protocol.c
/gnu/store/6c4rychm7rcarmc3spd4kc9hg1l4lybw-wayland-1.19.0/bin/wayland-scanner client-header < wayland-eglstream/wayland-eglstream.xml > wayland-eglstream/wayland-eglstream-client-protocol.h
/gnu/store/6c4rychm7rcarmc3spd4kc9hg1l4lybw-wayland-1.19.0/bin/wayland-scanner client-header < wayland-eglstream/wayland-eglstream-controller.xml > wayland-eglstream/wayland-eglstream-controller-client-protocol.h
/gnu/store/6c4rychm7rcarmc3spd4kc9hg1l4lybw-wayland-1.19.0/bin/wayland-scanner server-header < wayland-eglstream/wayland-eglstream.xml > wayland-eglstream/wayland-eglstream-server-protocol.h
/gnu/store/6c4rychm7rcarmc3spd4kc9hg1l4lybw-wayland-1.19.0/bin/wayland-scanner server-header < wayland-drm/wayland-drm.xml > wayland-drm/wayland-drm-server-protocol.h
/gnu/store/6c4rychm7rcarmc3spd4kc9hg1l4lybw-wayland-1.19.0/bin/wayland-scanner client-header < //gnu/store/xqf69p2lmdan1m82ry4x6jadgp5nrx6a-wayland-protocols-1.23/share/wayland-protocols/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml > linux-dmabuf-unstable-v1-client-protocol.h
/gnu/store/6c4rychm7rcarmc3spd4kc9hg1l4lybw-wayland-1.19.0/bin/wayland-scanner private-code < //gnu/store/xqf69p2lmdan1m82ry4x6jadgp5nrx6a-wayland-protocols-1.23/share/wayland-protocols/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml > linux-dmabuf-unstable-v1-protocol.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT libnvidia_egl_wayland_la-linux-dmabuf-unstable-v1-protocol.lo -MD -MP -MF .deps/libnvidia_egl_wayland_la-linux-dmabuf-unstable-v1-protocol.Tpo -c -o libnvidia_egl_wayland_la-linux-dmabuf-unstable-v1-protocol.lo `test -f 'linux-dmabuf-unstable-v1-protocol.c' || echo './'`linux-dmabuf-unstable-v1-protocol.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-thread.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-thread.Tpo -c -o src/libnvidia_egl_wayland_la-wayland-thread.lo `test -f 'src/wayland-thread.c' || echo './'`src/wayland-thread.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-egldevice.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-egldevice.Tpo -c -o src/libnvidia_egl_wayland_la-wayland-egldevice.lo `test -f 'src/wayland-egldevice.c' || echo './'`src/wayland-egldevice.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-egldisplay.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-egldisplay.Tpo -c -o src/libnvidia_egl_wayland_la-wayland-egldisplay.lo `test -f 'src/wayland-egldisplay.c' || echo './'`src/wayland-egldisplay.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-eglstream.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-eglstream.Tpo -c -o src/libnvidia_egl_wayland_la-wayland-eglstream.lo `test -f 'src/wayland-eglstream.c' || echo './'`src/wayland-eglstream.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-eglstream-server.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-eglstream-server.Tpo -c -o src/libnvidia_egl_wayland_la-wayland-eglstream-server.lo `test -f 'src/wayland-eglstream-server.c' || echo './'`src/wayland-eglstream-server.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-eglsurface.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-eglsurface.Tpo -c -o src/libnvidia_egl_wayland_la-wayland-eglsurface.lo `test -f 'src/wayland-eglsurface.c' || echo './'`src/wayland-eglsurface.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-eglswap.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-eglswap.Tpo -c -o src/libnvidia_egl_wayland_la-wayland-eglswap.lo `test -f 'src/wayland-eglswap.c' || echo './'`src/wayland-eglswap.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-eglutils.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-eglutils.Tpo -c -o src/libnvidia_egl_wayland_la-wayland-eglutils.lo `test -f 'src/wayland-eglutils.c' || echo './'`src/wayland-eglutils.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-eglhandle.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-eglhandle.Tpo -c -o src/libnvidia_egl_wayland_la-wayland-eglhandle.lo `test -f 'src/wayland-eglhandle.c' || echo './'`src/wayland-eglhandle.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-drm.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-drm.Tpo -c -o src/libnvidia_egl_wayland_la-wayland-drm.lo `test -f 'src/wayland-drm.c' || echo './'`src/wayland-drm.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-external-exports.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-external-exports.Tpo -c -o src/libnvidia_egl_wayland_la-wayland-external-exports.lo `test -f 'src/wayland-external-exports.c' || echo './'`src/wayland-external-exports.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT wayland-eglstream/libnvidia_egl_wayland_la-wayland-eglstream-controller-protocol.lo -MD -MP -MF wayland-eglstream/.deps/libnvidia_egl_wayland_la-wayland-eglstream-controller-protocol.Tpo -c -o wayland-eglstream/libnvidia_egl_wayland_la-wayland-eglstream-controller-protocol.lo `test -f 'wayland-eglstream/wayland-eglstream-controller-protocol.c' || echo './'`wayland-eglstream/wayland-eglstream-controller-protocol.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT wayland-drm/libnvidia_egl_wayland_la-wayland-drm-protocol.lo -MD -MP -MF wayland-drm/.deps/libnvidia_egl_wayland_la-wayland-drm-protocol.Tpo -c -o wayland-drm/libnvidia_egl_wayland_la-wayland-drm-protocol.lo `test -f 'wayland-drm/wayland-drm-protocol.c' || echo './'`wayland-drm/wayland-drm-protocol.c
/gnu/store/vx6vfbmmazvfi7vp8xyjn2mcyylvw9gn-bash-minimal-5.1.8/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL  -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT wayland-eglstream/libnvidia_egl_wayland_la-wayland-eglstream-protocol.lo -MD -MP -MF wayland-eglstream/.deps/libnvidia_egl_wayland_la-wayland-eglstream-protocol.Tpo -c -o wayland-eglstream/libnvidia_egl_wayland_la-wayland-eglstream-protocol.lo `test -f 'wayland-eglstream/wayland-eglstream-protocol.c' || echo './'`wayland-eglstream/wayland-eglstream-protocol.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-thread.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-thread.Tpo -c src/wayland-thread.c  -fPIC -DPIC -o src/.libs/libnvidia_egl_wayland_la-wayland-thread.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-egldevice.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-egldevice.Tpo -c src/wayland-egldevice.c  -fPIC -DPIC -o src/.libs/libnvidia_egl_wayland_la-wayland-egldevice.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-eglstream-server.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-eglstream-server.Tpo -c src/wayland-eglstream-server.c  -fPIC -DPIC -o src/.libs/libnvidia_egl_wayland_la-wayland-eglstream-server.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-eglswap.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-eglswap.Tpo -c src/wayland-eglswap.c  -fPIC -DPIC -o src/.libs/libnvidia_egl_wayland_la-wayland-eglswap.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-drm.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-drm.Tpo -c src/wayland-drm.c  -fPIC -DPIC -o src/.libs/libnvidia_egl_wayland_la-wayland-drm.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-external-exports.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-external-exports.Tpo -c src/wayland-external-exports.c  -fPIC -DPIC -o src/.libs/libnvidia_egl_wayland_la-wayland-external-exports.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT wayland-eglstream/libnvidia_egl_wayland_la-wayland-eglstream-protocol.lo -MD -MP -MF wayland-eglstream/.deps/libnvidia_egl_wayland_la-wayland-eglstream-protocol.Tpo -c wayland-eglstream/wayland-eglstream-protocol.c  -fPIC -DPIC -o wayland-eglstream/.libs/libnvidia_egl_wayland_la-wayland-eglstream-protocol.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT libnvidia_egl_wayland_la-linux-dmabuf-unstable-v1-protocol.lo -MD -MP -MF .deps/libnvidia_egl_wayland_la-linux-dmabuf-unstable-v1-protocol.Tpo -c linux-dmabuf-unstable-v1-protocol.c  -fPIC -DPIC -o .libs/libnvidia_egl_wayland_la-linux-dmabuf-unstable-v1-protocol.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-egldisplay.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-egldisplay.Tpo -c src/wayland-egldisplay.c  -fPIC -DPIC -o src/.libs/libnvidia_egl_wayland_la-wayland-egldisplay.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-eglsurface.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-eglsurface.Tpo -c src/wayland-eglsurface.c  -fPIC -DPIC -o src/.libs/libnvidia_egl_wayland_la-wayland-eglsurface.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-eglstream.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-eglstream.Tpo -c src/wayland-eglstream.c  -fPIC -DPIC -o src/.libs/libnvidia_egl_wayland_la-wayland-eglstream.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-eglutils.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-eglutils.Tpo -c src/wayland-eglutils.c  -fPIC -DPIC -o src/.libs/libnvidia_egl_wayland_la-wayland-eglutils.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT src/libnvidia_egl_wayland_la-wayland-eglhandle.lo -MD -MP -MF src/.deps/libnvidia_egl_wayland_la-wayland-eglhandle.Tpo -c src/wayland-eglhandle.c  -fPIC -DPIC -o src/.libs/libnvidia_egl_wayland_la-wayland-eglhandle.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT wayland-eglstream/libnvidia_egl_wayland_la-wayland-eglstream-controller-protocol.lo -MD -MP -MF wayland-eglstream/.deps/libnvidia_egl_wayland_la-wayland-eglstream-controller-protocol.Tpo -c wayland-eglstream/wayland-eglstream-controller-protocol.c  -fPIC -DPIC -o wayland-eglstream/.libs/libnvidia_egl_wayland_la-wayland-eglstream-controller-protocol.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT wayland-drm/libnvidia_egl_wayland_la-wayland-drm-protocol.lo -MD -MP -MF wayland-drm/.deps/libnvidia_egl_wayland_la-wayland-drm-protocol.Tpo -c wayland-drm/wayland-drm-protocol.c  -fPIC -DPIC -o wayland-drm/.libs/libnvidia_egl_wayland_la-wayland-drm-protocol.o
In file included from ./include/wayland-eglswap.h:28,
                 from src/wayland-eglswap.c:23:
./include/wayland-eglhandle.h:113:9: error: unknown type name ‘PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC’
  113 |         PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC      streamImageConsumerConnect;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:114:9: error: unknown type name ‘PFNEGLSTREAMACQUIREIMAGENVPROC’
  114 |         PFNEGLSTREAMACQUIREIMAGENVPROC              streamAcquireImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:115:9: error: unknown type name ‘PFNEGLSTREAMRELEASEIMAGENVPROC’
  115 |         PFNEGLSTREAMRELEASEIMAGENVPROC              streamReleaseImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:116:9: error: unknown type name ‘PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC’
  116 |         PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC        queryStreamConsumerEvent;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/wayland-egldevice.h:30,
                 from src/wayland-egldevice.c:23:
./include/wayland-eglhandle.h:113:9: error: unknown type name ‘PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC’
  113 |         PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC      streamImageConsumerConnect;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:114:9: error: unknown type name ‘PFNEGLSTREAMACQUIREIMAGENVPROC’
  114 |         PFNEGLSTREAMACQUIREIMAGENVPROC              streamAcquireImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:115:9: error: unknown type name ‘PFNEGLSTREAMRELEASEIMAGENVPROC’
  115 |         PFNEGLSTREAMRELEASEIMAGENVPROC              streamReleaseImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:116:9: error: unknown type name ‘PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC’
  116 |         PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC        queryStreamConsumerEvent;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/wayland-egldisplay.h:31,
                 from src/wayland-thread.c:29:
./include/wayland-eglhandle.h:113:9: error: unknown type name ‘PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC’
  113 |         PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC      streamImageConsumerConnect;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:114:9: error: unknown type name ‘PFNEGLSTREAMACQUIREIMAGENVPROC’
  114 |         PFNEGLSTREAMACQUIREIMAGENVPROC              streamAcquireImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:115:9: error: unknown type name ‘PFNEGLSTREAMRELEASEIMAGENVPROC’
  115 |         PFNEGLSTREAMRELEASEIMAGENVPROC              streamReleaseImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:116:9: error: unknown type name ‘PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC’
  116 |         PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC        queryStreamConsumerEvent;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/wayland-egldisplay.h:31,
                 from src/wayland-external-exports.c:25:
./include/wayland-eglhandle.h:113:9: error: unknown type name ‘PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC’
  113 |         PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC      streamImageConsumerConnect;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:114:9: error: unknown type name ‘PFNEGLSTREAMACQUIREIMAGENVPROC’
  114 |         PFNEGLSTREAMACQUIREIMAGENVPROC              streamAcquireImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:115:9: error: unknown type name ‘PFNEGLSTREAMRELEASEIMAGENVPROC’
  115 |         PFNEGLSTREAMRELEASEIMAGENVPROC              streamReleaseImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:116:9: error: unknown type name ‘PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC’
  116 |         PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC        queryStreamConsumerEvent;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/wayland-eglhandle.c:23:
./include/wayland-eglhandle.h:113:9: error: unknown type name ‘PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC’
  113 |         PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC      streamImageConsumerConnect;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:114:9: error: unknown type name ‘PFNEGLSTREAMACQUIREIMAGENVPROC’
  114 |         PFNEGLSTREAMACQUIREIMAGENVPROC              streamAcquireImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:115:9: error: unknown type name ‘PFNEGLSTREAMRELEASEIMAGENVPROC’
  115 |         PFNEGLSTREAMRELEASEIMAGENVPROC              streamReleaseImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:116:9: error: unknown type name ‘PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC’
  116 |         PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC        queryStreamConsumerEvent;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT wayland-eglstream/libnvidia_egl_wayland_la-wayland-eglstream-protocol.lo -MD -MP -MF wayland-eglstream/.deps/libnvidia_egl_wayland_la-wayland-eglstream-protocol.Tpo -c wayland-eglstream/wayland-eglstream-protocol.c -o wayland-eglstream/libnvidia_egl_wayland_la-wayland-eglstream-protocol.o >/dev/null 2>&1
In file included from ./include/wayland-egldisplay.h:31,
                 from src/wayland-egldisplay.c:23:
./include/wayland-eglhandle.h:113:9: error: unknown type name ‘PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC’
  113 |         PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC      streamImageConsumerConnect;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:114:9: error: unknown type name ‘PFNEGLSTREAMACQUIREIMAGENVPROC’
  114 |         PFNEGLSTREAMACQUIREIMAGENVPROC              streamAcquireImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:115:9: error: unknown type name ‘PFNEGLSTREAMRELEASEIMAGENVPROC’
  115 |         PFNEGLSTREAMRELEASEIMAGENVPROC              streamReleaseImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:116:9: error: unknown type name ‘PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC’
  116 |         PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC        queryStreamConsumerEvent;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:719: src/libnvidia_egl_wayland_la-wayland-thread.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from ./include/wayland-eglstream-server.h:29,
                 from src/wayland-drm.c:27:
./include/wayland-eglhandle.h:113:9: error: unknown type name ‘PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC’
  113 |         PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC      streamImageConsumerConnect;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:114:9: error: unknown type name ‘PFNEGLSTREAMACQUIREIMAGENVPROC’
  114 |         PFNEGLSTREAMACQUIREIMAGENVPROC              streamAcquireImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:115:9: error: unknown type name ‘PFNEGLSTREAMRELEASEIMAGENVPROC’
  115 |         PFNEGLSTREAMRELEASEIMAGENVPROC              streamReleaseImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:116:9: error: unknown type name ‘PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC’
  116 |         PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC        queryStreamConsumerEvent;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT libnvidia_egl_wayland_la-linux-dmabuf-unstable-v1-protocol.lo -MD -MP -MF .deps/libnvidia_egl_wayland_la-linux-dmabuf-unstable-v1-protocol.Tpo -c linux-dmabuf-unstable-v1-protocol.c -o libnvidia_egl_wayland_la-linux-dmabuf-unstable-v1-protocol.o >/dev/null 2>&1
In file included from ./include/wayland-eglstream-server.h:29,
                 from src/wayland-eglstream.c:24:
./include/wayland-eglhandle.h:113:9: error: unknown type name ‘PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC’
  113 |         PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC      streamImageConsumerConnect;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:114:9: error: unknown type name ‘PFNEGLSTREAMACQUIREIMAGENVPROC’
  114 |         PFNEGLSTREAMACQUIREIMAGENVPROC              streamAcquireImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:115:9: error: unknown type name ‘PFNEGLSTREAMRELEASEIMAGENVPROC’
  115 |         PFNEGLSTREAMRELEASEIMAGENVPROC              streamReleaseImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:116:9: error: unknown type name ‘PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC’
  116 |         PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC        queryStreamConsumerEvent;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:726: src/libnvidia_egl_wayland_la-wayland-egldevice.lo] Error 1
In file included from ./include/wayland-egldisplay.h:31,
                 from ./include/wayland-eglsurface.h:30,
                 from src/wayland-eglsurface.c:23:
./include/wayland-eglhandle.h:113:9: error: unknown type name ‘PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC’
  113 |         PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC      streamImageConsumerConnect;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:761: src/libnvidia_egl_wayland_la-wayland-eglswap.lo] Error 1
./include/wayland-eglhandle.h:114:9: error: unknown type name ‘PFNEGLSTREAMACQUIREIMAGENVPROC’
  114 |         PFNEGLSTREAMACQUIREIMAGENVPROC              streamAcquireImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:115:9: error: unknown type name ‘PFNEGLSTREAMRELEASEIMAGENVPROC’
  115 |         PFNEGLSTREAMRELEASEIMAGENVPROC              streamReleaseImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:116:9: error: unknown type name ‘PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC’
  116 |         PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC        queryStreamConsumerEvent;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:789: src/libnvidia_egl_wayland_la-wayland-external-exports.lo] Error 1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT wayland-eglstream/libnvidia_egl_wayland_la-wayland-eglstream-controller-protocol.lo -MD -MP -MF wayland-eglstream/.deps/libnvidia_egl_wayland_la-wayland-eglstream-controller-protocol.Tpo -c wayland-eglstream/wayland-eglstream-controller-protocol.c -o wayland-eglstream/libnvidia_egl_wayland_la-wayland-eglstream-controller-protocol.o >/dev/null 2>&1
src/wayland-drm.c: In function ‘wl_drm_display_bind’:
src/wayland-drm.c:184:50: error: ‘EGL_DRM_RENDER_NODE_FILE_EXT’ undeclared (first use in this function); did you mean ‘EGL_DRM_DEVICE_FILE_EXT’?
  184 |                                                  EGL_DRM_RENDER_NODE_FILE_EXT);
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                  EGL_DRM_DEVICE_FILE_EXT
src/wayland-drm.c:184:50: note: each undeclared identifier is reported only once for each function it appears in
src/wayland-eglhandle.c: In function ‘wlEglCreatePlatformData’:
src/wayland-eglhandle.c:104:22: error: assignment to ‘int’ from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion]
  104 |     res->egl._FIELD_ = driver->getProcAddress(#_NAME_)
      |                      ^
src/wayland-eglhandle.c:118:5: note: in expansion of macro ‘GET_PROC’
  118 |     GET_PROC(streamImageConsumerConnect,  eglStreamImageConsumerConnectNV);
      |     ^~~~~~~~
src/wayland-eglhandle.c:104:22: error: assignment to ‘int’ from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion]
  104 |     res->egl._FIELD_ = driver->getProcAddress(#_NAME_)
      |                      ^
src/wayland-eglhandle.c:119:5: note: in expansion of macro ‘GET_PROC’
  119 |     GET_PROC(streamAcquireImage,          eglStreamAcquireImageNV);
      |     ^~~~~~~~
src/wayland-eglhandle.c:104:22: error: assignment to ‘int’ from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion]
  104 |     res->egl._FIELD_ = driver->getProcAddress(#_NAME_)
      |                      ^
src/wayland-eglhandle.c:120:5: note: in expansion of macro ‘GET_PROC’
  120 |     GET_PROC(streamReleaseImage,          eglStreamReleaseImageNV);
      |     ^~~~~~~~
src/wayland-eglhandle.c:104:22: error: assignment to ‘int’ from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion]
  104 |     res->egl._FIELD_ = driver->getProcAddress(#_NAME_)
      |                      ^
src/wayland-eglhandle.c:121:5: note: in expansion of macro ‘GET_PROC’
  121 |     GET_PROC(queryStreamConsumerEvent,    eglQueryStreamConsumerEventNV);
      |     ^~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./wayland-egl -I./include -I./wayland-eglstream -I./wayland-drm -pthread -I/gnu/store/afml58hz4raxvq03pb63dpdmxxv5r3w3-eglexternalplatform-1.1/include/EGL -fvisibility=hidden -DWL_HIDE_DEPRECATED -Wall -Werror -include config.h -MT wayland-drm/libnvidia_egl_wayland_la-wayland-drm-protocol.lo -MD -MP -MF wayland-drm/.deps/libnvidia_egl_wayland_la-wayland-drm-protocol.Tpo -c wayland-drm/wayland-drm-protocol.c -o wayland-drm/libnvidia_egl_wayland_la-wayland-drm-protocol.o >/dev/null 2>&1
cc1: all warnings being treated as errors
make[1]: *** [Makefile:782: src/libnvidia_egl_wayland_la-wayland-drm.lo] Error 1
make[1]: *** [Makefile:775: src/libnvidia_egl_wayland_la-wayland-eglhandle.lo] Error 1
In file included from ./include/wayland-eglutils.h:29,
                 from src/wayland-eglutils.c:27:
./include/wayland-eglhandle.h:113:9: error: unknown type name ‘PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC’
  113 |         PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC      streamImageConsumerConnect;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:114:9: error: unknown type name ‘PFNEGLSTREAMACQUIREIMAGENVPROC’
  114 |         PFNEGLSTREAMACQUIREIMAGENVPROC              streamAcquireImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:115:9: error: unknown type name ‘PFNEGLSTREAMRELEASEIMAGENVPROC’
  115 |         PFNEGLSTREAMRELEASEIMAGENVPROC              streamReleaseImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:116:9: error: unknown type name ‘PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC’
  116 |         PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC        queryStreamConsumerEvent;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:740: src/libnvidia_egl_wayland_la-wayland-eglstream.lo] Error 1
make[1]: *** [Makefile:733: src/libnvidia_egl_wayland_la-wayland-egldisplay.lo] Error 1
src/wayland-eglsurface.c: In function ‘stream_local_buffer_release_callback’:
src/wayland-eglsurface.c:937:9: error: called object is not a function or function pointer
  937 |         data->egl.streamReleaseImage(display->devDpy->eglDisplay,
      |         ^~~~
src/wayland-eglsurface.c: In function ‘acquire_surface_image’:
src/wayland-eglsurface.c:974:10: error: called object is not a function or function pointer
  974 |     if (!data->egl.streamAcquireImage(dpy,
      |          ^~~~
src/wayland-eglsurface.c:1057:5: error: called object is not a function or function pointer
 1057 |     data->egl.streamReleaseImage(dpy,
      |     ^~~~
src/wayland-eglsurface.c: In function ‘add_surface_image’:
src/wayland-eglsurface.c:1123:39: error: ‘EGL_STREAM_CONSUMER_IMAGE_NV’ undeclared (first use in this function); did you mean ‘EGL_STREAM_CONSUMER_NV’?
 1123 |                                       EGL_STREAM_CONSUMER_IMAGE_NV,
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                       EGL_STREAM_CONSUMER_NV
src/wayland-eglsurface.c:1123:39: note: each undeclared identifier is reported only once for each function it appears in
src/wayland-eglsurface.c: In function ‘wlEglHandleImageStreamEvents’:
src/wayland-eglsurface.c:1206:15: error: called object is not a function or function pointer
 1206 |         err = data->egl.queryStreamConsumerEvent(dpy,
      |               ^~~~
In file included from ./include/wayland-eglstream-server.h:29,
                 from src/wayland-eglstream-server.c:38:
./include/wayland-eglhandle.h:113:9: error: unknown type name ‘PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC’
  113 |         PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC      streamImageConsumerConnect;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:114:9: error: unknown type name ‘PFNEGLSTREAMACQUIREIMAGENVPROC’
  114 |         PFNEGLSTREAMACQUIREIMAGENVPROC              streamAcquireImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:115:9: error: unknown type name ‘PFNEGLSTREAMRELEASEIMAGENVPROC’
  115 |         PFNEGLSTREAMRELEASEIMAGENVPROC              streamReleaseImage;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/wayland-eglhandle.h:116:9: error: unknown type name ‘PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC’
  116 |         PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC        queryStreamConsumerEvent;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/wayland-eglsurface.c:1226:14: error: ‘EGL_STREAM_IMAGE_AVAILABLE_NV’ undeclared (first use in this function)
 1226 |         case EGL_STREAM_IMAGE_AVAILABLE_NV:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:768: src/libnvidia_egl_wayland_la-wayland-eglutils.lo] Error 1
mv -f wayland-eglstream/.deps/libnvidia_egl_wayland_la-wayland-eglstream-protocol.Tpo wayland-eglstream/.deps/libnvidia_egl_wayland_la-wayland-eglstream-protocol.Plo
src/wayland-eglsurface.c:1229:14: error: ‘EGL_STREAM_IMAGE_ADD_NV’ undeclared (first use in this function); did you mean ‘EGL_STREAM_DMA_SERVER_NV’?
 1229 |         case EGL_STREAM_IMAGE_ADD_NV:
      |              ^~~~~~~~~~~~~~~~~~~~~~~
      |              EGL_STREAM_DMA_SERVER_NV
make[1]: *** [Makefile:747: src/libnvidia_egl_wayland_la-wayland-eglstream-server.lo] Error 1
mv -f .deps/libnvidia_egl_wayland_la-linux-dmabuf-unstable-v1-protocol.Tpo .deps/libnvidia_egl_wayland_la-linux-dmabuf-unstable-v1-protocol.Plo
mv -f wayland-eglstream/.deps/libnvidia_egl_wayland_la-wayland-eglstream-controller-protocol.Tpo wayland-eglstream/.deps/libnvidia_egl_wayland_la-wayland-eglstream-controller-protocol.Plo
mv -f wayland-drm/.deps/libnvidia_egl_wayland_la-wayland-drm-protocol.Tpo wayland-drm/.deps/libnvidia_egl_wayland_la-wayland-drm-protocol.Plo
src/wayland-eglsurface.c:1233:14: error: ‘EGL_STREAM_IMAGE_REMOVE_NV’ undeclared (first use in this function); did you mean ‘EGL_STREAM_DMA_SERVER_NV’?
 1233 |         case EGL_STREAM_IMAGE_REMOVE_NV:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |              EGL_STREAM_DMA_SERVER_NV
src/wayland-eglsurface.c: In function ‘create_surface_stream_local’:
src/wayland-eglsurface.c:1280:10: error: called object is not a function or function pointer
 1280 |     if (!data->egl.streamImageConsumerConnect(dpy,
      |          ^~~~
At top level:
src/wayland-eglsurface.c:1245:15: error: ‘create_surface_stream_local’ defined but not used [-Werror=unused-function]
 1245 | static EGLint create_surface_stream_local(WlEglSurface *surface)
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:754: src/libnvidia_egl_wayland_la-wayland-eglsurface.lo] Error 1
make[1]: Leaving directory '/tmp/guix-build-egl-wayland-1.1.9.drv-0/source'
make: *** [Makefile:516: all] Error 2
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-j" "24" "V=1") exit-status: 2 term-signal: #f stop-signal: #f> 
phase `build' failed after 0.1 seconds
command "make" "-j" "24" "V=1" failed with status 2
builder for `/gnu/store/fiv4zvnxbpm0gyhd01a8mah1zf6vrqkq-egl-wayland-1.1.9.drv' failed with exit code 1
@ build-failed /gnu/store/fiv4zvnxbpm0gyhd01a8mah1zf6vrqkq-egl-wayland-1.1.9.drv - 1 builder for `/gnu/store/fiv4zvnxbpm0gyhd01a8mah1zf6vrqkq-egl-wayland-1.1.9.drv' failed with exit code 1
derivation '/gnu/store/fiv4zvnxbpm0gyhd01a8mah1zf6vrqkq-egl-wayland-1.1.9.drv' offloaded to 'raisin' failed: build of `/gnu/store/fiv4zvnxbpm0gyhd01a8mah1zf6vrqkq-egl-wayland-1.1.9.drv' failed
build of /gnu/store/fiv4zvnxbpm0gyhd01a8mah1zf6vrqkq-egl-wayland-1.1.9.drv failed
View build log at '/var/log/guix/drvs/fi/v4zvnxbpm0gyhd01a8mah1zf6vrqkq-egl-wayland-1.1.9.drv'.
guix build: error: build of `/gnu/store/fiv4zvnxbpm0gyhd01a8mah1zf6vrqkq-egl-wayland-1.1.9.drv' failed

Where are the symbols such as PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC supposed to be defined?

Thank you.

Apteryks commented 2 years ago

Perhaps due to this discrepancy between libglvnd (which I tried as it fixed OP's problem) and mesa-headers (which seems to be the proper home of EGL/eglext.h on my distribution):

$ diff -u /gnu/store/0m3iycfwknr5xiaqpsmlr8pzw09x84k0-libglvnd-1.3.4/include/EGL/eglext.h /gnu/store/x5l37y422qhwmmwmhdysfx04grcwqrps-mesa-headers-21.2.5/include/EGL/eglext.h
--- /gnu/store/0m3iycfwknr5xiaqpsmlr8pzw09x84k0-libglvnd-1.3.4/include/EGL/eglext.h     1969-12-31 19:00:01.000000000 -0500
+++ /gnu/store/x5l37y422qhwmmwmhdysfx04grcwqrps-mesa-headers-21.2.5/include/EGL/eglext.h        1969-12-31 19:00:01.000000000 -0500
@@ -6,20 +6,39 @@
 #endif

 /*
-** Copyright 2013-2020 The Khronos Group Inc.
-** SPDX-License-Identifier: Apache-2.0
+** Copyright (c) 2013-2017 The Khronos Group Inc.
 **
+** Permission is hereby granted, free of charge, to any person obtaining a
+** copy of this software and/or associated documentation files (the
+** "Materials"), to deal in the Materials without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Materials, and to
+** permit persons to whom the Materials are furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Materials.
+**
+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+*/
+/*
 ** This header is generated from the Khronos EGL XML API Registry.
 ** The current version of the Registry, generator scripts
 ** used to make the header, and the header can be found at
 **   http://www.khronos.org/registry/egl
 **
-** Khronos $Git commit SHA1: dc0b58dca5 $ on $Git commit date: 2021-06-25 01:58:50 +0200 $
+** Khronos $Git commit SHA1: b5409265f3 $ on $Git commit date: 2020-02-20 08:24:34 -0800 $
 */

 #include <EGL/eglplatform.h>

-#define EGL_EGLEXT_VERSION 20210629
+#define EGL_EGLEXT_VERSION 20200220

 /* Generated C header for:
  * API: egl
@@ -574,14 +593,6 @@
 #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
 #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */

-#ifndef EGL_ANGLE_sync_control_rate
-#define EGL_ANGLE_sync_control_rate 1
-typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETMSCRATEANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *numerator, EGLint *denominator);
-#ifdef EGL_EGLEXT_PROTOTYPES
-EGLAPI EGLBoolean EGLAPIENTRY eglGetMscRateANGLE (EGLDisplay dpy, EGLSurface surface, EGLint *numerator, EGLint *denominator);
-#endif
-#endif /* EGL_ANGLE_sync_control_rate */
-
 #ifndef EGL_ANGLE_window_fixed_size
 #define EGL_ANGLE_window_fixed_size 1
 #define EGL_FIXED_SIZE_ANGLE              0x3201
@@ -651,11 +662,6 @@
 #endif
 #endif /* EGL_EXT_compositor */

-#ifndef EGL_EXT_config_select_group
-#define EGL_EXT_config_select_group 1
-#define EGL_CONFIG_SELECT_GROUP_EXT       0x34C0
-#endif /* EGL_EXT_config_select_group */
-
 #ifndef EGL_EXT_create_context_robustness
 #define EGL_EXT_create_context_robustness 1
 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
@@ -688,11 +694,6 @@
 #define EGL_DRM_MASTER_FD_EXT             0x333C
 #endif /* EGL_EXT_device_drm */

-#ifndef EGL_EXT_device_drm_render_node
-#define EGL_EXT_device_drm_render_node 1
-#define EGL_DRM_RENDER_NODE_FILE_EXT      0x3377
-#endif /* EGL_EXT_device_drm_render_node */
-
 #ifndef EGL_EXT_device_enumeration
 #define EGL_EXT_device_enumeration 1
 #endif /* EGL_EXT_device_enumeration */
@@ -702,26 +703,10 @@
 #define EGL_OPENWF_DEVICE_ID_EXT          0x3237
 #endif /* EGL_EXT_device_openwf */

-#ifndef EGL_EXT_device_persistent_id
-#define EGL_EXT_device_persistent_id 1
-#define EGL_DEVICE_UUID_EXT               0x335C
-#define EGL_DRIVER_UUID_EXT               0x335D
-#define EGL_DRIVER_NAME_EXT               0x335E
-typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEBINARYEXTPROC) (EGLDeviceEXT device, EGLint name, EGLint max_size, void *value, EGLint *size);
-#ifdef EGL_EGLEXT_PROTOTYPES
-EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceBinaryEXT (EGLDeviceEXT device, EGLint name, EGLint max_size, void *value, EGLint *size);
-#endif
-#endif /* EGL_EXT_device_persistent_id */
-
 #ifndef EGL_EXT_device_query
 #define EGL_EXT_device_query 1
 #endif /* EGL_EXT_device_query */

-#ifndef EGL_EXT_device_query_name
-#define EGL_EXT_device_query_name 1
-#define EGL_RENDERER_EXT                  0x335F
-#endif /* EGL_EXT_device_query_name */
-
 #ifndef EGL_EXT_gl_colorspace_bt2020_linear
 #define EGL_EXT_gl_colorspace_bt2020_linear 1
 #define EGL_GL_COLORSPACE_BT2020_LINEAR_EXT 0x333F
@@ -898,16 +883,11 @@
 #define EGL_PLATFORM_X11_SCREEN_EXT       0x31D6
 #endif /* EGL_EXT_platform_x11 */

-#ifndef EGL_EXT_platform_xcb
-#define EGL_EXT_platform_xcb 1
+#ifndef EGL_MESA_platform_xcb
+#define EGL_MESA_platform_xcb 1
 #define EGL_PLATFORM_XCB_EXT              0x31DC
 #define EGL_PLATFORM_XCB_SCREEN_EXT       0x31DE
-#endif /* EGL_EXT_platform_xcb */
-
-#ifndef EGL_EXT_present_opaque
-#define EGL_EXT_present_opaque 1
-#define EGL_PRESENT_OPAQUE_EXT            0x31DF
-#endif /* EGL_EXT_present_opaque */
+#endif /* EGL_MESA_platform_xcb */

 #ifndef EGL_EXT_protected_content
 #define EGL_EXT_protected_content 1
@@ -1175,24 +1155,6 @@
 #define EGL_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x334C
 #endif /* EGL_NV_robustness_video_memory_purge */

-#ifndef EGL_NV_stream_consumer_eglimage
-#define EGL_NV_stream_consumer_eglimage 1
-#define EGL_STREAM_CONSUMER_IMAGE_NV      0x3373
-#define EGL_STREAM_IMAGE_ADD_NV           0x3374
-#define EGL_STREAM_IMAGE_REMOVE_NV        0x3375
-#define EGL_STREAM_IMAGE_AVAILABLE_NV     0x3376
-typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint num_modifiers, EGLuint64KHR *modifiers, EGLAttrib *attrib_list);
-typedef EGLint (EGLAPIENTRYP PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLTime timeout, EGLenum *event, EGLAttrib *aux);
-typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMACQUIREIMAGENVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLImage *pImage, EGLSync sync);
-typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMRELEASEIMAGENVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLImage image, EGLSync sync);
-#ifdef EGL_EGLEXT_PROTOTYPES
-EGLAPI EGLBoolean EGLAPIENTRY eglStreamImageConsumerConnectNV (EGLDisplay dpy, EGLStreamKHR stream, EGLint num_modifiers, EGLuint64KHR *modifiers, EGLAttrib *attrib_list);
-EGLAPI EGLint EGLAPIENTRY eglQueryStreamConsumerEventNV (EGLDisplay dpy, EGLStreamKHR stream, EGLTime timeout, EGLenum *event, EGLAttrib *aux);
-EGLAPI EGLBoolean EGLAPIENTRY eglStreamAcquireImageNV (EGLDisplay dpy, EGLStreamKHR stream, EGLImage *pImage, EGLSync sync);
-EGLAPI EGLBoolean EGLAPIENTRY eglStreamReleaseImageNV (EGLDisplay dpy, EGLStreamKHR stream, EGLImage image, EGLSync sync);
-#endif
-#endif /* EGL_NV_stream_consumer_eglimage */
-
 #ifndef EGL_NV_stream_consumer_gltexture_yuv
 #define EGL_NV_stream_consumer_gltexture_yuv 1
 #define EGL_YUV_PLANE0_TEXTURE_UNIT_NV    0x332C

But adding mesa-headers as an input doesn't help. Perhaps a pkg-config issue.

Apteryks commented 2 years ago

Uh; the build passed adding both libglvnd and mesa-headers; which seems dirty as they both provide EGL/eglext.h, no?