<?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>175040</bug_id>
          
          <creation_ts>2017-08-01 12:10:30 -0700</creation_ts>
          <short_desc>WebKitEnumTypes.h:27:0: error: unterminated #ifndef WEBKIT_ENUM_TYPES_H</short_desc>
          <delta_ts>2017-08-01 15:16:26 -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>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>jbicha</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1333885</commentid>
    <comment_count>0</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2017-08-01 12:10:30 -0700</bug_when>
    <thetext>I&apos;m having this build failure with WebKitGTK+ 2.17.5, and it has also been reported with 2.16.6:

   In file included from Source/WebKit/UIProcess/API/glib/WebKitCookieManager.cpp:26:0:
   obj-aarch64-linux-gnu/DerivedSources/webkit2gtk/webkit2/WebKitEnumTypes.h:27:0: error: unterminated #ifndef
    #ifndef WEBKIT_ENUM_TYPES_H

That header is incomplete, and that happens because glib-mkenums fails
when generating it with the following error:

   Traceback (most recent call last):
     File &quot;/usr/bin/glib-mkenums&quot;, line 669, in &lt;module&gt;
       process_file(fname)
     File &quot;/usr/bin/glib-mkenums&quot;, line 406, in process_file
       line = curfile.readline()
     File &quot;/usr/lib/python3.5/encodings/ascii.py&quot;, line 26, in decode
       return codecs.ascii_decode(input, self.errors)[0]
   UnicodeDecodeError: &apos;ascii&apos; codec can&apos;t decode byte 0xe2 in position 3887: ordinal not in range(128)

My locale is set to POSIX, and that&apos;s probably why this fails (reminds
me of bug 128971). The problem here is that the program this time is
glib-mkenums, so we cannot apply the same solution (unless we report
the problem there).

It looks like the non-ascii character that is causing trouble is this
&apos;—&apos; in WebKitWebContext.h:

   of web views and the content of in each must not interfere with the
   rest — for example a full-fledged web browser with support for
   multiple tabs.

so perhaps replacing it with an ascii &apos;-&apos; is enough to fix this. I&apos;ll
check it and come back with my findings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1333895</commentid>
    <comment_count>1</comment_count>
    <who name="Jeremy Bicha">jbicha</who>
    <bug_when>2017-08-01 12:19:42 -0700</bug_when>
    <thetext>The Debian bug for that issue is

https://bugs.debian.org/870310

It&apos;s a regression caused by Debian unstable upgrading to glib 2.53.4. I believe the issue is already fixed in glib git master so it should be fixed in glib 2.53.90 next week.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1333916</commentid>
    <comment_count>2</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2017-08-01 13:01:48 -0700</bug_when>
    <thetext>I see, thanks!

The question is: why doesn&apos;t the WebKit build fail immediately if
glib-mkenums doesn&apos;t succeed? It doesn&apos;t make sense to carry on with
the build in a scenario like this one.

If someone knows enough cmake to fix this it would be nice, else I
guess we can close this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1333976</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-08-01 15:16:26 -0700</bug_when>
    <thetext>This is indeed fixed in GLib git master.

(In reply to Alberto Garcia from comment #2)
&gt; I see, thanks!
&gt; 
&gt; The question is: why doesn&apos;t the WebKit build fail immediately if
&gt; glib-mkenums doesn&apos;t succeed? It doesn&apos;t make sense to carry on with
&gt; the build in a scenario like this one.

I&apos;m not sure, but I think it&apos;s possibly returning a success code. The build failures we had in GNOME this week were equally-obtuse, they wound up looking like ordinary build races (from failing to add the generated headers to BUILT_SOURCES) and you only see the real failure if you scroll up.

Anyway, I haven&apos;t investigated; anyone should of course feel free to improve the CMake build if improvements are possible.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>