<?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>181639</bug_id>
          
          <creation_ts>2018-01-14 14:09:34 -0800</creation_ts>
          <short_desc>Cannot build with Visual Studio 2017 Update 5</short_desc>
          <delta_ts>2018-02-14 09:26:21 -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>New Bugs</component>
          <version>WebKit Local Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 10</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Chris Nardi">cnardi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>don.olmstead</cc>
    
    <cc>fujii</cc>
    
    <cc>keith_miller</cc>
    
    <cc>pvollan</cc>
    
    <cc>yoshiaki.jitsukawa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1389217</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Nardi">cnardi</who>
    <bug_when>2018-01-14 14:09:34 -0800</bug_when>
    <thetext>When building with Visual Studio 2017 Update 5 I get:

D:\WebKit\Source\WebCore\PAL\pal\cf\CoreMediaSoftLink.cpp(58): error C4430: missing type specifier - int assumed. Note:
 C++ does not support default-int [D:\WebKit\WebKitBuild\Release\Source\WebCore\PAL\pal\PAL.vcxproj]
D:\WebKit\Source\WebCore\PAL\pal\cf\CoreMediaSoftLink.cpp(58): error C2146: syntax error: missing &apos;;&apos; before identifier
 &apos;once&apos; [D:\WebKit\WebKitBuild\Release\Source\WebCore\PAL\pal\PAL.vcxproj]
D:\WebKit\Source\WebCore\PAL\pal\cf\CoreMediaSoftLink.cpp(58): error C2065: &apos;once&apos;: undeclared identifier [D:\WebKit\We
bKitBuild\Release\Source\WebCore\PAL\pal\PAL.vcxproj]
D:\WebKit\Source\WebCore\PAL\pal\cf\CoreMediaSoftLink.cpp(58): error C3861: &apos;dispatch_once_f&apos;: identifier not found [D:
\WebKit\WebKitBuild\Release\Source\WebCore\PAL\pal\PAL.vcxproj]

I&apos;m not sure if this has to do with my setup or with Update 5. I have iTunes installed so I should have CoreMedia appropriately in my build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1391739</commentid>
    <comment_count>1</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2018-01-22 12:21:32 -0800</bug_when>
    <thetext>WinCairo definitely builds with VS 2017 Update 5. We don&apos;t build out AppleWin and this file is an AppleWin file. I don&apos;t know what Apple&apos;s bots are currently running.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1391947</commentid>
    <comment_count>2</comment_count>
    <who name="Yoshiaki Jitsukawa">yoshiaki.jitsukawa</who>
    <bug_when>2018-01-22 19:06:17 -0800</bug_when>
    <thetext>I couldn&apos;t reproduce the issue with Visual Studio 2017 version 15.5.4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1391948</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Nardi">cnardi</who>
    <bug_when>2018-01-22 19:09:14 -0800</bug_when>
    <thetext>WinCairo builds, so I guess I&apos;ll just be using that for now. It&apos;s probably something with my setup; I&apos;m not sure what it could be though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1393493</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2018-01-26 03:01:55 -0800</bug_when>
    <thetext>I also able to build AppleWin port with Visual Studio 2017 version 15.5.5.

dispatch_once_f is used in SOFT_LINK_FUNCTION_FOR_SOURCE of Source/WTF/wtf/cocoa/SoftLinking.h.
WebKit Windows port (AppleWin port and WinCairo port) should use SOFT_LINK_FUNCTION_FOR_SOURCE of Source/WTF/wtf/win/SoftLinking.h.

Here is the content of Source/WTF/wtf/SoftLinking.h:

&gt; #if PLATFORM(COCOA)
&gt; #include &lt;wtf/cocoa/SoftLinking.h&gt;
&gt; #elif OS(WINDOWS)
&gt; #include &lt;wtf/win/SoftLinking.h&gt;
&gt; #else
&gt; #error &quot;SoftLinking not defined for platform&quot;
&gt; #endif

I guess you accidentally define WTF_PLATFORM_COCOA.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1398951</commentid>
    <comment_count>5</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2018-02-13 21:45:25 -0800</bug_when>
    <thetext>Chris any resolution here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1399055</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Nardi">cnardi</who>
    <bug_when>2018-02-14 07:10:17 -0800</bug_when>
    <thetext>I haven&apos;t tried using the actual AppleWin build recently; I&apos;ve just been using WinCairo, which works for me.

I&apos;m not sure how it would be defined so that PLATFORM(COCOA) would be true on Windows, so I&apos;m going to guess this is some way that I have my setup weirdly done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1399085</commentid>
    <comment_count>7</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2018-02-14 09:26:21 -0800</bug_when>
    <thetext>(In reply to Chris Nardi from comment #6)
&gt; I haven&apos;t tried using the actual AppleWin build recently; I&apos;ve just been
&gt; using WinCairo, which works for me.
&gt; 
&gt; I&apos;m not sure how it would be defined so that PLATFORM(COCOA) would be true
&gt; on Windows, so I&apos;m going to guess this is some way that I have my setup
&gt; weirdly done.

Glad you&apos;re up and running now. I&apos;m going to close this then.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>