[regression] error: 'DRM_FORMAT_INVALID' undeclared here (not in a function)
Since !346 (merged), gstreamer-vaapi fails to compile on Ubuntu Xenial:
15:50:33,084 INFO - execute (/opt/media/build/gstreamer-vaapi): meson --prefix="/opt/media/install" --libdir="/opt/media/install/lib" __meson_build (pid: 5484)
15:50:34,704 INFO - The Meson build system
15:50:34,704 INFO - Version: 0.52.1
15:50:34,704 INFO - Source dir: /opt/media/build/gstreamer-vaapi
15:50:34,704 INFO - Build dir: /opt/media/build/gstreamer-vaapi/__meson_build
15:50:34,704 INFO - Build type: native build
15:50:34,704 INFO - Project name: gstreamer-vaapi
15:50:34,704 INFO - Project version: 1.17.2.1
15:50:34,704 INFO - Appending CFLAGS from environment: '-g3'
15:50:34,704 INFO - Appending LDFLAGS from environment: ['-L/opt/media/install/lib']
15:50:34,704 INFO - Appending CPPFLAGS from environment: '-I/opt/media/install/include'
15:50:34,704 INFO - Appending CFLAGS from environment: '-g3'
15:50:34,704 INFO - Appending LDFLAGS from environment: ['-L/opt/media/install/lib']
15:50:34,704 INFO - Appending CPPFLAGS from environment: '-I/opt/media/install/include'
15:50:34,704 INFO - C compiler for the host machine: ccache cc (gcc 5.4.0 "cc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609")
15:50:34,704 INFO - C linker for the host machine: GNU ld.bfd 2.26.1
15:50:34,704 INFO - Host machine cpu family: x86_64
15:50:34,704 INFO - Host machine cpu: x86_64
15:50:34,704 INFO - Compiler for C supports link arguments -Wl,-Bsymbolic-functions: YES
15:50:34,704 INFO - Compiler for C supports arguments -fvisibility=hidden: YES
15:50:34,704 INFO - Compiler for C supports arguments -fno-strict-aliasing: YES
15:50:34,704 INFO - Library m found: YES
15:50:34,704 INFO - Found pkg-config: /usr/bin/pkg-config (0.29.1)
15:50:34,704 INFO - Run-time dependency gstreamer-1.0 found: YES 1.17.2.1
15:50:34,704 INFO - Run-time dependency gstreamer-base-1.0 found: YES 1.17.2.1
15:50:34,704 INFO - Run-time dependency gstreamer-pbutils-1.0 found: YES 1.17.2.1
15:50:34,704 INFO - Run-time dependency gstreamer-allocators-1.0 found: YES 1.17.2.1
15:50:34,704 INFO - Run-time dependency gstreamer-video-1.0 found: YES 1.17.2.1
15:50:34,704 INFO - Run-time dependency gstreamer-codecparsers-1.0 found: YES 1.17.2.1
15:50:34,704 INFO - Run-time dependency gstreamer-gl-1.0 found: YES 1.17.2.1
15:50:34,704 INFO - Header <gst/gstconfig.h> has symbol "GST_DISABLE_GST_DEBUG" with dependency gstreamer-1.0: NO
15:50:34,704 INFO - Message: GStreamer debug system is enabled
15:50:34,705 INFO - Run-time dependency gmodule-2.0 found: YES 2.48.2
15:50:34,705 INFO - Run-time dependency libva found: YES 1.9.0
15:50:34,705 INFO - Run-time dependency libva-drm found: YES 1.9.0
15:50:34,705 INFO - Run-time dependency libva-wayland found: YES 1.9.0
15:50:34,705 INFO - Run-time dependency libva-x11 found: YES 1.9.0
15:50:34,705 INFO - Run-time dependency libdrm found: YES 2.4.91
15:50:34,705 INFO - Run-time dependency libudev found: YES 229
15:50:34,705 INFO - Run-time dependency egl found: YES 18.0.5
15:50:34,705 INFO - Run-time dependency gl found: YES 18.0.5
15:50:34,705 INFO - Run-time dependency glesv2 found: YES 18.0.5
15:50:34,705 INFO - Run-time dependency gstreamer-check-1.0 found: YES 1.17.2.1
15:50:34,705 INFO - Library dl found: YES
15:50:34,705 INFO - Run-time dependency wayland-client found: YES 1.12.0
15:50:34,705 INFO - Found CMake: /usr/local/bin/cmake (3.6.0)
15:50:34,705 INFO - Run-time dependency wayland-protocols found: NO (tried pkgconfig and cmake)
15:50:34,705 INFO - Program wayland-scanner found: YES (/usr/bin/wayland-scanner)
15:50:34,705 INFO - Run-time dependency x11 found: YES 1.6.3
15:50:34,705 INFO - Run-time dependency xrandr found: YES 1.5.0
15:50:34,705 INFO - Run-time dependency gtk+-3.0 found: NO (tried pkgconfig and cmake)
15:50:34,705 INFO - Has header "GLES2/gl2.h" with dependency glesv2: YES
15:50:34,705 INFO - Has header "GLES2/gl2ext.h" with dependency glesv2: YES
15:50:34,705 INFO - Has header "GLES3/gl3.h" with dependency glesv2: YES
15:50:34,705 INFO - Has header "GLES3/gl3ext.h" with dependency glesv2: YES
15:50:34,705 INFO - Has header "GLES2/gl2ext.h" with dependency glesv2: YES (cached)
15:50:34,705 INFO - Has header "va/va_enc_vp9.h" with dependency libva: YES
15:50:34,705 INFO - Has header "X11/XKBlib.h" with dependency x11: YES
15:50:34,705 INFO - Program /opt/media/install/libexec/gstreamer-1.0/gst-plugins-doc-cache-generator found: YES (/opt/media/install/libexec/gstreamer-1.0/gst-plugins-doc-cache-generator)
15:50:34,705 INFO - Program hotdoc found: NO
15:50:34,705 INFO - Message: Hotdoc not found, not building the documentation
15:50:34,705 INFO - Configuring config.h using configuration
15:50:34,705 INFO - Program python3 found: YES (/usr/bin/python3)
15:50:34,705 INFO - Build targets in project: 19
15:50:34,705 INFO - Found ninja-1.9.0.git.kitware.dyndep-1.jobserver-1 at /usr/local/bin/ninja
15:50:34,761 INFO - popd: /opt
15:50:34,761 INFO - pushd: /opt/media/build/gstreamer-vaapi /opt
15:50:34,762 INFO - execute (/opt/media/build/gstreamer-vaapi): ninja -C __meson_build -v -j 4 (pid: 5702)
<snip>
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
15:50:41,147 INFO - from /usr/include/glib-2.0/glib/gtypes.h:32,
15:50:41,147 INFO - from /usr/include/glib-2.0/glib/galloca.h:32,
15:50:41,147 INFO - from /usr/include/glib-2.0/glib.h:30,
15:50:41,147 INFO - from /opt/media/install/include/gstreamer-1.0/gst/gst.h:27,
15:50:41,148 INFO - from ../gst-libs/gst/vaapi/sysdeps.h:34,
15:50:41,148 INFO - from ../gst-libs/gst/vaapi/video-format.c:30:
15:50:41,148 INFO - ../gst-libs/gst/vaapi/video-format.c:53:45: error: 'DRM_FORMAT_INVALID' undeclared here (not in a function)
15:50:41,148 INFO - #define MAKE_DRM_FORMAT(DRM_FORMAT) G_PASTE(DRM_FORMAT_,DRM_FORMAT)
15:50:41,148 INFO - ^
15:50:41,148 INFO - /usr/include/glib-2.0/glib/gmacros.h:229:47: note: in definition of macro 'G_PASTE_ARGS'
15:50:41,148 INFO - #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
15:50:41,148 INFO - ^
15:50:41,148 INFO - ../gst-libs/gst/vaapi/video-format.c:53:37: note: in expansion of macro 'G_PASTE'
15:50:41,148 INFO - #define MAKE_DRM_FORMAT(DRM_FORMAT) G_PASTE(DRM_FORMAT_,DRM_FORMAT)
15:50:41,148 INFO - ^
15:50:41,148 INFO - ../gst-libs/gst/vaapi/video-format.c:60:5: note: in expansion of macro 'MAKE_DRM_FORMAT'
15:50:41,148 INFO - MAKE_DRM_FORMAT(DRM_FORMAT), \
15:50:41,148 INFO - ^
15:50:41,148 INFO - ../gst-libs/gst/vaapi/video-format.c:106:3: note: in expansion of macro 'DEF_YUV'
15:50:41,148 INFO - DEF_YUV (VA_BYTE_ORDER_NOT_CARE, GRAY8, INVALID, ('Y', '8', '0', '0'), 8, 400),
15:50:41,148 INFO - ^
15:50:41,148 INFO - ../gst-libs/gst/vaapi/video-format.c:53:45: error: 'DRM_FORMAT_P010' undeclared here (not in a function)
15:50:41,148 INFO - #define MAKE_DRM_FORMAT(DRM_FORMAT) G_PASTE(DRM_FORMAT_,DRM_FORMAT)
15:50:41,148 INFO - ^
15:50:41,148 INFO - /usr/include/glib-2.0/glib/gmacros.h:229:47: note: in definition of macro 'G_PASTE_ARGS'
15:50:41,148 INFO - #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
15:50:41,148 INFO - ^
15:50:41,148 INFO - ../gst-libs/gst/vaapi/video-format.c:53:37: note: in expansion of macro 'G_PASTE'
15:50:41,148 INFO - #define MAKE_DRM_FORMAT(DRM_FORMAT) G_PASTE(DRM_FORMAT_,DRM_FORMAT)
15:50:41,148 INFO - ^
15:50:41,148 INFO - ../gst-libs/gst/vaapi/video-format.c:60:5: note: in expansion of macro 'MAKE_DRM_FORMAT'
15:50:41,149 INFO - MAKE_DRM_FORMAT(DRM_FORMAT), \
15:50:41,149 INFO - ^
15:50:41,149 INFO - ../gst-libs/gst/vaapi/video-format.c:108:3: note: in expansion of macro 'DEF_YUV'
15:50:41,149 INFO - DEF_YUV (VA_LSB_FIRST, P010_10LE, P010, ('P', '0', '1', '0'), 24, 420_10BPP),
15:50:41,149 INFO - ^
15:50:41,149 INFO - ../gst-libs/gst/vaapi/video-format.c:53:45: error: 'DRM_FORMAT_P012' undeclared here (not in a function)
15:50:41,149 INFO - #define MAKE_DRM_FORMAT(DRM_FORMAT) G_PASTE(DRM_FORMAT_,DRM_FORMAT)
15:50:41,149 INFO - ^
15:50:41,149 INFO - /usr/include/glib-2.0/glib/gmacros.h:229:47: note: in definition of macro 'G_PASTE_ARGS'
15:50:41,149 INFO - #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
15:50:41,149 INFO - ^
15:50:41,149 INFO - ../gst-libs/gst/vaapi/video-format.c:53:37: note: in expansion of macro 'G_PASTE'
15:50:41,149 INFO - #define MAKE_DRM_FORMAT(DRM_FORMAT) G_PASTE(DRM_FORMAT_,DRM_FORMAT)
15:50:41,149 INFO - ^
15:50:41,149 INFO - ../gst-libs/gst/vaapi/video-format.c:60:5: note: in expansion of macro 'MAKE_DRM_FORMAT'
15:50:41,149 INFO - MAKE_DRM_FORMAT(DRM_FORMAT), \
15:50:41,149 INFO - ^
15:50:41,149 INFO - ../gst-libs/gst/vaapi/video-format.c:109:3: note: in expansion of macro 'DEF_YUV'
15:50:41,149 INFO - DEF_YUV (VA_LSB_FIRST, P012_LE, P012, ('P', '0', '1', '2'), 24, 420_10BPP),
15:50:41,149 INFO - ^
15:50:41,149 INFO - ../gst-libs/gst/vaapi/video-format.c:53:45: error: 'DRM_FORMAT_Y210' undeclared here (not in a function)
15:50:41,149 INFO - #define MAKE_DRM_FORMAT(DRM_FORMAT) G_PASTE(DRM_FORMAT_,DRM_FORMAT)
15:50:41,149 INFO - ^
15:50:41,149 INFO - /usr/include/glib-2.0/glib/gmacros.h:229:47: note: in definition of macro 'G_PASTE_ARGS'
15:50:41,149 INFO - #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
15:50:41,149 INFO - ^
15:50:41,149 INFO - ../gst-libs/gst/vaapi/video-format.c:53:37: note: in expansion of macro 'G_PASTE'
15:50:41,149 INFO - #define MAKE_DRM_FORMAT(DRM_FORMAT) G_PASTE(DRM_FORMAT_,DRM_FORMAT)
15:50:41,149 INFO - ^
15:50:41,149 INFO - ../gst-libs/gst/vaapi/video-format.c:60:5: note: in expansion of macro 'MAKE_DRM_FORMAT'
15:50:41,149 INFO - MAKE_DRM_FORMAT(DRM_FORMAT), \
15:50:41,149 INFO - ^
15:50:41,149 INFO - ../gst-libs/gst/vaapi/video-format.c:113:3: note: in expansion of macro 'DEF_YUV'
15:50:41,149 INFO - DEF_YUV (VA_BYTE_ORDER_NOT_CARE, Y210, Y210, ('Y', '2', '1', '0'), 32, 422_10BPP),
15:50:41,149 INFO - ^
15:50:41,149 INFO - ../gst-libs/gst/vaapi/video-format.c:53:45: error: 'DRM_FORMAT_Y410' undeclared here (not in a function)
15:50:41,149 INFO - #define MAKE_DRM_FORMAT(DRM_FORMAT) G_PASTE(DRM_FORMAT_,DRM_FORMAT)
15:50:41,150 INFO - ^
15:50:41,150 INFO - /usr/include/glib-2.0/glib/gmacros.h:229:47: note: in definition of macro 'G_PASTE_ARGS'
15:50:41,150 INFO - #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
15:50:41,150 INFO - ^
15:50:41,150 INFO - ../gst-libs/gst/vaapi/video-format.c:53:37: note: in expansion of macro 'G_PASTE'
15:50:41,150 INFO - #define MAKE_DRM_FORMAT(DRM_FORMAT) G_PASTE(DRM_FORMAT_,DRM_FORMAT)
15:50:41,150 INFO - ^
15:50:41,150 INFO - ../gst-libs/gst/vaapi/video-format.c:60:5: note: in expansion of macro 'MAKE_DRM_FORMAT'
15:50:41,150 INFO - MAKE_DRM_FORMAT(DRM_FORMAT), \
15:50:41,150 INFO - ^
15:50:41,150 INFO - ../gst-libs/gst/vaapi/video-format.c:114:3: note: in expansion of macro 'DEF_YUV'
15:50:41,150 INFO - DEF_YUV (VA_BYTE_ORDER_NOT_CARE, Y410, Y410, ('Y', '4', '1', '0'), 32, 444_10BPP),
15:50:41,150 INFO - ^
15:50:41,150 INFO - ../gst-libs/gst/vaapi/video-format.c: In function 'gst_vaapi_drm_format_from_va_fourcc':
15:50:41,150 INFO - ../gst-libs/gst/vaapi/video-format.c:647:10: warning: return makes integer from pointer without a cast [-Wint-conversion]
15:50:41,150 INFO - return DRM_FORMAT_INVALID;
15:50:41,150 INFO - ^