<?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>306334</bug_id>
          
          <creation_ts>2026-01-27 08:02:40 -0800</creation_ts>
          <short_desc>Build failure: expected unqualified-id before numeric constant</short_desc>
          <delta_ts>2026-04-18 07:44:50 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mike Gorse">mgorse</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2175427</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Gorse">mgorse</who>
    <bug_when>2026-01-27 08:02:40 -0800</bug_when>
    <thetext>I am trying to get WebKitGTK 2.51.90 to build on SLE and am getting these errors with a couple of our older codestreams:

In file included from /usr/include/X11/Xlib.h:44,
                 from /usr/include/EGL/eglplatform.h:134,
                 from /usr/include/epoxy/egl_generated.h:11,
                 from /usr/include/epoxy/egl.h:46,
                 from ../Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/ThreadedCompositor.cpp:50,
                 from DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-32.cpp:7:
WebCore/PrivateHeaders/WebCore/FontAttributes.h:42:52: error: expected unqualified-id before numeric constant
   42 |     Style::ListStyleType styleType { CSS::Keyword::None { } };
      |                                                    ^~~~
...

In file included from /usr/include/X11/Xlib.h:44,
                 from /usr/include/EGL/eglplatform.h:134,
                 from /usr/include/epoxy/egl_generated.h:11,
                 from /usr/include/epoxy/egl.h:46,
                 from ../Source/WebCore/platform/graphics/skia/PlatformDisplaySkia.cpp:42,
                 from WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-66.cpp:3:
WebCore/PrivateHeaders/WebCore/SharedMemory.h:57:27: error: expected identifier before numeric constant
   57 | enum class MemoryLedger { None, Default, Network, Media, Graphics, Neural };
      |                           ^~~~

I get more errors like it in both cases, although, for the latter, some of them come from ShareableBitmapSkia.cpp.
I likely have a nonstandard build (I&apos;m compiling with -DENABLE_MEDIA_STREAM=OFF, for instance), but these errors don&apos;t seem directly related to my changes or patches. Both sources build if I add @no-unify to them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2175433</commentid>
    <comment_count>1</comment_count>
    <who name="Mike Gorse">mgorse</who>
    <bug_when>2026-01-27 08:12:51 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/57333</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2176669</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2026-01-30 13:34:30 -0800</bug_when>
    <thetext>Xlib.h is just horrible. Unfortunately using @no-unify to avoid it getting included is probably indeed the best solution here. That&apos;s nicer than renaming things.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177599</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-02-03 08:03:12 -0800</bug_when>
    <thetext>&lt;rdar://problem/169534529&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201851</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-18 07:44:48 -0700</bug_when>
    <thetext>Committed 311526@main (470279182571): &lt;https://commits.webkit.org/311526@main&gt;

Reviewed commits have been landed. Closing PR #57333 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>