<?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>200984</bug_id>
          
          <creation_ts>2019-08-21 09:35:23 -0700</creation_ts>
          <short_desc>[GTK] Build failure due to unwieldy definition of “None” from X11 headers</short_desc>
          <delta_ts>2019-08-21 10:24:18 -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>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="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>clopez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1563520</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-08-21 09:35:23 -0700</bug_when>
    <thetext>This happens sometimes, depending on how “lucky” one with the
chain of #includes generated in the derived sources for unified
builds. Right now I have a reproducer locally so let&apos;s try and
fix it for good. Build error log follows.

----

In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:30:
In file included from ../Source/WebKit/Shared/ContextMenuContextData.h:34:
In file included from ../Source/WebKit/Shared/WebHitTestResultData.h:25:
In file included from DerivedSources/ForwardingHeaders/WebCore/DictionaryPopupInfo.h:29:
DerivedSources/ForwardingHeaders/WebCore/TextIndicator.h:41:5: error: expected identifier
    None,
    ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:34:
In file included from ../Source/WebKit/Shared/EditorState.h:30:
DerivedSources/ForwardingHeaders/WebCore/FontAttributes.h:40:42: error: expected unqualified-id
    ListStyleType style { ListStyleType::None };
                                         ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:34:
In file included from ../Source/WebKit/Shared/EditorState.h:30:
DerivedSources/ForwardingHeaders/WebCore/FontAttributes.h:78:51: error: expected identifier
    enum class SubscriptOrSuperscript : uint8_t { None, Subscript, Superscript };
                                                  ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:34:
In file included from ../Source/WebKit/Shared/EditorState.h:30:
DerivedSources/ForwardingHeaders/WebCore/FontAttributes.h:97:77: error: expected unqualified-id
    SubscriptOrSuperscript subscriptOrSuperscript { SubscriptOrSuperscript::None };
                                                                            ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:34:
In file included from ../Source/WebKit/Shared/EditorState.h:30:
DerivedSources/ForwardingHeaders/WebCore/FontAttributes.h:111:58: error: expected unqualified-id
        WebCore::FontAttributes::SubscriptOrSuperscript::None,
                                                         ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:35:
In file included from ../Source/WebKit/Shared/FocusedElementInformation.h:30:
DerivedSources/ForwardingHeaders/WebCore/Autofill.h:39:5: error: expected identifier
    None,
    ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:35:
In file included from ../Source/WebKit/Shared/FocusedElementInformation.h:32:
In file included from DerivedSources/ForwardingHeaders/WebCore/GraphicsLayer.h:28:
DerivedSources/ForwardingHeaders/WebCore/Animation.h:194:76: error: expected unqualified-id
    static AnimationFillMode initialFillMode() { return AnimationFillMode::None; }
                                                                           ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:35:
In file included from ../Source/WebKit/Shared/FocusedElementInformation.h:32:
In file included from DerivedSources/ForwardingHeaders/WebCore/GraphicsLayer.h:40:
In file included from DerivedSources/ForwardingHeaders/WebCore/ScrollableArea.h:29:
DerivedSources/ForwardingHeaders/WebCore/ScrollTypes.h:53:5: error: expected identifier
    None,
    ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:35:
In file included from ../Source/WebKit/Shared/FocusedElementInformation.h:32:
In file included from DerivedSources/ForwardingHeaders/WebCore/GraphicsLayer.h:40:
In file included from DerivedSources/ForwardingHeaders/WebCore/ScrollableArea.h:29:
DerivedSources/ForwardingHeaders/WebCore/ScrollTypes.h:210:5: error: expected identifier
    None,
    ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:35:
In file included from ../Source/WebKit/Shared/FocusedElementInformation.h:32:
In file included from DerivedSources/ForwardingHeaders/WebCore/GraphicsLayer.h:40:
In file included from DerivedSources/ForwardingHeaders/WebCore/ScrollableArea.h:29:
DerivedSources/ForwardingHeaders/WebCore/ScrollTypes.h:223:5: error: expected identifier
    None,
    ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:35:
