<?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>175127</bug_id>
          
          <creation_ts>2017-08-03 04:41:47 -0700</creation_ts>
          <short_desc>[GTK] conflicting declaration &apos;typedef khronos_ssize_t GLsizeiptr&apos;</short_desc>
          <delta_ts>2022-11-30 03:57:54 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alberto Garcia">berto</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>magomez</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1334743</commentid>
    <comment_count>0</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2017-08-03 04:41:47 -0700</bug_when>
    <thetext>I&apos;m having problems building WebKitGTK+ 2.17.5 for armel:

   In file included from Source/WebCore/platform/graphics/ANGLEWebKitBridge.h:48:0,
                    from Source/WebCore/platform/graphics/GraphicsContext3D.h:28,
                    from Source/WebCore/platform/graphics/GLContext.h:23,
                    from Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:72:
   /usr/include/GLES2/gl2.h: At global scope:
   /usr/include/GLES2/gl2.h:73:25: error: conflicting declaration &apos;typedef khronos_ssize_t GLsizeiptr&apos;
    typedef khronos_ssize_t GLsizeiptr;
                            ^~~~~~~~~~
   In file included from /usr/include/GL/gl.h:2055:0,
                    from /usr/include/gstreamer-1.0/gst/gl/gstglapi.h:65,
                    from /usr/include/gstreamer-1.0/gst/gl/gstgl_fwd.h:26,
                    from /usr/include/gstreamer-1.0/gst/gl/gl.h:29,
                    from Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:69:
   /usr/include/GL/glext.h:468:19: note: previous declaration as &apos;typedef ptrdiff_t GLsizeiptr&apos;
    typedef ptrdiff_t GLsizeiptr;
                      ^~~~~~~~~~
   In file included from Source/WebCore/platform/graphics/ANGLEWebKitBridge.h:48:0,
                    from Source/WebCore/platform/graphics/GraphicsContext3D.h:28,
                    from Source/WebCore/platform/graphics/GLContext.h:23,
                    from Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:72:
   /usr/include/GLES2/gl2.h:74:26: error: conflicting declaration &apos;typedef khronos_intptr_t GLintptr&apos;
    typedef khronos_intptr_t GLintptr;
                             ^~~~~~~~
   In file included from /usr/include/GL/gl.h:2055:0,
                    from /usr/include/gstreamer-1.0/gst/gl/gstglapi.h:65,
                    from /usr/include/gstreamer-1.0/gst/gl/gstgl_fwd.h:26,
                    from /usr/include/gstreamer-1.0/gst/gl/gl.h:29,
                    from Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:69:
   /usr/include/GL/glext.h:469:19: note: previous declaration as &apos;typedef ptrdiff_t GLintptr&apos;
    typedef ptrdiff_t GLintptr;
                   ^~~~~~~~

It looks like this is because of the new USE_GSTREAMER_GL that is now
on by default (GStreamerGL includes gl.h, WebKit is using GLES2).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1366662</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-10-31 16:26:14 -0700</bug_when>
    <thetext>(In reply to Alberto Garcia from comment #0) 
&gt; It looks like this is because of the new USE_GSTREAMER_GL that is now
&gt; on by default (GStreamerGL includes gl.h, WebKit is using GLES2).

So how is this supposed to work... is GStreamerGL supposed to be disabled when building for GLES2, or is it just broken?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1366798</commentid>
    <comment_count>2</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2017-11-01 01:40:09 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #1)
&gt; (In reply to Alberto Garcia from comment #0) 
&gt; &gt; It looks like this is because of the new USE_GSTREAMER_GL that is now
&gt; &gt; on by default (GStreamerGL includes gl.h, WebKit is using GLES2).
&gt; 
&gt; So how is this supposed to work... is GStreamerGL supposed to be disabled
&gt; when building for GLES2, or is it just broken?

I&apos;m actually not sure, but I&apos;m disabling GStreamerGL at the moment when
it conflicts with GLES2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1366805</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2017-11-01 03:38:53 -0700</bug_when>
    <thetext>I suspect that was fixed upstream already: https://bugzilla.gnome.org/show_bug.cgi?id=784779</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1366863</commentid>
    <comment_count>4</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2017-11-01 09:12:10 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #3)
&gt; I suspect that was fixed upstream already:
&gt; https://bugzilla.gnome.org/show_bug.cgi?id=784779

Ah, it seems to be the case, thanks!

Does it mean that we would be linking against both at the same time?
Is that possible? I&apos;ll anyway give it a try soon and tell you if it
works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1366874</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2017-11-01 09:30:33 -0700</bug_when>
    <thetext>The GL in GStreamerGL can be a bit misleading. The libgstgl library supports most platforms and GL versions (even Vulkan). The issue is only related with includes.

It won&apos;t be easy to try this because IIRC there were multiple follow-up build fixes landed after the main patch landed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1366976</commentid>
    <comment_count>6</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2017-11-01 12:11:18 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #5)
&gt; The GL in GStreamerGL can be a bit misleading. The libgstgl library
&gt; supports most platforms and GL versions (even Vulkan). The issue is
&gt; only related with includes.

I see, thanks.

&gt; It won&apos;t be easy to try this because IIRC there were multiple
&gt; follow-up build fixes landed after the main patch landed.

I was meaning to try it when the fixed upstream release comes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>