<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>235824</bug_id>
          
          <creation_ts>2022-01-28 08:38:58 -0800</creation_ts>
          <short_desc>Fail build with -DENABLE_WEB_AUDIO=OFF -DENABLE_VIDEO=OFF in webkit2gtk 2.34.4 (gtk3)</short_desc>
          <delta_ts>2024-05-13 16:01:57 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="sL1pKn07">sl1pkn07</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1834988</commentid>
    <comment_count>0</comment_count>
    <who name="sL1pKn07">sl1pkn07</who>
    <bug_when>2022-01-28 08:38:58 -0800</bug_when>
    <thetext>fail build when set

    -DENABLE_VIDEO=OFF \
    -DENABLE_AUDIO=OFF \
    -DUSE_GSTREAMER_FULL=OFF \
    -DUSE_GSTREAMER_GL=OFF \
    -DUSE_GSTREAMER_MPEGTS=OFF \
    -DUSE_GSTREAMER_NATIVE_AUDIO=OFF \
    -DUSE_GSTREAMER_NATIVE_VIDEO=OFF \
    -DUSE_GSTREAMER_TEXT_SINK=OFF \


The CMake build type is: Release
Enabling ccache: Couldn&apos;t find ccache program. Not enabling it.
Found the following HarfBuzz libraries:
 HarfBuzz (required): /usr/lib/libharfbuzz.so
 ICU (required): /usr/lib/libharfbuzz-icu.so
Found the following ICU libraries:
  data (required)
  i18n (required)
  uc (required)
Found the following WebP libraries:
 WebP (required): /usr/lib/libwebp.so
 demux (required): /usr/lib/libwebpdemux.so
Disabling ENABLE_MEDIA_CONTROLS_SCRIPT since ENABLE_VIDEO is disabled.
Disabling ENABLE_MEDIA_SOURCE since ENABLE_VIDEO is disabled.
Disabling ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN since ENABLE_VIDEO is disabled.
Found the following WOFF2 libraries:
 WOFF2 (required): /usr/lib/libwoff2common.so
 dec (required): /usr/lib/libwoff2dec.so
Release logs will be sent to the Systemd journal
Platform-specific CMakeLists not found: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/bmalloc/PlatformGTK.cmake
Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WTF/wtf/PlatformGTK.cmake
Copying generate-unified-source-bundles.rb to: /tmp/makepkg/webkit2gtk/src/build/WTF/Scripts
Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/JavaScriptCore/PlatformGTK.cmake
Performing Test CXX_COMPILER_SUPPORTS_-ffp-contract=off
Performing Test CXX_COMPILER_SUPPORTS_-ffp-contract=off - Success
Using source list file: Sources.txt
Using source list file: inspector/remote/SourcesGLib.txt
Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/JavaScriptCore/shell/PlatformGTK.cmake
Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/ThirdParty/ANGLE/PlatformGTK.cmake
Performing Test CXX_COMPILER_SUPPORTS_-Wno-suggest-attribute=format
Performing Test CXX_COMPILER_SUPPORTS_-Wno-suggest-attribute=format - Success
Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebInspectorUI/PlatformGTK.cmake
Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/PAL/pal/PlatformGTK.cmake
Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/PlatformGTK.cmake
Using source list file: Sources.txt
Using source list file: platform/SourcesCairo.txt
Using source list file: platform/SourcesGCrypt.txt
Using source list file: platform/SourcesSoup.txt
Using source list file: SourcesGTK.txt
Using source list file: platform/SourcesGLib.txt
Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebKit/PlatformGTK.cmake
Using source list file: Sources.txt
Using source list file: SourcesGTK.txt
Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebDriver/PlatformGTK.cmake
Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/PlatformGTK.cmake
Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Tools/PlatformGTK.cmake
Enabled features:
 ENABLE_BUBBLEWRAP_SANDBOX ..................... ON
 ENABLE_DRAG_SUPPORT                             ON
 ENABLE_GAMEPAD ................................ ON
 ENABLE_GLES2                                    OFF
 ENABLE_GTKDOC ................................. ON
 ENABLE_INTROSPECTION                            ON
 ENABLE_MEDIA_SOURCE ........................... OFF
 ENABLE_MINIBROWSER                              ON
 ENABLE_QUARTZ_TARGET .......................... OFF
 ENABLE_SPELLCHECK                               ON
 ENABLE_TOUCH_EVENTS ........................... ON
 ENABLE_VIDEO                                    OFF
 ENABLE_WAYLAND_TARGET ......................... ON
 ENABLE_WEBDRIVER                                ON
 ENABLE_WEB_AUDIO .............................. OFF
 ENABLE_WEB_CRYPTO                               ON
 ENABLE_X11_TARGET ............................. ON
 USE_AVIF                                        OFF
 USE_GTK4 ...................................... OFF
 USE_LCMS                                        ON
 USE_LIBHYPHEN ................................. ON
 USE_LIBNOTIFY                                   ON
 USE_LIBSECRET ................................. ON
 USE_OPENGL_OR_ES                                ON
 USE_OPENJPEG .................................. ON
 USE_SOUP2                                       ON
 USE_SYSTEMD ................................... ON
 USE_WOFF2                                       ON
 USE_WPE_RENDERER .............................. ON
