1.22.4: build fails: error: 'EGL_WAYLAND_BUFFER_WL' undeclared
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I./deprecated -I./winsys -I./driver/gl -I./driver/gl/gl -I./driver/gl/gles -DG_LOG_DOMAIN=\"Cogl\" -DCOGL_COMPILATION -DCOGL_GL_LIBNAME=\"libGL.so.1\" -DCOGL_GLES1_LIBNAME=\"\" -DCOGL_GLES2_LIBNAME=\"\" -DCOGL_LOCALEDIR=\""/usr/share/locale"\" -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libdrm -DCOGL_GL_DEBUG -DCOGL_OBJECT_DEBUG -DCOGL_ENABLE_DEBUG -Wall -Wcast-align -Wformat -Wformat-security -Werror=uninitialized -Werror=empty-body -Werror=init-self -Werror=undef -Werror=declaration-after-statement -Werror=vla -Werror=pointer-arith -Werror=missing-declarations -Werror=maybe-uninitialized -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -c -o cogl-texture-2d.lo cogl-texture-2d.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I./deprecated -I./winsys -I./driver/gl -I./driver/gl/gl -I./driver/gl/gles -DG_LOG_DOMAIN=\"Cogl\" -DCOGL_COMPILATION -DCOGL_GL_LIBNAME=\"libGL.so.1\" -DCOGL_GLES1_LIBNAME=\"\" -DCOGL_GLES2_LIBNAME=\"\" -DCOGL_LOCALEDIR=\"/usr/share/locale\" -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libdrm -DCOGL_GL_DEBUG -DCOGL_OBJECT_DEBUG -DCOGL_ENABLE_DEBUG -Wall -Wcast-align -Wformat -Wformat-security -Werror=uninitialized -Werror=empty-body -Werror=init-self -Werror=undef -Werror=declaration-after-statement -Werror=vla -Werror=pointer-arith -Werror=missing-declarations -Werror=maybe-uninitialized -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -c cogl-texture-2d.c -fPIC -DPIC -o .libs/cogl-texture-2d.o
cogl-texture-2d.c: In function 'cogl_wayland_texture_2d_new_from_buffer':
cogl-texture-2d.c:392:11: warning: implicit declaration of function '_cogl_egl_query_wayland_buffer' [-Wimplicit-function-declaration]
392 | if (_cogl_egl_query_wayland_buffer (ctx,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cogl-texture-2d.c:430:43: error: 'EGL_WAYLAND_BUFFER_WL' undeclared (first use in this function)
430 | EGL_WAYLAND_BUFFER_WL,
| ^~~~~~~~~~~~~~~~~~~~~
cogl-texture-2d.c:430:43: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [Makefile:1782: cogl-texture-2d.lo] Error 1
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cogl-1.22.4/cogl'
make[3]: *** [Makefile:1950: all-recursive] Error 1
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cogl-1.22.4/cogl'
make[2]: *** [Makefile:1365: all] Error 2
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cogl-1.22.4/cogl'
make[1]: *** [Makefile:597: all-recursive] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cogl-1.22.4'
Edited by Simon McVittie