In file included from ../Source/WebKit/Shared/FocusedElementInformation.h:32:
DerivedSources/ForwardingHeaders/WebCore/GraphicsLayer.h:485:9: error: expected identifier
        None = 0,
        ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:35:
In file included from ../Source/WebKit/Shared/FocusedElementInformation.h:32:
DerivedSources/ForwardingHeaders/WebCore/GraphicsLayer.h:495:9: error: expected identifier
        None = 0,
        ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:35:
In file included from ../Source/WebKit/Shared/FocusedElementInformation.h:32:
DerivedSources/ForwardingHeaders/WebCore/GraphicsLayer.h:536:9: error: expected identifier
        None,
        ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:35:
In file included from ../Source/WebKit/Shared/FocusedElementInformation.h:32:
DerivedSources/ForwardingHeaders/WebCore/GraphicsLayer.h:692:61: error: expected unqualified-id
    CustomAppearance m_customAppearance { CustomAppearance::None };
                                                            ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:35:
../Source/WebKit/Shared/FocusedElementInformation.h:41:5: error: expected identifier
    None,
    ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:73:
DerivedSources/ForwardingHeaders/WebCore/DragActions.h:72:43: error: expected identifier
enum class DragHandlingMethod : uint8_t { None, EditPlainText, EditRichText, UploadFile, PageLoad, SetColor, NonDefault };
                                          ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:73:
DerivedSources/ForwardingHeaders/WebCore/DragActions.h:81:38: error: expected unqualified-id
        WebCore::DragHandlingMethod::None,
                                     ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:77:
DerivedSources/ForwardingHeaders/WebCore/FrameView.h:899:49: error: expected identifier
    enum class ViewportRendererType : uint8_t { None, Document, Body };
                                                ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-25.cpp:6:
In file included from ../Source/WebKit/UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp:31:
In file included from ../Source/WebKit/UIProcess/WebPageProxy.h:77:
DerivedSources/ForwardingHeaders/WebCore/FrameView.h:900:73: error: expected unqualified-id
    ViewportRendererType m_viewportRendererType { ViewportRendererType::None };
                                                                        ^
/usr/include/X11/X.h:115:30: note: expanded from macro &apos;None&apos;
#define None                 0L /* universal null resource or null atom */
                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1563523</commentid>
    <comment_count>1</comment_count>
      <attachid>376890</attachid>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-08-21 09:42:10 -0700</bug_when>
    <thetext>Created attachment 376890
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1563543</commentid>
    <comment_count>2</comment_count>
      <attachid>376890</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-08-21 10:23:39 -0700</bug_when>
    <thetext>Comment on attachment 376890
Patch

Clearing flags on attachment: 376890

Committed r248948: &lt;https://trac.webkit.org/changeset/248948&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1563544</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-08-21 10:23:40 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1563546</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-08-21 10:24:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/54560945&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>376890</attachid>
            <date>2019-08-21 09:42:10 -0700</date>
            <delta_ts>2019-08-21 10:23:39 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-200984-20190821194209.patch</filename>
            <type>text/plain</type>
            <size>1657</size>
            <attacher name="Adrian Perez">aperez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjQ4OTQyCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCmluZGV4IDg4MmUzNWEzODRlZTk2ZjZk
YjUyNjNhOWQ5NWUxZjExNDcwMTc1NGMuLjVjMWYxZWZhNmNkZTU2OGJjYWUxNTA2MWYyZDg4YmQ0
NmM2OTVlOWYgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCisrKyBiL1NvdXJj
ZS9XZWJLaXQvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTcgQEAKKzIwMTktMDgtMjEgIEFkcmlhbiBQ
ZXJleiBkZSBDYXN0cm8gIDxhcGVyZXpAaWdhbGlhLmNvbT4KKworICAgICAgICBbR1RLXSBCdWls
ZCBmYWlsdXJlIGR1ZSB0byB1bndpZWxkeSBkZWZpbml0aW9uIG9mIOKAnE5vbmXigJ0gZnJvbSBY
MTEgaGVhZGVycworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/
aWQ9MjAwOTg0CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISku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