Configuring done
Generating done


[ 38%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-38.cpp.o
In file included from /usr/include/X11/Xlib.h:44,
                 from /usr/include/X11/Xutil.h:53,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/graphics/x11/XUniquePtr.h:31,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/graphics/glx/GLContextGLX.h:25,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp:20,
                 from /tmp/makepkg/webkit2gtk/src/build/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-38.cpp:1:
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/PlatformScreen.h:84:5: error: expected identifier before numeric constant
   84 |     None,
      |     ^~~~
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/PlatformScreen.h:84:5: error: expected &apos;}&apos; before numeric constant
In file included from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/graphics/DisplayRefreshMonitor.h:30,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/graphics/gtk/DisplayRefreshMonitorGtk.h:30,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/graphics/gtk/DisplayRefreshMonitorGtk.cpp:27,
                 from /tmp/makepkg/webkit2gtk/src/build/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-38.cpp:4:
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/PlatformScreen.h:83:39: note: to match this &apos;{&apos;
   83 | enum class DynamicRangeMode : uint8_t {
      |                                       ^
In file included from /usr/include/X11/Xlib.h:44,
                 from /usr/include/X11/Xutil.h:53,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/graphics/x11/XUniquePtr.h:31,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/graphics/glx/GLContextGLX.h:25,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp:20,
                 from /tmp/makepkg/webkit2gtk/src/build/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-38.cpp:1:
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/PlatformScreen.h:84:5: error: expected unqualified-id before numeric constant
   84 |     None,
      |     ^~~~
In file included from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/graphics/DisplayRefreshMonitor.h:30,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/graphics/gtk/DisplayRefreshMonitorGtk.h:30,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/graphics/gtk/DisplayRefreshMonitorGtk.cpp:27,
                 from /tmp/makepkg/webkit2gtk/src/build/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-38.cpp:4:
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/PlatformScreen.h:93:11: error: &apos;DynamicRangeMode&apos; does not name a type
   93 | constexpr DynamicRangeMode preferredDynamicRangeMode(Widget* = nullptr) { return DynamicRangeMode::Standard; }
      |           ^~~~~~~~~~~~~~~~
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/PlatformScreen.h:99:47: error: &apos;Widget&apos; was not declared in this scope; did you mean &apos;WebCore::Widget&apos;?
   99 | constexpr bool screenSupportsHighDynamicRange(Widget* = nullptr) { return false; }
      |                                               ^~~~~~
      |                                               WebCore::Widget
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/PlatformScreen.h:56:7: note: &apos;WebCore::Widget&apos; declared here
   56 | class Widget;
      |       ^~~~~~
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/PlatformScreen.h:99:55: error: expected primary-expression before &apos;=&apos; token
   99 | constexpr bool screenSupportsHighDynamicRange(Widget* = nullptr) { return false; }
      |                                                       ^
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/PlatformScreen.h:108:30: error: &apos;PlatformDisplayID&apos; was not declared in this scope; did you mean &apos;WebCore::PlatformDisplayID&apos;?
  108 | const ScreenData* screenData(PlatformDisplayID screendisplayID);
      |                              ^~~~~~~~~~~~~~~~~
      |                              WebCore::PlatformDisplayID
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/PlatformScreen.h:58:7: note: &apos;WebCore::PlatformDisplayID&apos; declared here
   58 | using PlatformDisplayID = uint32_t;
      |       ^~~~~~~~~~~~~~~~~
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/PlatformScreen.h:109:16: error: &apos;PlatformDisplayID&apos; does not name a type; did you mean &apos;PlatformDisplay_h&apos;?
  109 | WEBCORE_EXPORT PlatformDisplayID primaryScreenDisplayID();
      |                ^~~~~~~~~~~~~~~~~
      |                PlatformDisplay_h
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/PlatformScreen.h:161:1: error: expected declaration before &apos;}&apos; token
  161 | } // namespace WebCore
      | ^
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.4/Source/WebCore/platform/PlatformScreen.h:173:5: error: template argument 2 is invalid
  173 |     &gt;;
      |     ^
make[2]: *** [Source/WebCore/CMakeFiles/WebCore.dir/build.make:9735: Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-38.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1149: Source/WebCore/CMakeFiles/WebCore.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

also fails in 2.34.3 as commented here https://bugs.webkit.org/show_bug.cgi?id=232394#c4

greetings</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>